aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 76426d930077..f6d2e57b99a0 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -81,6 +81,7 @@ extern int compat_log;
81extern int maps_protect; 81extern int maps_protect;
82extern int sysctl_stat_interval; 82extern int sysctl_stat_interval;
83extern int latencytop_enabled; 83extern int latencytop_enabled;
84extern int sysctl_nr_open_min, sysctl_nr_open_max;
84 85
85/* Constants used for minimum and maximum */ 86/* Constants used for minimum and maximum */
86#if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM) 87#if defined(CONFIG_DETECT_SOFTLOCKUP) || defined(CONFIG_HIGHMEM)
@@ -1178,7 +1179,9 @@ static struct ctl_table fs_table[] = {
1178 .data = &sysctl_nr_open, 1179 .data = &sysctl_nr_open,
1179 .maxlen = sizeof(int), 1180 .maxlen = sizeof(int),
1180 .mode = 0644, 1181 .mode = 0644,
1181 .proc_handler = &proc_dointvec, 1182 .proc_handler = &proc_dointvec_minmax,
1183 .extra1 = &sysctl_nr_open_min,
1184 .extra2 = &sysctl_nr_open_max,
1182 }, 1185 },
1183 { 1186 {
1184 .ctl_name = FS_DENTRY, 1187 .ctl_name = FS_DENTRY,