diff options
author | Mark Fasheh <mfasheh@suse.com> | 2008-11-24 20:02:08 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 14:39:16 -0400 |
commit | 4ed8a6bb083bfcc21f1ed66a474b03c0386e4b34 (patch) | |
tree | 89cc2629bed3949e980edcae3d807e71718a9028 /fs/ocfs2/dir.h | |
parent | 9b7895efac906d66d19856194e1ba61f37e231a4 (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/dir.h')
-rw-r--r-- | fs/ocfs2/dir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/dir.h b/fs/ocfs2/dir.h index d273aaef2ec2..07b0416cdd42 100644 --- a/fs/ocfs2/dir.h +++ b/fs/ocfs2/dir.h | |||
@@ -37,6 +37,8 @@ struct ocfs2_dir_lookup_result { | |||
37 | struct ocfs2_dir_entry *dl_entry; /* Target dirent in | 37 | struct ocfs2_dir_entry *dl_entry; /* Target dirent in |
38 | * unindexed leaf */ | 38 | * unindexed leaf */ |
39 | 39 | ||
40 | struct buffer_head *dl_dx_root_bh; /* Root of indexed | ||
41 | * tree */ | ||
40 | struct buffer_head *dl_dx_leaf_bh; /* Indexed leaf block */ | 42 | struct buffer_head *dl_dx_leaf_bh; /* Indexed leaf block */ |
41 | struct ocfs2_dx_entry *dl_dx_entry; /* Target dx_entry in | 43 | struct ocfs2_dx_entry *dl_dx_entry; /* Target dx_entry in |
42 | * indexed leaf */ | 44 | * indexed leaf */ |