xfs: use xfs_iext_*_extent helpers in xfs_bmap_shift_extents
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Aug 2017 22:44:13 +0000 (15:44 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Sep 2017 20:08:25 +0000 (13:08 -0700)
commit4da6b514eaa168c246fc5c1245c4f82084bcf24e
tree4e1614035918e9fe1a6be9a9aa8124857c94b9c3
parent05b7c8ab2be71e6fef4615451e7af1bc79ffdf29
xfs: use xfs_iext_*_extent helpers in xfs_bmap_shift_extents

This abstracts the function away from details of the low-level extent
list implementation.

Note that it seems like the previous implementation of rmap for
the merge case was completely broken, but it no seems appear to
trigger that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c