xfs: reflink can skip remap existing mappings
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jun 2020 21:47:19 +0000 (14:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Jul 2020 17:46:57 +0000 (10:46 -0700)
commit168eae803cede459d67ed0ab3ddb19539700a78a
tree70cfe01a8b1fdc5c1f382bd34da529911308256c
parent94b941fd7a98cebd6b77b8925c54ef76bbf7473f
xfs: reflink can skip remap existing mappings

If the source and destination map are identical, we can skip the remap
step to save some time.

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