summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorngkaho1234 <ngkaho1234@gmail.com>2015-10-29 19:25:25 +0800
committerngkaho1234 <ngkaho1234@gmail.com>2015-10-29 19:25:25 +0800
commit190cc44e4cf4486c13ee43041167490f228fb110 (patch)
tree9758c2ee843f2d5548e2573bdf8877bf1d59fd75
parente5f33a98b0385a0281138abb60645db92f309e8a (diff)
FIX: ext4_extent_full.c: should not assign checksum to extent root(in inode)
-rw-r--r--lwext4/ext4_extent_full.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwext4/ext4_extent_full.c b/lwext4/ext4_extent_full.c
index b7f425b..b8347f7 100644
--- a/lwext4/ext4_extent_full.c
+++ b/lwext4/ext4_extent_full.c
@@ -1151,6 +1151,7 @@ static int ext4_ext_grow_indepth(struct ext4_inode_ref *inode_ref,
to_le16(ext4_ext_space_block(inode_ref));
neh->magic = to_le16(EXT4_EXTENT_MAGIC);
+ ext4_extent_block_csum_set(inode_ref, neh);
/* Update top-level index: num,max,pointer */
neh = ext_inode_hdr(inode_ref->inode);
@@ -1165,7 +1166,6 @@ static int ext4_ext_grow_indepth(struct ext4_inode_ref *inode_ref,
}
neh->depth = to_le16(to_le16(neh->depth) + 1);
- ext4_extent_block_csum_set(inode_ref, neh);
bh.dirty = true;
inode_ref->dirty = true;
ext4_block_set(inode_ref->fs->bdev, &bh);