summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_bmap_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-10-17 14:16:25 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-26 15:38:22 -0700
commit79fa6143a939a6b50d1d9dc736336e57d06b849d (patch)
treec54ad557206008a8ddb07a8df779cb97bfc1653b /fs/xfs/libxfs/xfs_bmap_btree.h
parentca1862b0838604aa048120d87ebbf53cf7c8c8bd (diff)
xfs: refactor xfs_bmap_add_extent_unwritten_real
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. Also get rid of the oldext and newext variables as using the extent records is a lot more descriptive. 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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap_btree.h')
0 files changed, 0 insertions, 0 deletions