move function call outside assert()
[lwext4.git] / src / ext4_mkfs.c
index 81867d6af237b41416cd85e0296d16aa473265d1..594205526bb3074776e00ad0668d1f2dcdb5a0d6 100644 (file)
  * @brief
  */
 
-#include "ext4_config.h"
-#include "ext4_types.h"
-#include "ext4_misc.h"
-#include "ext4_errno.h"
-#include "ext4_debug.h"
-
-#include "ext4_super.h"
-#include "ext4_block_group.h"
-#include "ext4_dir.h"
-#include "ext4_dir_idx.h"
-#include "ext4_fs.h"
-#include "ext4_inode.h"
-#include "ext4_ialloc.h"
-#include "ext4_mkfs.h"
+#include <ext4_config.h>
+#include <ext4_types.h>
+#include <ext4_misc.h>
+#include <ext4_errno.h>
+#include <ext4_debug.h>
+
+#include <ext4_super.h>
+#include <ext4_block_group.h>
+#include <ext4_dir.h>
+#include <ext4_dir_idx.h>
+#include <ext4_fs.h>
+#include <ext4_inode.h>
+#include <ext4_ialloc.h>
+#include <ext4_mkfs.h>
 
 #include <inttypes.h>
 #include <string.h>
@@ -388,7 +388,7 @@ static int write_bgroups(struct ext4_blockdev *bd, struct fs_aux_info *aux_info,
                                              bg_free_blk);
 
                ext4_bg_set_free_inodes_count(bg_desc,
-                               aux_info->sb, aux_info->sb->inodes_per_group);
+                               aux_info->sb, to_le32(aux_info->sb->inodes_per_group));
 
                ext4_bg_set_used_dirs_count(bg_desc, aux_info->sb, 0);