]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Access the xattr bucket only before modifying it.
authorTao Ma <tao.ma@oracle.com>
Thu, 8 Jan 2009 00:21:43 +0000 (08:21 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 2 Feb 2009 22:20:18 +0000 (14:20 -0800)
commitfa013c5c7789e467615a970eafe745500b10d72c
tree769a30452132cedc68cd6171c17c407bf3c39464
parent04caa7a08673ade8badef044f905c526f1b0ed80
ocfs2: Access the xattr bucket only before modifying it.

In ocfs2_xattr_value_truncate, we may call b-tree codes which will
extend the journal transaction. It has a potential problem that it
may let the already-accessed-but-not-dirtied buffers gone. So we'd
better access the bucket after we call ocfs2_xattr_value_truncate.
And as for the root buffer for the xattr value, b-tree code will
acess and dirty it, so we don't need to worry about it.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/xattr.c