aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 6fc5e17086f4..8e9f00fd6d18 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -171,7 +171,7 @@ static ssize_t proc_readsys(struct file *, char __user *, size_t, loff_t *);
171static ssize_t proc_writesys(struct file *, const char __user *, size_t, loff_t *); 171static ssize_t proc_writesys(struct file *, const char __user *, size_t, loff_t *);
172static int proc_opensys(struct inode *, struct file *); 172static int proc_opensys(struct inode *, struct file *);
173 173
174struct file_operations proc_sys_file_operations = { 174const struct file_operations proc_sys_file_operations = {
175 .open = proc_opensys, 175 .open = proc_opensys,
176 .read = proc_readsys, 176 .read = proc_readsys,
177 .write = proc_writesys, 177 .write = proc_writesys,
@@ -986,17 +986,6 @@ static ctl_table vm_table[] = {
986 .extra1 = &zero, 986 .extra1 = &zero,
987 }, 987 },
988#endif 988#endif
989#ifdef CONFIG_SWAP
990 {
991 .ctl_name = VM_SWAP_TOKEN_TIMEOUT,
992 .procname = "swap_token_timeout",
993 .data = &swap_token_default_timeout,
994 .maxlen = sizeof(swap_token_default_timeout),
995 .mode = 0644,
996 .proc_handler = &proc_dointvec_jiffies,
997 .strategy = &sysctl_jiffies,
998 },
999#endif
1000#ifdef CONFIG_NUMA 989#ifdef CONFIG_NUMA
1001 { 990 {
1002 .ctl_name = VM_ZONE_RECLAIM_MODE, 991 .ctl_name = VM_ZONE_RECLAIM_MODE,
@@ -1895,7 +1884,7 @@ static int __do_proc_dointvec(void *tbl_data, ctl_table *table,
1895 p = buf; 1884 p = buf;
1896 if (*p == '-' && left > 1) { 1885 if (*p == '-' && left > 1) {
1897 neg = 1; 1886 neg = 1;
1898 left--, p++; 1887 p++;
1899 } 1888 }
1900 if (*p < '0' || *p > '9') 1889 if (*p < '0' || *p > '9')
1901 break; 1890 break;
@@ -2146,7 +2135,7 @@ static int __do_proc_doulongvec_minmax(void *data, ctl_table *table, int write,
2146 p = buf; 2135 p = buf;
2147 if (*p == '-' && left > 1) { 2136 if (*p == '-' && left > 1) {
2148 neg = 1; 2137 neg = 1;
2149 left--, p++; 2138 p++;
2150 } 2139 }
2151 if (*p < '0' || *p > '9') 2140 if (*p < '0' || *p > '9')
2152 break; 2141 break;