]> www.infradead.org Git - users/willy/xarray.git/commit
xfs: fix FITRIM reporting again
authorDarrick J. Wong <djwong@kernel.org>
Fri, 30 Aug 2024 22:37:19 +0000 (15:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:20 +0000 (08:58 -0700)
commitc460f0f1a2bc219495e19e43daac6f8c902d81d8
treeabb94625d4407ac0082a0aa50f3348bdf4e8a6f5
parent64dfa18d6e322034c8a30b080f4c380a0b20bb7f
xfs: fix FITRIM reporting again

Don't report FITRIMming more bytes than possibly exist in the
filesystem.

Fixes: 410e8a18f8e93 ("xfs: don't bother reporting blocks trimmed via FITRIM")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_discard.c