summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-10-20 06:54:45 +0200
committerDave Chinner <david@fromorbit.com>2016-10-20 06:54:45 +0200
commitc1112b6e626637ec09319883b63e705a931c398b (patch)
tree22bcdfb9829739e8341ee1aa302df9b58881c53e /net
parentxfs: optimize xfs_reflink_cancel_cow_blocks (diff)
downloadlinux-c1112b6e626637ec09319883b63e705a931c398b.tar.xz
linux-c1112b6e626637ec09319883b63e705a931c398b.zip
xfs: optimize xfs_reflink_end_cow
Instead of doing a full extent list search for each extent that is to be deleted using xfs_bmapi_read and then doing another one inside of xfs_bunmapi_cow use the same scheme that xfs_bumapi uses: look up the last extent to be deleted and then use the extent index to walk downward until we are outside the range to be deleted. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions