diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8db41764e2a1..2aaa3f98185d 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -733,6 +733,7 @@ static ctl_table kern_table[] = { | |||
733 | /* Constants for minimum and maximum testing in vm_table. | 733 | /* Constants for minimum and maximum testing in vm_table. |
734 | We use these as one-element integer vectors. */ | 734 | We use these as one-element integer vectors. */ |
735 | static int zero; | 735 | static int zero; |
736 | static int two = 2; | ||
736 | static int one_hundred = 100; | 737 | static int one_hundred = 100; |
737 | 738 | ||
738 | 739 | ||
@@ -1123,7 +1124,10 @@ static ctl_table fs_table[] = { | |||
1123 | .data = &lease_break_time, | 1124 | .data = &lease_break_time, |
1124 | .maxlen = sizeof(int), | 1125 | .maxlen = sizeof(int), |
1125 | .mode = 0644, | 1126 | .mode = 0644, |
1126 | .proc_handler = &proc_dointvec, | 1127 | .proc_handler = &proc_dointvec_minmax, |
1128 | .strategy = &sysctl_intvec, | ||
1129 | .extra1 = &zero, | ||
1130 | .extra2 = &two, | ||
1127 | }, | 1131 | }, |
1128 | { | 1132 | { |
1129 | .ctl_name = FS_AIO_NR, | 1133 | .ctl_name = FS_AIO_NR, |