ref: ce4eae952d8a1eab8ebe3a168e7e3a791bab9607
parent: 82529f8ee832bf67da9a4cf52b4b89fdbaf0c077
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Thu Nov 26 06:09:28 EST 2015
ext4_journal: fix ext4_block not being freed.
--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -193,6 +193,7 @@
header = (struct jbd_bhdr *)block.data;
if (header->magic != to_be32(JBD_MAGIC_NUMBER)) {
+ jbd_block_set(jbd_fs, &block);
log_end = true;
continue;
}
@@ -201,6 +202,7 @@
if (this_trans_id <= info->last_trans_id)
r = EIO;
+ jbd_block_set(jbd_fs, &block);
log_end = true;
continue;
}