Lines Matching refs:ngroups
207 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_dir() local
208 int avefreei = ext2_count_free_inodes(sb) / ngroups; in find_group_dir()
212 for (group = 0; group < ngroups; group++) { in find_group_dir()
264 int ngroups = sbi->s_groups_count; in find_group_orlov() local
277 avefreei = freei / ngroups; in find_group_orlov()
279 avefreeb = free_blocks / ngroups; in find_group_orlov()
289 parent_group = (unsigned)group % ngroups; in find_group_orlov()
290 for (i = 0; i < ngroups; i++) { in find_group_orlov()
291 group = (parent_group + i) % ngroups; in find_group_orlov()
318 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
330 for (i = 0; i < ngroups; i++) { in find_group_orlov()
331 group = (parent_group + i) % ngroups; in find_group_orlov()
347 for (i = 0; i < ngroups; i++) { in find_group_orlov()
348 group = (parent_group + i) % ngroups; in find_group_orlov()
374 int ngroups = EXT2_SB(sb)->s_groups_count; in find_group_other() local
396 group = (group + parent->i_ino) % ngroups; in find_group_other()
402 for (i = 1; i < ngroups; i <<= 1) { in find_group_other()
404 if (group >= ngroups) in find_group_other()
405 group -= ngroups; in find_group_other()
417 for (i = 0; i < ngroups; i++) { in find_group_other()
418 if (++group >= ngroups) in find_group_other()