Lines Matching refs:flex_group
337 struct flex_groups *flex_group = sbi->s_flex_groups;
353 flexbg_free_blocks = atomic_read(&flex_group[best_flex].free_blocks);
355 if (atomic_read(&flex_group[best_flex].free_inodes) &&
368 flexbg_free_blocks = atomic_read(&flex_group[i].free_blocks);
372 (atomic_read(&flex_group[i].free_inodes))) {
377 if ((atomic_read(&flex_group[best_flex].free_inodes) == 0) ||
378 ((atomic_read(&flex_group[i].free_blocks) >
379 atomic_read(&flex_group[best_flex].free_blocks)) &&
380 atomic_read(&flex_group[i].free_inodes)))
384 if (!atomic_read(&flex_group[best_flex].free_inodes) ||
385 !atomic_read(&flex_group[best_flex].free_blocks))
418 struct flex_groups *flex_group = EXT4_SB(sb)->s_flex_groups;
421 stats->free_inodes = atomic_read(&flex_group[g].free_inodes);
422 stats->free_blocks = atomic_read(&flex_group[g].free_blocks);
423 stats->used_dirs = atomic_read(&flex_group[g].used_dirs);
805 ext4_group_t flex_group;
971 flex_group = ext4_flex_group(sbi, group);
972 atomic_dec(&sbi->s_flex_groups[flex_group].free_inodes);