]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: fix incorrect unit conversion at the end of FITRIM
authorDarrick J. Wong <djwong@kernel.org>
Sun, 6 Jul 2025 18:32:34 +0000 (11:32 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jul 2025 14:41:55 +0000 (10:41 -0400)
commit861aa217652426711a619d11aab5c92006a98e22
tree3c730e6fce9875143e0bba6592230762afc8371a
parent62b2a1619d858f65acaa6ce64623fb8684a88882
fuse2fs: fix incorrect unit conversion at the end of FITRIM

generic/260 also points out that the bytes cleared are in the wrong
units -- they're supposed to be in bytes, but the "cleared" variable is
in units of fsblocks.  Fix that.

Cc: linux-ext4@vger.kernel.org # v1.47.3-rc1
Fixes: 7235b58533b9cd ("fuse2fs: fix FITRIM validation")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/175182663095.1984706.13547873393931840622.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c