On Wed, Aug 21, 2024 at 10:03:28PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > 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. Look good and fixes the reporting issues I've seen: Reviewed-by: Christoph Hellwig <hch@xxxxxx> Tested-by: Christoph Hellwig <hch@xxxxxx>