Lines Matching refs:ngroups
201 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_dir() local
202 int avefreei = ext2_count_free_inodes(sb) / ngroups; in find_group_dir()
206 for (group = 0; group < ngroups; group++) { in find_group_dir()
256 int ngroups = sbi->s_groups_count; in find_group_orlov() local
269 avefreei = freei / ngroups; in find_group_orlov()
271 avefreeb = free_blocks / ngroups; in find_group_orlov()
279 parent_group = get_random_u32_below(ngroups); in find_group_orlov()
280 for (i = 0; i < ngroups; i++) { in find_group_orlov()
281 group = (parent_group + i) % ngroups; in find_group_orlov()
306 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
318 for (i = 0; i < ngroups; i++) { in find_group_orlov()
319 group = (parent_group + i) % ngroups; in find_group_orlov()
335 for (i = 0; i < ngroups; i++) { in find_group_orlov()
336 group = (parent_group + i) % ngroups; in find_group_orlov()
362 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() local
384 group = (group + parent->i_ino) % ngroups; in find_group_other()
390 for (i = 1; i < ngroups; i <<= 1) { in find_group_other()
392 if (group >= ngroups) in find_group_other()
393 group -= ngroups; in find_group_other()
405 for (i = 0; i < ngroups; i++) { in find_group_other()
406 if (++group >= ngroups) in find_group_other()