diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 3a45c224770f..694b140852c2 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1352,16 +1352,16 @@ static struct ctl_table fs_table[] = { | |||
1352 | { | 1352 | { |
1353 | .procname = "file-nr", | 1353 | .procname = "file-nr", |
1354 | .data = &files_stat, | 1354 | .data = &files_stat, |
1355 | .maxlen = 3*sizeof(int), | 1355 | .maxlen = sizeof(files_stat), |
1356 | .mode = 0444, | 1356 | .mode = 0444, |
1357 | .proc_handler = proc_nr_files, | 1357 | .proc_handler = proc_nr_files, |
1358 | }, | 1358 | }, |
1359 | { | 1359 | { |
1360 | .procname = "file-max", | 1360 | .procname = "file-max", |
1361 | .data = &files_stat.max_files, | 1361 | .data = &files_stat.max_files, |
1362 | .maxlen = sizeof(int), | 1362 | .maxlen = sizeof(files_stat.max_files), |
1363 | .mode = 0644, | 1363 | .mode = 0644, |
1364 | .proc_handler = proc_dointvec, | 1364 | .proc_handler = proc_doulongvec_minmax, |
1365 | }, | 1365 | }, |
1366 | { | 1366 | { |
1367 | .procname = "nr_open", | 1367 | .procname = "nr_open", |