bfin-elf.cmake: set -std=gnu99 for blackfin targets (unsupported gnu11)
[lwext4.git] / lwext4 / ext4_ialloc.c
index a612a75acb2e552997c02433582f196a8f49c2cb..bbdcd4dfb7fffcbfe70229f257f7c5b60b80d622 100644 (file)
@@ -43,7 +43,7 @@
 #include "ext4_types.h"
 #include "ext4_ialloc.h"
 #include "ext4_super.h"
-#include "ext4_crc32c.h"
+#include "ext4_crc32.h"
 #include "ext4_fs.h"
 #include "ext4_blockdev.h"
 #include "ext4_block_group.h"
@@ -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);