summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2010-01-29 15:38:34 -0800
committerThomas Gleixner <tglx@linutronix.de>2010-04-27 17:32:53 +0200
commitd48369f49733ab843c216f41519eebc4fb1a5357 (patch)
tree304a2173fa6bc83729905a0300c48c190c9d9aa3 /kernel
parentbf853e966141895df69363444c469d6dfeaa6f13 (diff)
downloadlwn-d48369f49733ab843c216f41519eebc4fb1a5357.tar.gz
lwn-d48369f49733ab843c216f41519eebc4fb1a5357.zip
fs-nr_inodes-percpu
fs: inode per-cpu nr_inodes counter Avoids cache line ping pongs between cpus and prepare next patch, because updates of nr_inodes dont need inode_lock anymore. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 13fab575418e..e4baabf7893e 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1301,14 +1301,14 @@ static struct ctl_table fs_table[] = {
.data = &inodes_stat,
.maxlen = 2*sizeof(int),
.mode = 0444,
- .proc_handler = proc_dointvec,
+ .proc_handler = &proc_nr_inodes,
},
{
.procname = "inode-state",
.data = &inodes_stat,
.maxlen = 7*sizeof(int),
.mode = 0444,
- .proc_handler = proc_dointvec,
+ .proc_handler = &proc_nr_inodes,
},
{
.procname = "file-nr",