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 18:17:14 +0000 (19:17 +0100)
commit9e2946bdddf136c90ac06b717856fa7d83830af7
tree1368aa04e1555e6b78bd8cbc9052c0c0ec54e862
parente48a6034482babeccdd6a2aac6f3b10beda35f26
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