shithub: lwext4

Download patch

ref: 38ddd83efb42a1ad30873e6a296009fa0e63678a
parent: cc1b60fd3a48ad29b0cf1f05ff817b1b8342d943
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Sat Dec 12 16:25:04 EST 2015

ext4_journal: add function prototypes to ext4_journal.h

--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -1101,8 +1101,7 @@
 /*
  * XXX: one should disable cache writeback first.
  */
-static void
-jbd_journal_commit_one(struct jbd_journal *journal)
+void jbd_journal_commit_one(struct jbd_journal *journal)
 {
 	int rc = EOK;
 	uint32_t last = journal->last;
--- a/lwext4/ext4_journal.h
+++ b/lwext4/ext4_journal.h
@@ -51,6 +51,20 @@
 		   ext4_lblk_t iblock,
 		   ext4_fsblk_t *fblock);
 int jbd_recover(struct jbd_fs *jbd_fs);
+int jbd_journal_start(struct jbd_fs *jbd_fs,
+		      struct jbd_journal *journal);
+int jbd_journal_stop(struct jbd_journal *journal);
+struct jbd_trans *jbd_journal_new_trans(struct jbd_journal *journal);
+int jbd_trans_add_block(struct jbd_trans *trans,
+			struct ext4_block *block);
+int jbd_trans_revoke_block(struct jbd_trans *trans,
+			   ext4_fsblk_t lba);
+void jbd_journal_free_trans(struct jbd_journal *journal,
+			    struct jbd_trans *trans,
+			    bool abort);
+void jbd_journal_submit_trans(struct jbd_journal *journal,
+			      struct jbd_trans *trans);
+void jbd_journal_commit_one(struct jbd_journal *journal);
 
 #ifdef __cplusplus
 }