]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jbd2: Fix statistics for the number of logged blocks
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:19 +0000 (17:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 12:40:46 +0000 (13:40 +0100)
commit90244f0d0f970dcac95a5388b68ce9c069fbeb4f
tree5ab62fd1dbf607c5396daa9df76b05f1ecb88e31
parentd12ceedc75d467a7b67fc8c97d575a6a17a49062
jbd2: Fix statistics for the number of logged blocks

[ Upstream commit 015c6033068208d6227612c878877919f3fcf6b6 ]

jbd2 statistics counting number of blocks logged in a transaction was
wrong. It didn't count the commit block and more importantly it didn't
count revoke descriptor blocks. Make sure these get properly counted.

Reviewed-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20191105164437.32602-13-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jbd2/commit.c