]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c9ef069dd9572d4bbee66663c8aede8d2a107a1
tree2b79fd3d6c17ed96dd4017b1a6fd8df1f9f5d36b
parentd2e27100e08eead8246bbd9b20281006239662b6
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