xfs: don't bother reporting blocks trimmed via FITRIM
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Aug 2024 23:59:48 +0000 (16:59 -0700)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 26 Aug 2024 04:22:13 +0000 (09:52 +0530)
commit410e8a18f8e9311c6bf29ae47f32ad46f0219569
tree8f364debc907e8e2f95b430be3b50bb7507a0b39
parent95179935beadccaf0f0bb461adb778731e293da4
xfs: don't bother reporting blocks trimmed via FITRIM

Don't bother reporting the number of bytes that we "trimmed" because the
underlying storage isn't required to do anything(!) and failed discard
IOs aren't reported to the caller anyway.  It's not like userspace can
use the reported value for anything useful like adjusting the offset
parameter of the next call, and it's not like anyone ever wrote a
manpage about FITRIM's out parameters.

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