ocfs2: Dirty the entire bucket in ocfs2_bucket_value_truncate()
authorJoel Becker <joel.becker@oracle.com>
Tue, 25 Nov 2008 03:32:13 +0000 (19:32 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:26 +0000 (08:40 -0800)
commit548b0f22bb7497ba76f91627b99f9fed53a91704
treec5242ab4cb1780fa6aa55624e92adb7a4fb5e1ef
parentdf32b3343aa11e0c7f54783594b24321d17d376f
ocfs2: Dirty the entire bucket in ocfs2_bucket_value_truncate()

ocfs2_bucket_value_truncate() currently takes the first bh of the
bucket, and magically plays around with the value bh - even though
the bucket structure in the calling function already has it.

In addition, 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.

ocfs2_xattr_update_value_size() is no longer necessary, as it only did
one thing other than journal access/dirty.

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