ref: e3b6a36302245cd76cb9f7d7dab371c737f8b7c6
parent: c6ffd2afb2caae418021acfeb7b2737822a76897
author: ngkaho1234 <[email protected]>
date: Mon Nov 9 03:49:45 EST 2015
FIX: ext4_extent: checksumming against newly allocated block.
--- a/lwext4/ext4_extent.c
+++ b/lwext4/ext4_extent.c
@@ -657,14 +657,6 @@
return rc;
}
- if (!ext4_extent_verify_block_csum(inode_ref,
- &block)) {
- ext4_dbg(DEBUG_EXTENT,
- DBG_WARN "Extent block checksum failed."
- "Blocknr: %" PRIu64"\n",
- fblock);
- }
-
/* Put back not modified old block */
rc = ext4_block_set(inode_ref->fs->bdev,
&path_ptr->block);
@@ -766,14 +758,6 @@
rc = ext4_block_get(inode_ref->fs->bdev, &block, new_fblock);
if (rc != EOK)
return rc;
-
- if (!ext4_extent_verify_block_csum(inode_ref,
- &block)) {
- ext4_dbg(DEBUG_EXTENT,
- DBG_WARN "Extent block checksum failed."
- "Blocknr: %" PRIu64"\n",
- new_fblock);
- }
/* Initialize newly allocated block */
memset(block.data, 0, block_size);