From: Jan Kara jack@suse.cz
mainline inclusion from mainline-5.5-rc1 commit 0db45889453644bb5d3e3c6044f4d81b910d41ef category: bugfix bugzilla: 25031 CVE: NA ---------------------------
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
Signed-off-by: zhangyi (F) yi.zhang@huawei.com Reviewed-by: Yang Erkun yangerkun@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- fs/jbd2/commit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index d4e6288..92927950 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -639,8 +639,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);