shithub: lwext4

Download patch

ref: f60d62d6cd364c09aef1c0ec94232183cf6f2b91
parent: 2433226aec14ba1e81da887c7e2e9ee1a592fc2f
author: ngkaho1234 <[email protected]>
date: Fri Oct 23 13:38:38 EDT 2015

METADATA_CSUM: ext4_extent_full: do not do checksum on extent root.

--- a/lwext4/ext4_extent_full.c
+++ b/lwext4/ext4_extent_full.c
@@ -348,12 +348,12 @@
 static int ext4_ext_dirty(struct ext4_inode_ref *inode_ref,
 			  struct ext4_extent_path *path)
 {
-	if (path->block.lb_id)
+	if (path->block.lb_id) {
+		ext4_extent_block_csum_set(inode_ref, path->header);
 		path->block.dirty = true;
-	else
+	} else
 		inode_ref->dirty = true;
 
-	ext4_extent_block_csum_set(inode_ref, path->header);
 	return EOK;
 }