Lines Matching refs:flexbg_size
193 static struct ext4_new_flex_group_data *alloc_flex_gd(unsigned long flexbg_size) in alloc_flex_gd() argument
201 if (flexbg_size >= UINT_MAX / sizeof(struct ext4_new_group_data)) in alloc_flex_gd()
203 flex_gd->count = flexbg_size; in alloc_flex_gd()
206 flexbg_size, GFP_NOFS); in alloc_flex_gd()
210 flex_gd->bg_flags = kmalloc(flexbg_size * sizeof(__u16), GFP_NOFS); in alloc_flex_gd()
246 int flexbg_size) in ext4_alloc_group_tables() argument
258 __u16 uninit_mask = (flexbg_size > 1) ? ~EXT4_BG_BLOCK_UNINIT : ~0; in ext4_alloc_group_tables()
265 BUG_ON((flexbg_size > 1) && ((src_group & ~(flexbg_size - 1)) != in ext4_alloc_group_tables()
266 (last_group & ~(flexbg_size - 1)))); in ext4_alloc_group_tables()
340 flexbg_size); in ext4_alloc_group_tables()
1499 unsigned long flexbg_size) in ext4_setup_next_flex_gd() argument
1522 last_group = group | (flexbg_size - 1); in ext4_setup_next_flex_gd()
1878 int err = 0, flexbg_size = 1 << sbi->s_log_groups_per_flex; in ext4_resize_fs() local
1978 flex_gd = alloc_flex_gd(flexbg_size); in ext4_resize_fs()
1988 flexbg_size)) { in ext4_resize_fs()
1996 if (ext4_alloc_group_tables(sb, flex_gd, flexbg_size) != 0) in ext4_resize_fs()