|
@@ -103,6 +103,9 @@ static unsigned long one_ul = 1;
|
|
|
static int one_hundred = 100;
|
|
|
static int one_thousand = 1000;
|
|
|
|
|
|
+/* this is needed for the proc_doulongvec_minmax of vm_dirty_bytes */
|
|
|
+static unsigned long dirty_bytes_min = 2 * PAGE_SIZE;
|
|
|
+
|
|
|
/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
|
|
|
static int maxolduid = 65535;
|
|
|
static int minolduid;
|
|
@@ -1006,7 +1009,7 @@ static struct ctl_table vm_table[] = {
|
|
|
.mode = 0644,
|
|
|
.proc_handler = &dirty_bytes_handler,
|
|
|
.strategy = &sysctl_intvec,
|
|
|
- .extra1 = &one_ul,
|
|
|
+ .extra1 = &dirty_bytes_min,
|
|
|
},
|
|
|
{
|
|
|
.procname = "dirty_writeback_centisecs",
|