Searched refs:ndirs (Results 1 – 2 of 2) sorted by relevance
271 int ndirs; in find_group_orlov() local280 ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); in find_group_orlov()313 if (ndirs == 0) in find_group_orlov()314 ndirs = 1; /* percpu_counters are approximate... */ in find_group_orlov()316 blocks_per_dir = (le32_to_cpu(es->s_blocks_count)-free_blocks) / ndirs; in find_group_orlov()318 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()
434 unsigned int ndirs; in find_group_orlov() local455 ndirs = percpu_counter_read_positive(&sbi->s_dirs_counter); in find_group_orlov()514 max_dirs = ndirs / ngroups + inodes_per_group / 16; in find_group_orlov()