diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-17 04:25:41 +0000 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2016-01-17 20:08:25 +0100 |
| commit | 825892fffbe28f07223e3f1dcadb887732591d49 (patch) | |
| tree | 952fda3b20ebb5bdb2b4e2370405bd33f3124e3d | |
| parent | 526e3d9d13ec9e7f055407cda23c031e4200f278 (diff) | |
ext4_journal: remove pending transaction support. (useless)
| -rw-r--r-- | lwext4/ext4_journal.c | 38 | ||||
| -rw-r--r-- | lwext4/ext4_journal.h | 4 |
2 files changed, 0 insertions, 42 deletions
diff --git a/lwext4/ext4_journal.c b/lwext4/ext4_journal.c index 6701046..ba1cf76 100644 --- a/lwext4/ext4_journal.c +++ b/lwext4/ext4_journal.c @@ -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); - } -} - /** * @} */ diff --git a/lwext4/ext4_journal.h b/lwext4/ext4_journal.h index cbb7cc8..8e193cc 100644 --- a/lwext4/ext4_journal.h +++ b/lwext4/ext4_journal.h @@ -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 } |
