|
@@ -105,7 +105,7 @@ unsigned long totalreserve_pages __read_mostly;
|
|
|
*/
|
|
|
unsigned long dirty_balance_reserve __read_mostly;
|
|
|
|
|
|
-int percpu_pagelist_fraction;
|
|
|
+int percpu_pagelist_fraction = 8;
|
|
|
gfp_t gfp_allowed_mask __read_mostly = GFP_BOOT_MASK;
|
|
|
|
|
|
#ifdef CONFIG_PM_SLEEP
|
|
@@ -5203,7 +5203,7 @@ int percpu_pagelist_fraction_sysctl_handler(ctl_table *table, int write,
|
|
|
int ret;
|
|
|
|
|
|
ret = proc_dointvec_minmax(table, write, buffer, length, ppos);
|
|
|
- if (!write || (ret == -EINVAL))
|
|
|
+ if (!write || (ret < 0))
|
|
|
return ret;
|
|
|
for_each_populated_zone(zone) {
|
|
|
for_each_possible_cpu(cpu) {
|