]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2/xattr: Remove extend_trans call and add its credits from the beginning
authorTao Ma <tao.ma@oracle.com>
Thu, 4 Dec 2008 22:20:54 +0000 (06:20 +0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:40:36 +0000 (08:40 -0800)
commite535104625543ef6a0dea2b692fdd3945b20780c
tree196202d8fcc0ce03baa4c3d181cfbf0090392497
parent584eea3dab56ba67366b4517849208342537d64d
ocfs2/xattr: Remove extend_trans call and add its credits from the beginning

Actually, when setting a new xattr value, we know it from the very
beginning, and it isn't like the extension of bucket in which case
we can't figure it out. So remove ocfs2_extend_trans in that function
and calculate it before the transaction. It also relieve acl operation
from the worry about the side effect of ocfs2_extend_trans.

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