aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index a13bbdaab47d..706309f9ed84 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -65,6 +65,7 @@
65#include <linux/sched/sysctl.h> 65#include <linux/sched/sysctl.h>
66#include <linux/kexec.h> 66#include <linux/kexec.h>
67#include <linux/bpf.h> 67#include <linux/bpf.h>
68#include <linux/mount.h>
68 69
69#include <asm/uaccess.h> 70#include <asm/uaccess.h>
70#include <asm/processor.h> 71#include <asm/processor.h>
@@ -106,9 +107,8 @@ extern unsigned int core_pipe_limit;
106extern int pid_max; 107extern int pid_max;
107extern int pid_max_min, pid_max_max; 108extern int pid_max_min, pid_max_max;
108extern int percpu_pagelist_fraction; 109extern int percpu_pagelist_fraction;
109extern int compat_log;
110extern int latencytop_enabled; 110extern int latencytop_enabled;
111extern int sysctl_nr_open_min, sysctl_nr_open_max; 111extern unsigned int sysctl_nr_open_min, sysctl_nr_open_max;
112#ifndef CONFIG_MMU 112#ifndef CONFIG_MMU
113extern int sysctl_nr_trim_pages; 113extern int sysctl_nr_trim_pages;
114#endif 114#endif
@@ -1084,15 +1084,6 @@ static struct ctl_table kern_table[] = {
1084 .extra1 = &neg_one, 1084 .extra1 = &neg_one,
1085 }, 1085 },
1086#endif 1086#endif
1087#ifdef CONFIG_COMPAT
1088 {
1089 .procname = "compat-log",
1090 .data = &compat_log,
1091 .maxlen = sizeof (int),
1092 .mode = 0644,
1093 .proc_handler = proc_dointvec,
1094 },
1095#endif
1096#ifdef CONFIG_RT_MUTEXES 1087#ifdef CONFIG_RT_MUTEXES
1097 { 1088 {
1098 .procname = "max_lock_depth", 1089 .procname = "max_lock_depth",
@@ -1692,7 +1683,7 @@ static struct ctl_table fs_table[] = {
1692 { 1683 {
1693 .procname = "nr_open", 1684 .procname = "nr_open",
1694 .data = &sysctl_nr_open, 1685 .data = &sysctl_nr_open,
1695 .maxlen = sizeof(int), 1686 .maxlen = sizeof(unsigned int),
1696 .mode = 0644, 1687 .mode = 0644,
1697 .proc_handler = proc_dointvec_minmax, 1688 .proc_handler = proc_dointvec_minmax,
1698 .extra1 = &sysctl_nr_open_min, 1689 .extra1 = &sysctl_nr_open_min,
@@ -1838,6 +1829,14 @@ static struct ctl_table fs_table[] = {
1838 .mode = 0644, 1829 .mode = 0644,
1839 .proc_handler = proc_doulongvec_minmax, 1830 .proc_handler = proc_doulongvec_minmax,
1840 }, 1831 },
1832 {
1833 .procname = "mount-max",
1834 .data = &sysctl_mount_max,
1835 .maxlen = sizeof(unsigned int),
1836 .mode = 0644,
1837 .proc_handler = proc_dointvec_minmax,
1838 .extra1 = &one,
1839 },
1841 { } 1840 { }
1842}; 1841};
1843 1842