]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite8d0caa24431dae46a4aec246ed90edb9e8cb0e6
treedd50e12c6670f950889e24401d0bcee900bbba2a
parent71cf2777d2eb2a182526a285749250e1bdbe7df4
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