xfs: move more logic into xfs_extent_busy_clear_one
authorChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2024 06:07:08 +0000 (08:07 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 07:23:34 +0000 (12:53 +0530)
commite78a3ce28331583cc0b57b0602528c4d7628fc19
tree3679d3f75a8caafe5a8ec48b7169860f77632b1e
parent05150d46a33fdb567d9849b831aa139e1693e39c
xfs: move more logic into xfs_extent_busy_clear_one

Move the handling of discarded entries into xfs_extent_busy_clear_one
to reuse the length check and tidy up the logic in the caller.

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_extent_busy.c