Weijie Yang 619d0d76c1 mm/vmscan: restore sc->gfp_mask after promoting it to __GFP_HIGHMEM
We promote sc->gfp_mask to __GFP_HIGHMEM to forcibly scan highmem if
there are too many buffer_heads pinning highmem.  See cc715d99e5 ("mm:
vmscan: forcibly scan highmem if there are too many buffer_heads pinning
highmem").

This patch restores sc->gfp_mask to its caller original value after
finishing the scan job, to avoid the impact on other invocations from
its upper caller, such as vmpressure_prio(), shrink_slab().

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:35:50 -07:00
..
2012-01-03 22:54:56 -05:00
2014-04-03 16:21:04 -07:00
2011-07-26 16:49:47 -07:00
2014-03-04 07:55:47 -08:00
2014-01-27 21:02:39 -08:00
2013-10-16 21:35:53 -07:00
2012-06-20 14:39:36 -07:00
2014-04-03 16:20:58 -07:00
2014-04-02 09:16:17 +02:00
2014-01-30 16:56:55 -08:00