Searched refs:ndirs (Results 1 – 3 of 3) sorted by relevance
278 int ndirs; in find_group_orlov() local287 ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); in find_group_orlov()320 if (ndirs == 0) in find_group_orlov()321 ndirs = 1; /* percpu_counters are approximate... */ in find_group_orlov()323 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()325 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
264 unsigned int ndirs; in find_group_orlov() local274 ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); in find_group_orlov()302 blocks_per_dir = (le32_to_cpu(es->s_blocks_count) - freeb) / ndirs; in find_group_orlov()304 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
452 unsigned int ndirs; in find_group_orlov() local463 ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); in find_group_orlov()494 do_div(blocks_per_dir, ndirs); in find_group_orlov()496 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()