ref: c8d7262124bc774995cad8c5da99a2590e9e63a4
parent: b14390e833df6bfe4e223df2e035da13b8a7e9fa
author: ngkaho1234 <[email protected]>
date: Sat Dec 26 16:12:54 EST 2015
ext4: fix ext4_trans_abort looking the same as ext4_trans_stop.
--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -584,16 +584,14 @@
return r;
}
-int ext4_trans_abort(struct ext4_mountpoint *mp)
+void ext4_trans_abort(struct ext4_mountpoint *mp)
{
- int r = EOK;
if (mp->fs.jbd_journal && mp->fs.curr_trans) {
struct jbd_journal *journal = mp->fs.jbd_journal;
struct jbd_trans *trans = mp->fs.curr_trans;
- r = jbd_journal_commit_trans(journal, trans);
+ jbd_journal_free_trans(journal, trans, true);
mp->fs.curr_trans = NULL;
}
- return r;
}
int ext4_trans_get_write_access(struct ext4_fs *fs,