]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3a3535ef1a314b61e3247ee80b3372789008c94
treec5242ab4cb1780fa6aa55624e92adb7a4fb5e1ef
parente56318b5f9422e9a498e39b764dea50b694b8f44
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