xfs: cleanup xfs_reflink_find_cow_mapping
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Nov 2016 00:39:49 +0000 (11:39 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Nov 2016 00:39:49 +0000 (11:39 +1100)
commit092d5d9d5812a80e4496cdbb24fe58e6f77da56b
treea5f43d2f5aab80f1e7ad9b7fa08370a4da96ee3f
parent2755fc4438501c8c28e7783df890e889f6772bee
xfs: cleanup xfs_reflink_find_cow_mapping

Use xfs_iext_lookup_extent to look up the extent, drop a useless check,
drop a unneeded return value and clean up the general style a little bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_reflink.c
fs/xfs/xfs_reflink.h