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

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