]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Dirty the entire first bucket in ocfs2_extend_xattr_bucket()
authorJoel Becker <joel.becker@oracle.com>
Wed, 26 Nov 2008 01:06:40 +0000 (17:06 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:26 +0000 (08:40 -0800)
commit9e47859d269b72c7d1d856726f36198464d42353
tree6a834f52a9e36118045d31017f7265ef5c0bb060
parenta1921ea88a82df88c352a687e778b72a70457695
ocfs2: Dirty the entire first bucket in ocfs2_extend_xattr_bucket()

ocfs2_extend_xattr_bucket() takes an extent of buckets and shifts some
of them down to make room for a new xattr.  It is passed the first bh of
the first bucket, because that is where we store the number of buckets
in the extent.

However, future code wants to always dirty the entire bucket when it
is changed.  So let's pass the entire bucket into this function, skip
any block reads (we have them), and add the access/dirty logic.  We also
can skip passing in the target bucket bh - we only need its block
number.

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