VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Harshad Shirwadkar <harshadshirwadkar@gmail.com> 2020-11-05 19:58:54 -0800 committer: Theodore Ts'o <tytso@mit.edu> 2020-11-06 23:01:02 -0500 commit: ede7dc7fa0af619afc08995776eadb9ff3b0a711 parent: a80f7fcf18672ae4971a6b713b58c0d389aa99fe
Commit Summary:
jbd2: rename j_maxlen to j_total_len and add jbd2_journal_max_txn_bufs
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index fa688e163a80..ec516490cb35 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -801,7 +801,7 @@ start_journal_io:
 		if (first_block < journal->j_tail)
 			freed += journal->j_last - journal->j_first;
 		/* Update tail only if we free significant amount of space */
-		if (freed < journal->j_maxlen / 4)
+		if (freed < jbd2_journal_get_max_txn_bufs(journal))
 			update_tail = 0;
 	}
 	J_ASSERT(commit_transaction->t_state == T_COMMIT);