diff options
| author | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-06-26 01:31:38 -0400 |
| commit | 4854c7b27f0975a2b629f35ea3996d2968eb7c4f (patch) | |
| tree | 4102bdb70289764a2058aff0f907b13d7cf0e0d1 /kernel/sysctl.c | |
| parent | 3cbd5b32cb625f5c0f1b1476d154fac873dd49ce (diff) | |
| parent | fcc18e83e1f6fd9fa6b333735bf0fcd530655511 (diff) | |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e82726faeeff..2c0e65819448 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -59,6 +59,7 @@ extern int proc_nr_files(ctl_table *table, int write, struct file *filp, | |||
| 59 | extern int C_A_D; | 59 | extern int C_A_D; |
| 60 | extern int sysctl_overcommit_memory; | 60 | extern int sysctl_overcommit_memory; |
| 61 | extern int sysctl_overcommit_ratio; | 61 | extern int sysctl_overcommit_ratio; |
| 62 | extern int sysctl_panic_on_oom; | ||
| 62 | extern int max_threads; | 63 | extern int max_threads; |
| 63 | extern int sysrq_enabled; | 64 | extern int sysrq_enabled; |
| 64 | extern int core_uses_pid; | 65 | extern int core_uses_pid; |
| @@ -142,7 +143,6 @@ static struct ctl_table_header root_table_header = | |||
| 142 | 143 | ||
| 143 | static ctl_table kern_table[]; | 144 | static ctl_table kern_table[]; |
| 144 | static ctl_table vm_table[]; | 145 | static ctl_table vm_table[]; |
| 145 | static ctl_table proc_table[]; | ||
| 146 | static ctl_table fs_table[]; | 146 | static ctl_table fs_table[]; |
| 147 | static ctl_table debug_table[]; | 147 | static ctl_table debug_table[]; |
| 148 | static ctl_table dev_table[]; | 148 | static ctl_table dev_table[]; |
| @@ -150,7 +150,7 @@ extern ctl_table random_table[]; | |||
| 150 | #ifdef CONFIG_UNIX98_PTYS | 150 | #ifdef CONFIG_UNIX98_PTYS |
| 151 | extern ctl_table pty_table[]; | 151 | extern ctl_table pty_table[]; |
| 152 | #endif | 152 | #endif |
| 153 | #ifdef CONFIG_INOTIFY | 153 | #ifdef CONFIG_INOTIFY_USER |
| 154 | extern ctl_table inotify_table[]; | 154 | extern ctl_table inotify_table[]; |
| 155 | #endif | 155 | #endif |
| 156 | 156 | ||
| @@ -202,12 +202,6 @@ static ctl_table root_table[] = { | |||
| 202 | }, | 202 | }, |
| 203 | #endif | 203 | #endif |
| 204 | { | 204 | { |
| 205 | .ctl_name = CTL_PROC, | ||
| 206 | .procname = "proc", | ||
| 207 | .mode = 0555, | ||
| 208 | .child = proc_table, | ||
| 209 | }, | ||
| 210 | { | ||
| 211 | .ctl_name = CTL_FS, | 205 | .ctl_name = CTL_FS, |
| 212 | .procname = "fs", | 206 | .procname = "fs", |
| 213 | .mode = 0555, | 207 | .mode = 0555, |
| @@ -398,7 +392,7 @@ static ctl_table kern_table[] = { | |||
| 398 | .strategy = &sysctl_string, | 392 | .strategy = &sysctl_string, |
| 399 | }, | 393 | }, |
| 400 | #endif | 394 | #endif |
| 401 | #ifdef CONFIG_HOTPLUG | 395 | #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET) |
| 402 | { | 396 | { |
| 403 | .ctl_name = KERN_HOTPLUG, | 397 | .ctl_name = KERN_HOTPLUG, |
| 404 | .procname = "hotplug", | 398 | .procname = "hotplug", |
| @@ -702,6 +696,14 @@ static ctl_table vm_table[] = { | |||
| 702 | .proc_handler = &proc_dointvec, | 696 | .proc_handler = &proc_dointvec, |
| 703 | }, | 697 | }, |
| 704 | { | 698 | { |
| 699 | .ctl_name = VM_PANIC_ON_OOM, | ||
| 700 | .procname = "panic_on_oom", | ||
| 701 | .data = &sysctl_panic_on_oom, | ||
| 702 | .maxlen = sizeof(sysctl_panic_on_oom), | ||
| 703 | .mode = 0644, | ||
| 704 | .proc_handler = &proc_dointvec, | ||
| 705 | }, | ||
| 706 | { | ||
| 705 | .ctl_name = VM_OVERCOMMIT_RATIO, | 707 | .ctl_name = VM_OVERCOMMIT_RATIO, |
| 706 | .procname = "overcommit_ratio", | 708 | .procname = "overcommit_ratio", |
| 707 | .data = &sysctl_overcommit_ratio, | 709 | .data = &sysctl_overcommit_ratio, |
| @@ -918,10 +920,6 @@ static ctl_table vm_table[] = { | |||
| 918 | { .ctl_name = 0 } | 920 | { .ctl_name = 0 } |
| 919 | }; | 921 | }; |
| 920 | 922 | ||
| 921 | static ctl_table proc_table[] = { | ||
| 922 | { .ctl_name = 0 } | ||
| 923 | }; | ||
| 924 | |||
| 925 | static ctl_table fs_table[] = { | 923 | static ctl_table fs_table[] = { |
| 926 | { | 924 | { |
| 927 | .ctl_name = FS_NRINODE, | 925 | .ctl_name = FS_NRINODE, |
| @@ -1028,7 +1026,7 @@ static ctl_table fs_table[] = { | |||
| 1028 | .mode = 0644, | 1026 | .mode = 0644, |
| 1029 | .proc_handler = &proc_doulongvec_minmax, | 1027 | .proc_handler = &proc_doulongvec_minmax, |
| 1030 | }, | 1028 | }, |
| 1031 | #ifdef CONFIG_INOTIFY | 1029 | #ifdef CONFIG_INOTIFY_USER |
| 1032 | { | 1030 | { |
| 1033 | .ctl_name = FS_INOTIFY, | 1031 | .ctl_name = FS_INOTIFY, |
| 1034 | .procname = "inotify", | 1032 | .procname = "inotify", |
