ocfs2: Store dir index records inline
authorMark Fasheh <mfasheh@suse.com>
Tue, 25 Nov 2008 01:02:08 +0000 (17:02 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 3 Apr 2009 18:39:16 +0000 (11:39 -0700)
commit4ed8a6bb083bfcc21f1ed66a474b03c0386e4b34
tree89cc2629bed3949e980edcae3d807e71718a9028
parent9b7895efac906d66d19856194e1ba61f37e231a4
ocfs2: Store dir index records inline

Allow us to store a small number of directory index records in the
ocfs2_dx_root_block. This saves us a disk read on small to medium sized
directories (less than about 250 entries). The inline root is automatically
turned into a root block with extents if the directory size increases beyond
it's capacity.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dir.c
fs/ocfs2/dir.h
fs/ocfs2/journal.h
fs/ocfs2/namei.c
fs/ocfs2/ocfs2_fs.h