xfs: reflink should break pnfs leases before sharing blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Jan 2018 21:55:20 +0000 (13:55 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jan 2018 15:27:23 +0000 (07:27 -0800)
commit1364b1d4b5df31a05b6a3e6fdeb5371dbd4bd8ac
tree369c911b5143351fbc4ae7585673c07a0c1e4b72
parentc47b74fb2dba46642fc9c2581a28893b42a42815
xfs: reflink should break pnfs leases before sharing blocks

Before we share blocks between files, we need to break the pnfs leases
on the layout before we start slicing and dicing the block map.  The
structure of this function sets us up for the lock contention reduction
in the next patch.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_reflink.c