diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2015-10-01 19:04:26 +0200 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2015-10-01 19:04:26 +0200 |
| commit | 8209c29e3262a9093f48e98ac52ee98c3d0ed4d1 (patch) | |
| tree | 53ee8e2104b05c91f8641d55ba4211694f2e18b1 | |
| parent | d409b47eebae48e79ff24c54f7eea4b2a3e81b61 (diff) | |
| parent | f01e3ef3e5890c33f035c09a6f9c3283b3b4454f (diff) | |
Merge branch 'master' of https://github.com/ngkaho1234/lwext4
| -rw-r--r-- | lwext4/ext4_config.h | 2 | ||||
| -rw-r--r-- | lwext4/ext4_fs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lwext4/ext4_config.h b/lwext4/ext4_config.h index 5b0af0c..65c8e10 100644 --- a/lwext4/ext4_config.h +++ b/lwext4/ext4_config.h @@ -114,7 +114,7 @@ /**@brief Include assert codes from ext4_debug or standard library.*/ #ifndef CONFIG_HAVE_OWN_ASSERT -#define CONFIG_HAVE_OWN_ASSERT 0 +#define CONFIG_HAVE_OWN_ASSERT 1 #endif /**@brief Statistics of block device*/ diff --git a/lwext4/ext4_fs.c b/lwext4/ext4_fs.c index 0a97495..33afc74 100644 --- a/lwext4/ext4_fs.c +++ b/lwext4/ext4_fs.c @@ -360,8 +360,8 @@ static int ext4_fs_init_block_bitmap(struct ext4_block_group_ref *bg_ref) bit_max += ext4_bg_num_gdb(&bg_ref->fs->sb, bg_ref->index); } - for (bit = 0; bit < bit_max; bit++) - ext4_bmap_bit_set(block_bitmap.data, bit); + for (bit = 0; bit < bit_max; bit++) + ext4_bmap_bit_set(block_bitmap.data, bit); if (bg_ref->index == ext4_block_group_cnt(&bg_ref->fs->sb) - 1) { /* |
