commit | 01c2e13dcae9757ea987af8933f9fcc6e33f2d7c | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Thu Jan 18 14:07:53 2018 -0800 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Mon Jan 29 07:27:23 2018 -0800 |
tree | 369b006ec50bc6d70de8a3085482e9bc49655068 | |
parent | 7c2d238ac6c435c07780a54719760da2beb46a43 [diff] |
xfs: only grab shared inode locks for source file during reflink Reflink and dedupe operations remap blocks from a source file into a destination file. The destination file needs exclusive locks on all levels because we're updating its block map, but the source file isn't undergoing any block map changes so we can use a shared lock. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>