VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Yongqiang Yang <xiaoqiangnk@gmail.com> 2011-12-28 17:46:46 -0500 committer: Theodore Ts'o <tytso@mit.edu> 2011-12-28 17:46:46 -0500 commit: 1ba37268cd19e5a2a80924bfe8618bf1ba3e8249 parent: 5872ddaaf05bf25e3ab90580295ebc946405928c
Commit Summary:
jbd2: clear revoked flag on buffers before a new transaction started
Diffstat:
1 file changed, 6 insertions, 0 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 68d704db787f..5069b8475150 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -429,6 +429,12 @@ void jbd2_journal_commit_transaction(journal_t *journal)
 
 	jbd_debug(3, "JBD2: commit phase 1\n");
 
+	/*
+	 * Clear revoked flag to reflect there is no revoked buffers
+	 * in the next transaction which is going to be started.
+	 */
+	jbd2_clear_buffer_revoked_flags(journal);
+
 	/*
 	 * Switch to a new revoke table.
 	 */