summaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-11-05 17:44:08 +0100
committerTheodore Ts'o <tytso@mit.edu>2019-11-05 18:13:25 +0100
commit0db45889453644bb5d3e3c6044f4d81b910d41ef (patch)
treef7e5cf0b1adb02339b47430ff4d36b2f5e010ca4 /fs/jbd2
parentjbd2: Fix possible overflow in jbd2_log_space_left() (diff)
downloadlinux-0db45889453644bb5d3e3c6044f4d81b910d41ef.tar.xz
linux-0db45889453644bb5d3e3c6044f4d81b910d41ef.zip
jbd2: Fixup stale comment in commit code
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>
Diffstat (limited to 'fs/jbd2')
-rw-r--r--fs/jbd2/commit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 132fb92098c7..c6d39f2ad828 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -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);