aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/linux/kernel.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-06-21 23:24:38 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2018-06-21 23:24:38 -0700
commite2ac836307e346969737c60075fdb01bed1af503 (patch)
tree56fe6860df31c4d016db3a430dbad9387f8b4e04 /tools/testing/radix-tree/linux/kernel.h
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
xfs: simplify xfs_bmap_punch_delalloc_range
Instead of using xfs_bmapi_read to find delalloc extents and then punch them out using xfs_bunmapi, opencode the loop to iterate over the extents and call xfs_bmap_del_extent_delay directly. This both simplifies the code and reduces the number of extent tree lookups required. 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 'tools/testing/radix-tree/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions