]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
jbd2: Fixup stale comment in commit code
authorJan Kara <jack@suse.cz>
Tue, 5 Nov 2019 16:44:08 +0000 (17:44 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Nov 2019 17:13:25 +0000 (12:13 -0500)
jbd2_journal_next_log_block() does not look at
transaction->t_outstanding_credits. Remove the misleading comment.

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

index 132fb92098c7186b2d7d4abb95432612dba43d4e..c6d39f2ad82893a1727173340c2c3cb4a41fff7d 100644 (file)
@@ -642,8 +642,7 @@ void jbd2_journal_commit_transaction(journal_t *journal)
 
                /*
                 * start_this_handle() uses t_outstanding_credits to determine
-                * the free space in the log, but this counter is changed
-                * by jbd2_journal_next_log_block() also.
+                * the free space in the log.
                 */
                atomic_dec(&commit_transaction->t_outstanding_credits);