xfs: simplify extent lookup in xfs_can_free_eofblocks
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2024 07:39:41 +0000 (09:39 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Tue, 3 Sep 2024 04:37:38 +0000 (10:07 +0530)
commit11f4c3a53adde1a57097b1ebaf36c64d9c0231bd
treec9edc488c3faf5ef72b71e39c0975a20bbbd6cae
parentb717089efe47bb0894d3deb016fecfc09ae586c6
xfs: simplify extent lookup in xfs_can_free_eofblocks

xfs_can_free_eofblocks just cares if there is an extent beyond EOF.
Replace the call to xfs_bmapi_read with a xfs_iext_lookup_extent
as we've already checked that extents are read in earlier.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_bmap_util.c