From: Tao Ma Date: Mon, 1 Sep 2008 00:45:18 +0000 (+0800) Subject: ocfs2: bug-fix for journal extend in xattr. X-Git-Tag: v2.6.28-rc1~572^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28b8ca0b7f70b1b048d03dc0b9d87f58619e9791;p=pandora-kernel.git 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 Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed