Searched refs:flex_gd (Results 1 – 1 of 1) sorted by relevance
243 struct ext4_new_flex_group_data *flex_gd; in alloc_flex_gd() local245 flex_gd = kmalloc_obj(*flex_gd, GFP_NOFS); in alloc_flex_gd()246 if (flex_gd == NULL) in alloc_flex_gd()250 flex_gd->resize_bg = max_resize_bg; in alloc_flex_gd()253 last_group = o_group | (flex_gd->resize_bg - 1); in alloc_flex_gd()255 flex_gd->resize_bg = 1 << fls(n_group - o_group); in alloc_flex_gd()256 else if (n_group - last_group < flex_gd->resize_bg) in alloc_flex_gd()257 flex_gd->resize_bg = 1 << max(fls(last_group - o_group), in alloc_flex_gd()260 if (WARN_ON_ONCE(flex_gd->resize_bg > max_resize_bg)) in alloc_flex_gd()261 flex_gd->resize_bg = max_resize_bg; in alloc_flex_gd()[all …]