]> git.baikalelectronics.ru Git - kernel.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)
commit8a331aa6f75bcd6166c716adf3108d39747b8321
tree24e581b6bc0d8a71c528b3f15b081712714e291e
parent1684aef308e0cbaa1e9d2745159d4b7091ecf17c
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