]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ocfs2: bug-fix for journal extend in xattr.
authorTao Ma <tao.ma@oracle.com>
Mon, 1 Sep 2008 00:45:18 +0000 (08:45 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 23:57:06 +0000 (16:57 -0700)
commit28b8ca0b7f70b1b048d03dc0b9d87f58619e9791
tree24e581b6bc0d8a71c528b3f15b081712714e291e
parent8d6220d6a74a33552cf877bcea25503d7f6a59e6
ocfs2: bug-fix for journal extend in xattr.

In ocfs2_extend_trans, when we can't extend the current
transaction, it will commit current transaction and restart
a new one. So if the previous credits we have allocated aren't
used(the block isn't dirtied before our extend), we will not
have enough credits for any future operation(it will cause jbd
complain and bug out). So check this and re-extend it.

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