]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb7b15c2f70369f0db256d54f2a5a05fd04995be
tree3d1e9daddd75be1ae2a54a183bf008117e8a8d98
parent14bdc8401bab29ea7312f91726b3a0e105e1fbf1
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