Home
last modified time | relevance | path

Searched refs:nr_files (Results 1 – 3 of 3) sorted by relevance

/fs/
Dfile_table.c42 static struct percpu_counter nr_files __cacheline_aligned_in_smp;
54 percpu_counter_dec(&nr_files); in file_free()
63 return percpu_counter_read_positive(&nr_files); in get_nr_files()
82 files_stat.nr_files = get_nr_files(); in proc_nr_files()
118 if (percpu_counter_sum_positive(&nr_files) >= files_stat.max_files) in get_empty_filp()
126 percpu_counter_inc(&nr_files); in get_empty_filp()
316 percpu_counter_init(&nr_files, 0, GFP_KERNEL); in files_init()
/fs/proc/
Dproc_sysctl.c1340 int nr_files = 0; in register_leaf_sysctl_tables() local
1348 nr_files++; in register_leaf_sysctl_tables()
1353 if (nr_dirs && nr_files) { in register_leaf_sysctl_tables()
1355 files = kzalloc(sizeof(struct ctl_table) * (nr_files + 1), in register_leaf_sysctl_tables()
1370 if (nr_files || !nr_dirs) { in register_leaf_sysctl_tables()
Dbase.c2086 unsigned long nr_files, pos, i; in proc_map_files_readdir() local
2110 nr_files = 0; in proc_map_files_readdir()
2124 nr_files++; in proc_map_files_readdir()
2127 if (nr_files) { in proc_map_files_readdir()
2128 fa = flex_array_alloc(sizeof(info), nr_files, in proc_map_files_readdir()
2130 if (!fa || flex_array_prealloc(fa, 0, nr_files, in proc_map_files_readdir()
2156 for (i = 0; i < nr_files; i++) { in proc_map_files_readdir()