aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-18 01:37:44 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-18 01:37:49 -0400
commitdc3f81b129b5439ba7bac265bbc6a51a39275dae (patch)
tree216030731d911249496d2e97206cd61431e31c89 /kernel/sysctl.c
parentd2517a49d55536b38c7a87e5289550cfedaa4dcc (diff)
parent1406de8e11eb043681297adf86d6892ff8efc27a (diff)
Merge commit 'v2.6.30-rc6' into perfcounters/core
Merge reason: this branch was on an -rc4 base, merge it up to -rc6 to get the latest upstream fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c28
1 files changed, 4 insertions, 24 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 3b05c2b088d2..3cb1849f5989 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -102,7 +102,9 @@ static int __maybe_unused one = 1;
102static int __maybe_unused two = 2; 102static int __maybe_unused two = 2;
103static unsigned long one_ul = 1; 103static unsigned long one_ul = 1;
104static int one_hundred = 100; 104static int one_hundred = 100;
105static int one_thousand = 1000; 105
106/* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
107static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
106 108
107/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ 109/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
108static int maxolduid = 65535; 110static int maxolduid = 65535;
@@ -1025,7 +1027,7 @@ static struct ctl_table vm_table[] = {
1025 .mode = 0644, 1027 .mode = 0644,
1026 .proc_handler = &dirty_bytes_handler, 1028 .proc_handler = &dirty_bytes_handler,
1027 .strategy = &sysctl_intvec, 1029 .strategy = &sysctl_intvec,
1028 .extra1 = &one_ul, 1030 .extra1 = &dirty_bytes_min,
1029 }, 1031 },
1030 { 1032 {
1031 .procname = "dirty_writeback_centisecs", 1033 .procname = "dirty_writeback_centisecs",
@@ -1050,28 +1052,6 @@ static struct ctl_table vm_table[] = {
1050 .proc_handler = &proc_dointvec, 1052 .proc_handler = &proc_dointvec,
1051 }, 1053 },
1052 { 1054 {
1053 .ctl_name = CTL_UNNUMBERED,
1054 .procname = "nr_pdflush_threads_min",
1055 .data = &nr_pdflush_threads_min,
1056 .maxlen = sizeof nr_pdflush_threads_min,
1057 .mode = 0644 /* read-write */,
1058 .proc_handler = &proc_dointvec_minmax,
1059 .strategy = &sysctl_intvec,
1060 .extra1 = &one,
1061 .extra2 = &nr_pdflush_threads_max,
1062 },
1063 {
1064 .ctl_name = CTL_UNNUMBERED,
1065 .procname = "nr_pdflush_threads_max",
1066 .data = &nr_pdflush_threads_max,
1067 .maxlen = sizeof nr_pdflush_threads_max,
1068 .mode = 0644 /* read-write */,
1069 .proc_handler = &proc_dointvec_minmax,
1070 .strategy = &sysctl_intvec,
1071 .extra1 = &nr_pdflush_threads_min,
1072 .extra2 = &one_thousand,
1073 },
1074 {
1075 .ctl_name = VM_SWAPPINESS, 1055 .ctl_name = VM_SWAPPINESS,
1076 .procname = "swappiness", 1056 .procname = "swappiness",
1077 .data = &vm_swappiness, 1057 .data = &vm_swappiness,