xfs: split xfs_bmap_shift_extents
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 18:07:11 +0000 (11:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:27 +0000 (15:38 -0700)
commitecfea3f0c8c64ce7375f4be4506996968958bd01
tree3d1e9daddd75be1ae2a54a183bf008117e8a8d98
parent6b18af0dfd1695c1d53a2eeead838a90c27b7cb4
xfs: split xfs_bmap_shift_extents

Have a separate helper for insert vs collapse, as this prepares us for
simplifying the code in the next patches.

Also changed the done output argument to a bool intead of int for both
new functions.

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
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_bmap_util.c