aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/namei.c
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.com>2008-11-24 20:02:08 -0500
committerMark Fasheh <mfasheh@suse.com>2009-04-03 14:39:16 -0400
commit4ed8a6bb083bfcc21f1ed66a474b03c0386e4b34 (patch)
tree89cc2629bed3949e980edcae3d807e71718a9028 /fs/ocfs2/namei.c
parent9b7895efac906d66d19856194e1ba61f37e231a4 (diff)
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>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r--fs/ocfs2/namei.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 0c5507193200..f911edc8378b 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -321,10 +321,8 @@ static int ocfs2_mknod(struct inode *dir,
321 want_clusters += 1; 321 want_clusters += 1;
322 322
323 /* Dir indexing requires extra space as well */ 323 /* Dir indexing requires extra space as well */
324 if (ocfs2_supports_indexed_dirs(osb)) { 324 if (ocfs2_supports_indexed_dirs(osb))
325 want_clusters++;
326 want_meta++; 325 want_meta++;
327 }
328 } 326 }
329 327
330 status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac); 328 status = ocfs2_reserve_new_metadata_blocks(osb, want_meta, &meta_ac);