]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: treat idx as a cursor in xfs_bmap_add_extent_hole_real
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Nov 2017 17:34:40 +0000 (10:34 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 Nov 2017 19:53:39 +0000 (11:53 -0800)
commiteae5d61942b69a649b02e979a860643c50c3a697
tree28b856b34df7770ee31fe2c736a55d6d4e0e376d
parent889d576e1c1e4f254106b0443702921155566102
xfs: treat idx as a cursor in xfs_bmap_add_extent_hole_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