]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix reservation release commit flag in xfs_bmap_add_attrfork()
authorDave Chinner <dchinner@redhat.com>
Mon, 8 Mar 2010 00:26:23 +0000 (11:26 +1100)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:08 +0000 (09:58 -0500)
commitb5db201ca5d4921ee83d547ae8943da234ee10dd
tree8f309ced7d77f10408bc4224e490cca475c4f948
parent7de391cf9d5ef8d9bc530875512f6d69d938d49f
xfs: fix reservation release commit flag in xfs_bmap_add_attrfork()

xfs_bmap_add_attrfork() passes XFS_TRANS_PERM_LOG_RES to xfs_trans_commit()
to indicate that the commit should release the permanent log reservation
as part of the commit. This is wrong - the correct flag is
XFS_TRANS_RELEASE_LOG_RES - and it is only by the chance that both these
flags have the value of 0x4 that the code is doing the right thing.

Fix it by changing to use the correct flag.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_bmap.c