]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: fix double ijoin in xfs_reflink_clear_inode_flag()
authorDave Chinner <dchinner@redhat.com>
Wed, 9 May 2018 14:49:10 +0000 (07:49 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 10 May 2018 15:56:46 +0000 (08:56 -0700)
commit844e5e74c1a8256f2b0f89642ed9847b04fe2450
treeacd86154c8dbe847b1ba3382be1568748db97be4
parentc5295c6aad536ba7c257016632792f3031c21182
xfs: fix double ijoin in xfs_reflink_clear_inode_flag()

xfs_reflink_clear_inode_flag double-joins an inode to a transaction,
which is not allowed.  Fix that and document that the caller must have
already joined it.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
[darrick: edit out trace for nonexistent ASSERT]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_reflink.c