]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Optionally limit extent size in ocfs2_insert_extent()
authorTao Ma <tao.ma@oracle.com>
Mon, 18 Aug 2008 09:38:52 +0000 (17:38 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 23:57:03 +0000 (16:57 -0700)
commit4e7faf1350a2937d6c3580bebd8526ff531f6ed2
treee051e6ceb77a05db7dd1d749d7f3f1682c69196c
parentdc593714d520b571718f824ec92da6301981cb95
ocfs2: Optionally limit extent size in ocfs2_insert_extent()

In xattr bucket, we want to limit the maximum size of a btree leaf,
otherwise we'll lose the benefits of hashing because we'll have to search
large leaves.

So add a new field in ocfs2_extent_tree which indicates the maximum leaf cluster
size we want so that we can prevent ocfs2_insert_extent() from merging the leaf
record even if it is contiguous with an adjacent record.

Other btree types are not affected by this change.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h