aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c8da99f905cf..332cefcdb04b 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -95,8 +95,6 @@
95#if defined(CONFIG_SYSCTL) 95#if defined(CONFIG_SYSCTL)
96 96
97/* External variables not in a header file. */ 97/* External variables not in a header file. */
98extern int sysctl_overcommit_memory;
99extern int sysctl_overcommit_ratio;
100extern int max_threads; 98extern int max_threads;
101extern int suid_dumpable; 99extern int suid_dumpable;
102#ifdef CONFIG_COREDUMP 100#ifdef CONFIG_COREDUMP
@@ -1121,7 +1119,14 @@ static struct ctl_table vm_table[] = {
1121 .data = &sysctl_overcommit_ratio, 1119 .data = &sysctl_overcommit_ratio,
1122 .maxlen = sizeof(sysctl_overcommit_ratio), 1120 .maxlen = sizeof(sysctl_overcommit_ratio),
1123 .mode = 0644, 1121 .mode = 0644,
1124 .proc_handler = proc_dointvec, 1122 .proc_handler = overcommit_ratio_handler,
1123 },
1124 {
1125 .procname = "overcommit_kbytes",
1126 .data = &sysctl_overcommit_kbytes,
1127 .maxlen = sizeof(sysctl_overcommit_kbytes),
1128 .mode = 0644,
1129 .proc_handler = overcommit_kbytes_handler,
1125 }, 1130 },
1126 { 1131 {
1127 .procname = "page-cluster", 1132 .procname = "page-cluster",