Message ID | 604427e00903271335p14f96910y912ccd349faf154c@mail.gmail.com |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/mm/vmscan.c b/mm/vmscan.c index db023e2..b4b7e1f 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1067,11 +1067,13 @@ unsigned long try_to_free_pages(struct zone **zones, g * that's undesirable in laptop mode, where we *want* lumpy * writeout. So in laptop mode, write out the whole world. */ +/* if (total_scanned > sc.swap_cluster_max + sc.swap_cluster_max / 2) { wakeup_pdflush(laptop_mode ? 0 : total_scanned); sc.may_writepage = 1; } +*/ /* Take a nap, wait for some writeback to complete */ if (sc.nr_scanned && priority < DEF_PRIORITY - 2)