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>
Showing
- fs/ocfs2/dir.c 434 additions, 138 deletionsfs/ocfs2/dir.c
- fs/ocfs2/dir.h 2 additions, 0 deletionsfs/ocfs2/dir.h
- fs/ocfs2/journal.h 10 additions, 0 deletionsfs/ocfs2/journal.h
- fs/ocfs2/namei.c 1 addition, 3 deletionsfs/ocfs2/namei.c
- fs/ocfs2/ocfs2_fs.h 24 additions, 4 deletionsfs/ocfs2/ocfs2_fs.h
Loading
Please register or sign in to comment