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()
280 parent_group = prandom_u32_max(ngroups); in find_group_orlov()
281 for (i = 0; i < ngroups; i++) { in find_group_orlov()
282 group = (parent_group + i) % ngroups; in find_group_orlov()
309 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
321 for (i = 0; i < ngroups; i++) { in find_group_orlov()
322 group = (parent_group + i) % ngroups; in find_group_orlov()
338 for (i = 0; i < ngroups; i++) { in find_group_orlov()
339 group = (parent_group + i) % ngroups; in find_group_orlov()
365 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() local
387 group = (group + parent->i_ino) % ngroups; in find_group_other()
393 for (i = 1; i < ngroups; i <<= 1) { in find_group_other()
395 if (group >= ngroups) in find_group_other()
396 group -= ngroups; in find_group_other()
408 for (i = 0; i < ngroups; i++) { in find_group_other()
409 if (++group >= ngroups) in find_group_other()