diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e3d2c7dd59b9..b2970d56fb76 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -101,7 +101,9 @@ static int __maybe_unused one = 1; | |||
101 | static int __maybe_unused two = 2; | 101 | static int __maybe_unused two = 2; |
102 | static unsigned long one_ul = 1; | 102 | static unsigned long one_ul = 1; |
103 | static int one_hundred = 100; | 103 | static int one_hundred = 100; |
104 | static int one_thousand = 1000; | 104 | |
105 | /* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */ | ||
106 | static unsigned long dirty_bytes_min = 2 * PAGE_SIZE; | ||
105 | 107 | ||
106 | /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ | 108 | /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ |
107 | static int maxolduid = 65535; | 109 | static int maxolduid = 65535; |
@@ -1006,7 +1008,7 @@ static struct ctl_table vm_table[] = { | |||
1006 | .mode = 0644, | 1008 | .mode = 0644, |
1007 | .proc_handler = &dirty_bytes_handler, | 1009 | .proc_handler = &dirty_bytes_handler, |
1008 | .strategy = &sysctl_intvec, | 1010 | .strategy = &sysctl_intvec, |
1009 | .extra1 = &one_ul, | 1011 | .extra1 = &dirty_bytes_min, |
1010 | }, | 1012 | }, |
1011 | { | 1013 | { |
1012 | .procname = "dirty_writeback_centisecs", | 1014 | .procname = "dirty_writeback_centisecs", |
@@ -1031,28 +1033,6 @@ static struct ctl_table vm_table[] = { | |||
1031 | .proc_handler = &proc_dointvec, | 1033 | .proc_handler = &proc_dointvec, |
1032 | }, | 1034 | }, |
1033 | { | 1035 | { |
1034 | .ctl_name = CTL_UNNUMBERED, | ||
1035 | .procname = "nr_pdflush_threads_min", | ||
1036 | .data = &nr_pdflush_threads_min, | ||
1037 | .maxlen = sizeof nr_pdflush_threads_min, | ||
1038 | .mode = 0644 /* read-write */, | ||
1039 | .proc_handler = &proc_dointvec_minmax, | ||
1040 | .strategy = &sysctl_intvec, | ||
1041 | .extra1 = &one, | ||
1042 | .extra2 = &nr_pdflush_threads_max, | ||
1043 | }, | ||
1044 | { | ||
1045 | .ctl_name = CTL_UNNUMBERED, | ||
1046 | .procname = "nr_pdflush_threads_max", | ||
1047 | .data = &nr_pdflush_threads_max, | ||
1048 | .maxlen = sizeof nr_pdflush_threads_max, | ||
1049 | .mode = 0644 /* read-write */, | ||
1050 | .proc_handler = &proc_dointvec_minmax, | ||
1051 | .strategy = &sysctl_intvec, | ||
1052 | .extra1 = &nr_pdflush_threads_min, | ||
1053 | .extra2 = &one_thousand, | ||
1054 | }, | ||
1055 | { | ||
1056 | .ctl_name = VM_SWAPPINESS, | 1036 | .ctl_name = VM_SWAPPINESS, |
1057 | .procname = "swappiness", | 1037 | .procname = "swappiness", |
1058 | .data = &vm_swappiness, | 1038 | .data = &vm_swappiness, |