Christoph Hellwig c1112b6e62 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>
2016-10-20 15:54:45 +11:00
..
2016-10-20 15:54:14 +11:00
2016-04-06 09:47:01 +10:00
2016-04-06 09:47:01 +10:00
2016-10-04 18:06:40 -07:00
2013-05-07 18:45:36 -05:00
2012-11-19 20:11:24 -06:00
2016-10-04 11:05:44 -07:00
2016-10-13 20:28:22 -07:00
2016-10-13 20:28:22 -07:00
2016-10-13 20:28:22 -07:00
2016-06-01 17:38:15 +10:00
2013-05-07 18:45:36 -05:00
2016-04-06 09:19:55 +10:00
2016-10-20 15:42:30 +11:00
2016-10-20 15:54:45 +11:00
2013-05-07 18:45:36 -05:00