xfs: remove xfs_reflink_find_cow_mapping
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:26:01 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:01 +0000 (22:26 -0700)
commit060d4eaa0bf30a8fc2d189e4d4922f6e9027857b
tree2b79fd3d6c17ed96dd4017b1a6fd8df1f9f5d36b
parentc3a2f9fff1bbe3cfc2070b2e9f1f0ad0d5ccda91
xfs: remove xfs_reflink_find_cow_mapping

We only have one caller left, and open coding the simple extent list
lookup in it allows us to make the code both more understandable and
reuse calculations and variables already present.

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