jbd2: clear revoked flag on buffers before a new transaction started
[firefly-linux-kernel-4.4.55.git] / fs / jbd2 / commit.c
index 68d704db787f108350f9cc47fd506628685399c7..5069b84751509e65bb9689c153ac87e36c26b843 100644 (file)
@@ -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.
         */