xfs: refactor xfs_bmap_add_extent_hole_real
authorChristoph Hellwig <hch@lst.de>
Tue, 17 Oct 2017 21:16:24 +0000 (14:16 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:21 +0000 (15:38 -0700)
commit1abb9e55326c19bb41a9a2fd1179ed635e8af38c
tree872d0cd0389021490150a1be871a364dbfb3b9d2
parent3ffc18ecd30ed21dc503fcbfb343c471a9112fb6
xfs: refactor xfs_bmap_add_extent_hole_real

Use 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>
fs/xfs/libxfs/xfs_bmap.c