diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-16 11:00:10 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-06-19 14:11:35 -0700 |
commit | 92ff7285f1df5590d53ab7031f0b86552b59121d (patch) | |
tree | 04b79c0aebd610d50efd687961c1b004bb65cd73 /fs/xfs/xfs_bmap_util.c | |
parent | 378f681c4b588c0432236e5517bf47b7e54ff2dc (diff) | |
download | op-kernel-dev-92ff7285f1df5590d53ab7031f0b86552b59121d.zip op-kernel-dev-92ff7285f1df5590d53ab7031f0b86552b59121d.tar.gz |
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>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 0ea70a4..863180c 100644 --- a/fs/xfs/xfs_bmap_util.c +++ b/fs/xfs/xfs_bmap_util.c @@ -455,8 +455,8 @@ xfs_getbmap_adjust_shared( agno = XFS_FSB_TO_AGNO(mp, map->br_startblock); agbno = XFS_FSB_TO_AGBNO(mp, map->br_startblock); - error = xfs_reflink_find_shared(mp, agno, agbno, map->br_blockcount, - &ebno, &elen, true); + error = xfs_reflink_find_shared(mp, NULL, agno, agbno, + map->br_blockcount, &ebno, &elen, true); if (error) return error; |