shithub: lwext4

Download patch

ref: daa7eb39d8849fd04967b40f39389ba643360087
parent: 8668c0f48be313029675abbe949a5b74c68aa56d
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Sun Dec 13 07:31:14 EST 2015

ext4_journal: clear EXT4_FINCOM_RECOVER after replaying journal.

--- a/lwext4/ext4_journal.c
+++ b/lwext4/ext4_journal.c
@@ -752,7 +752,14 @@
 
 	r = jbd_iterate_log(jbd_fs, &info, ACTION_RECOVER);
 	if (r == EOK) {
+		uint32_t features_incompatible =
+			ext4_get32(&jbd_fs->inode_ref.fs->sb,
+				   features_incompatible);
 		jbd_set32(&jbd_fs->sb, start, 0);
+		features_incompatible &= ~EXT4_FINCOM_RECOVER;
+		ext4_set32(&jbd_fs->inode_ref.fs->sb,
+			   features_incompatible,
+			   features_incompatible);
 		jbd_fs->dirty = true;
 	}
 	jbd_destroy_revoke_tree(&info);