Message ID | 20141112014703.GB17446@node.dhcp.inet.fi (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/mm/vmscan.c b/mm/vmscan.c index dcb47074ae03..eb165d29c5e5 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -369,6 +369,8 @@ unsigned long shrink_slab(struct shrink_control *shrinkctl, if (nr_pages_scanned == 0) nr_pages_scanned = SWAP_CLUSTER_MAX; + shrinkctl->gfp_mask &= ~(__GFP_DMA32 | __GFP_HIGHMEM); + if (!down_read_trylock(&shrinker_rwsem)) { /* * If we would return 0, our callers would understand that we