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)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 21:00:48 +0000 (16:00 -0500)
commit015c6033068208d6227612c878877919f3fcf6b6
treec0ed44c73f5477e12ade49deceadac17a2d3f492
parent9797a902480521dc8e7a478e38f0c896ffff8784
jbd2: Fix statistics for the number of logged blocks

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>
fs/jbd2/commit.c