diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-23 17:19:11 +0000 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2016-01-23 17:19:11 +0000 |
| commit | 1887221f942c128553730946025d1a9c419f56cb (patch) | |
| tree | 490b7ea11617f68d75488d942b4f226896965045 | |
| parent | cfc1becdfe4f6524c89949f50186f5a533bfcd17 (diff) | |
ext4_ialloc: fix using uint32_t as block address.
| -rw-r--r-- | lwext4/ext4_ialloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwext4/ext4_ialloc.c b/lwext4/ext4_ialloc.c index 5c3bcc0..bbdcd4d 100644 --- a/lwext4/ext4_ialloc.c +++ b/lwext4/ext4_ialloc.c @@ -165,7 +165,7 @@ int ext4_ialloc_free_inode(struct ext4_fs *fs, uint32_t index, bool is_dir) 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 @@ int ext4_ialloc_alloc_inode(struct ext4_fs *fs, uint32_t *idx, bool is_dir) /* 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); |
