ref: 1887221f942c128553730946025d1a9c419f56cb
parent: cfc1becdfe4f6524c89949f50186f5a533bfcd17
author: ngkaho1234 <[email protected]>
date: Sat Jan 23 12:19:11 EST 2016
ext4_ialloc: fix using uint32_t as block address.
--- a/lwext4/ext4_ialloc.c
+++ b/lwext4/ext4_ialloc.c
@@ -165,7 +165,7 @@
struct ext4_bgroup *bg = bg_ref.block_group;
/* Load i-node bitmap */
- uint32_t bitmap_block_addr =
+ ext4_fsblk_t bitmap_block_addr =
ext4_bg_get_inode_bitmap(bg, sb);
struct ext4_block b;
@@ -257,7 +257,7 @@
/* Check if this block group is good candidate for allocation */
if (free_inodes > 0) {
/* Load block with bitmap */
- uint32_t bmp_blk_add = ext4_bg_get_inode_bitmap(bg, sb);
+ ext4_fsblk_t bmp_blk_add = ext4_bg_get_inode_bitmap(bg, sb);
struct ext4_block b;
rc = ext4_trans_block_get(fs->bdev, &b, bmp_blk_add);