ocfs2: Write support for directories with inline data
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 13 Sep 2007 23:33:54 +0000 (16:33 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 12 Oct 2007 18:54:41 +0000 (11:54 -0700)
commit5b6a3a2b4a5f071d170f8122038dd647a84810a8
treedd50e12c6670f950889e24401d0bcee900bbba2a
parent23193e513d1cd69411469f028d56fd175d4a6b07
ocfs2: Write support for directories with inline data

Create all new directories with OCFS2_INLINE_DATA_FL and the inline data
bytes formatted as an empty directory. Inode size field reflects the actual
amount of inline data available, which makes searching for dirent space
very similar to the regular directory search.

Inline-data directories are automatically pushed out to extents on any
insert request which is too large for the available space.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Reviewed-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h
fs/ocfs2/dir.c
fs/ocfs2/namei.c