• Tao Ma's avatar
    ocfs2: Optionally limit extent size in ocfs2_insert_extent() · ca12b7c4
    Tao Ma authored
    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: default avatarTao Ma <tao.ma@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
    ca12b7c4
alloc.c 181 KB