OSDN Git Service

xfs: move some code around inside xfs_bmap_shift_extents
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Aug 2017 22:44:12 +0000 (15:44 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Sep 2017 20:08:25 +0000 (13:08 -0700)
commit05b7c8ab2be71e6fef4615451e7af1bc79ffdf29
tree65e27c1b8be2b44f93c03912984b57723a38226f
parentf2285c148c4167337d12452bebccadd2ad821d5d
xfs: move some code around inside xfs_bmap_shift_extents

For the first right move we need to look up next_fsb.  That means
our last fsb that contains next_fsb must also be the current extent,
so take advantage of that by moving the code around a bit.

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