]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6938aa8f7a2f4bfe55f1057cb9b328730ac2eb1
tree369c911b5143351fbc4ae7585673c07a0c1e4b72
parent40e827b7acb88708f8103eda933690e3c268681c
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