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:12:48 +0000 (19:12 +0100)
commitb414de6049fad8dfe755ab1ebab425ee1858e8d1
treeae8eaca23cd526b1a70e76978e6d9c2715ac6d32
parentc14187f1b44290fb273e2f8ce4cdc804407d72e9
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