]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: treat idx as a cursor in xfs_bmap_del_extent_*
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)
commite1b9ed339085742c6e638af3987664d4e94f4d4a
treeeb60645cc584face4cf4bb70cd42218ed97630d0
parent6b1a630ed82bc6d976c1029bb3b2cafd3c7a3b85
xfs: treat idx as a cursor in xfs_bmap_del_extent_*

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