]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ocfs2: ocfs2_mv_xattr_buckets() can handle a partial cluster now.
authorJoel Becker <joel.becker@oracle.com>
Wed, 26 Nov 2008 21:18:31 +0000 (13:18 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:29 +0000 (08:40 -0800)
commit54ecb6b6df54bf72befb359b21f3759b2952f9d9
tree2b11ad3bbc6f049be5829a72850b3b62d70dbd2c
parent874d65af1c8b8f6456a934701e6828d3017be029
ocfs2: ocfs2_mv_xattr_buckets() can handle a partial cluster now.

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: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c