• Joel Becker's avatar
    ocfs2: ocfs2_mv_xattr_buckets() can handle a partial cluster now. · 54ecb6b6
    Joel Becker authored
    If you look at ocfs2_mv_xattr_bucket_cross_cluster(), you'll notice that
    two-thirds of the code is almost identical to ocfs2_mv_xattr_buckets().
    The only difference is that ocfs2_mv_xattr_buckets() moves a whole
    cluster's worth, while ocfs2_mv_xattr_bucket_cross_cluster() moves half
    the cluster.
    
    We change ocfs2_mv_xattr_buckets() to allow moving partial clusters.
    The original caller of ocfs2_mv_xattr_buckets() still moves the whole
    cluster's worth - it just passes a start_bucket of 0.
    Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
    54ecb6b6
xattr.c 140 KB