]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b5b4bd3e65dbc85c6b7d579ff90f39d91ac9469
tree89cc2629bed3949e980edcae3d807e71718a9028
parentd2f6ca0418e90fd5891488e8d4ee12df4b9f36dc
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