aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8a68b2448468..e4baabf7893e 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1301,14 +1301,14 @@ static struct ctl_table fs_table[] = {
1301 .data = &inodes_stat, 1301 .data = &inodes_stat,
1302 .maxlen = 2*sizeof(int), 1302 .maxlen = 2*sizeof(int),
1303 .mode = 0444, 1303 .mode = 0444,
1304 .proc_handler = proc_dointvec, 1304 .proc_handler = &proc_nr_inodes,
1305 }, 1305 },
1306 { 1306 {
1307 .procname = "inode-state", 1307 .procname = "inode-state",
1308 .data = &inodes_stat, 1308 .data = &inodes_stat,
1309 .maxlen = 7*sizeof(int), 1309 .maxlen = 7*sizeof(int),
1310 .mode = 0444, 1310 .mode = 0444,
1311 .proc_handler = proc_dointvec, 1311 .proc_handler = &proc_nr_inodes,
1312 }, 1312 },
1313 { 1313 {
1314 .procname = "file-nr", 1314 .procname = "file-nr",
@@ -1334,6 +1334,12 @@ static struct ctl_table fs_table[] = {
1334 .extra2 = &sysctl_nr_open_max, 1334 .extra2 = &sysctl_nr_open_max,
1335 }, 1335 },
1336 { 1336 {
1337 /*
1338 * dentry_stat has an atomic_t member, so this is a bit of
1339 * a hack, but it works for the moment, and I won't bother
1340 * changing it now because we'll probably want to change to
1341 * a more scalable counter anyway.
1342 */
1337 .procname = "dentry-state", 1343 .procname = "dentry-state",
1338 .data = &dentry_stat, 1344 .data = &dentry_stat,
1339 .maxlen = 6*sizeof(int), 1345 .maxlen = 6*sizeof(int),