xfs: reflink find shared should take a transaction
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 16 Jun 2017 18:00:10 +0000 (11:00 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Jun 2017 21:11:35 +0000 (14:11 -0700)
commit92ff7285f1df5590d53ab7031f0b86552b59121d
tree04b79c0aebd610d50efd687961c1b004bb65cd73
parent378f681c4b588c0432236e5517bf47b7e54ff2dc
xfs: reflink find shared should take a transaction

Adapt _reflink_find_shared to take an optional transaction pointer.  The
inode scrubber code will need to decide (within transaction context) if
a file has shared blocks.  To avoid buffer deadlocks, we must pass the
tp through to this function's utility calls.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h