Whamcloud - gitweb
Shorten compile commands run by the build system
[tools/e2fsprogs.git] / lib / ext2fs / alloc_tables.c
index 8b1d294..9f3d4e0 100644 (file)
@@ -10,6 +10,7 @@
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 #if HAVE_UNISTD_H
@@ -42,6 +43,8 @@ static blk64_t flexbg_offset(ext2_filsys fs, dgrp_t group, blk64_t start_blk,
        blk64_t         last_blk, first_free = 0;
        dgrp_t          last_grp;
 
+       flexbg_size = 1 << fs->super->s_log_groups_per_flex;
+       flexbg = group / flexbg_size;
        size = rem_grp * elem_size;
 
        if (size > (int) (fs->super->s_blocks_per_group / 8))