Skip to content

Commit

Permalink
jbd2: Fixup stale comment in commit code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara authored and Theodore Ts'o committed Nov 5, 2019
1 parent add3efd commit 0db4588
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/jbd2/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0db4588

Please sign in to comment.