shithub: lwext4

Download patch

ref: 54c3f8cd84a638c0cd26eadb0894f80ce2099783
parent: 90931b2bca83dce89f355eed1caae2c2166f1572
author: ngkaho1234 <[email protected]>
date: Sun Oct 18 05:21:29 EDT 2015

ext4_ext_zero_unwritten_range: uint32_t -> ext4_fsblk_t

--- a/lwext4/ext4_extent_full.c
+++ b/lwext4/ext4_extent_full.c
@@ -1613,9 +1613,8 @@
 	uint32_t i;
 	uint32_t block_size = ext4_sb_get_block_size(&inode_ref->fs->sb);
 	for (i = 0; i < blocks_count; i++) {
-		uint32_t block_u32 = (uint32_t)block + (uint32_t)i;
 		struct ext4_block bh = EXT4_BLOCK_ZERO();
-		err = ext4_block_get(inode_ref->fs->bdev, &bh, block_u32);
+		err = ext4_block_get(inode_ref->fs->bdev, &bh, block + i);
 		if (err != EOK)
 			break;