]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor xfs_bmap_add_extent_hole_delay
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Nov 2017 04:11:31 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:31 +0000 (22:11 -0600)
commit450b3981c8c6f72a4f07e2f67590df4f24678ec4
tree409a873db94952331a4bc0d0974d3b832bc43146
parent70bf75330f3be440e65bfbaf7ba3a7a1eb35b708
xfs: refactor xfs_bmap_add_extent_hole_delay

Source kernel commit: 3ffc18ecd30ed21dc503fcbfb343c471a9112fb6

Use xfs_iext_get_extent to find, and xfs_iext_update_extent to update
entries in the in-core extent list.  This isolates the function from
the detailed layout of the extent list, and generally makes the code
a lot more readable.

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c