xfs: treat idx as a cursor in xfs_bmap_collapse_extents
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Nov 2017 17:34:41 +0000 (10:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Nov 2017 19:53:39 +0000 (11:53 -0800)
commit42630361003461edd7607c1d459ab9d66ef97813
treef4bab684ebdb3ad737554e9f8008600c7e3fa073
parent657fcb23362c9e8a72593b3e4755135f003a7a74
xfs: treat idx as a cursor in xfs_bmap_collapse_extents

Stop poking before and after the index and just increment or decrement
it while doing our operations on it to prepare for a new extent list
implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
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