xfs: fix unlock in xfs_bmap_add_attrfork
authorMark Tinguely <tinguely@sgi.com>
Thu, 7 Nov 2013 21:43:28 +0000 (15:43 -0600)
committerBen Myers <bpm@sgi.com>
Mon, 18 Nov 2013 15:12:54 +0000 (09:12 -0600)
commit9e3908e342eba6684621e616529669c17e271e7e
tree1538ff2599edc1523535e6032e91a1146a25bb42
parentec715cacd53f63b21da3a9bc96a9bb4c527e25b1
xfs: fix unlock in xfs_bmap_add_attrfork

xfs_trans_ijoin() activates the inode in a transaction and
also can specify which lock to free when the transaction is
committed or canceled.

xfs_bmap_add_attrfork call locks and adds the lock to the
transaction but also manually removes the lock. Change the
routine to not add the lock to the transaction and manually
remove lock on completion.

While here, clean up the xfs_trans_cancel flags and goto names.

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_bmap.c