ext4_journal: remove pending transaction support. (useless)
authorngkaho1234 <ngkaho1234@gmail.com>
Sun, 17 Jan 2016 04:25:41 +0000 (04:25 +0000)
committergkostka <kostka.grzegorz@gmail.com>
Sun, 17 Jan 2016 19:08:25 +0000 (20:08 +0100)
lwext4/ext4_journal.c
lwext4/ext4_journal.h

index 6701046ea42b431ebada1de0f048d10437c977fe..ba1cf7624ab47b639529e45f24b2a0e95a15631f 100644 (file)
@@ -1374,9 +1374,6 @@ int jbd_journal_stop(struct jbd_journal *journal)
        struct jbd_fs *jbd_fs = journal->jbd_fs;
        uint32_t features_incompatible;
 
-       /* Commit all the transactions to the journal.*/
-       jbd_journal_commit_all(journal);
-
        /* Make sure that journalled content have reached
         * the disk.*/
        jbd_journal_purge_cp_trans(journal, true);
@@ -2024,18 +2021,6 @@ again:
        return rc;
 }
 
-/**@brief  Submit the transaction to transaction queue.
- * @param  journal current journal session
- * @param  trans transaction*/
-void
-jbd_journal_submit_trans(struct jbd_journal *journal,
-                        struct jbd_trans *trans)
-{
-       TAILQ_INSERT_TAIL(&journal->trans_queue,
-                         trans,
-                         trans_node);
-}
-
 /**@brief  Put references of block descriptors in a transaction.
  * @param  journal current journal session
  * @param  trans transaction*/
@@ -2168,29 +2153,6 @@ Finish:
        return rc;
 }
 
-/**@brief  Commit one transaction on transaction queue
- *         to the journal.
- * @param  journal current journal session.*/
-void jbd_journal_commit_one(struct jbd_journal *journal)
-{
-       struct jbd_trans *trans;
-
-       if ((trans = TAILQ_FIRST(&journal->trans_queue))) {
-               TAILQ_REMOVE(&journal->trans_queue, trans, trans_node);
-               jbd_journal_commit_trans(journal, trans);
-       }
-}
-
-/**@brief  Commit all the transactions on transaction queue
- *         to the journal.
- * @param  journal current journal session.*/
-void jbd_journal_commit_all(struct jbd_journal *journal)
-{
-       while (!TAILQ_EMPTY(&journal->trans_queue)) {
-               jbd_journal_commit_one(journal);
-       }
-}
-
 /**
  * @}
  */
index cbb7cc845ef18449d9fb413f3ea4e2d658843475..8e193cc67a2c6c901cc9a1b509d6fdb0929af08e 100644 (file)
@@ -69,10 +69,6 @@ void jbd_journal_free_trans(struct jbd_journal *journal,
                            bool abort);
 int jbd_journal_commit_trans(struct jbd_journal *journal,
                             struct jbd_trans *trans);
-void jbd_journal_submit_trans(struct jbd_journal *journal,
-                             struct jbd_trans *trans);
-void jbd_journal_commit_one(struct jbd_journal *journal);
-void jbd_journal_commit_all(struct jbd_journal *journal);
 
 #ifdef __cplusplus
 }