From: KOSAKI Motohiro Date: Tue, 10 Aug 2010 00:19:13 +0000 (-0700) Subject: vmscan: zone_reclaim don't call disable_swap_token() X-Git-Tag: v2.6.36-rc1~429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b00d3ea7cfe44e177ad5cd8141209d46478a7a51;p=profile%2Fcommon%2Fkernel-common.git vmscan: zone_reclaim don't call disable_swap_token() Swap token don't works when zone reclaim is enabled since it was born. Because __zone_reclaim() always call disable_swap_token() unconditionally. This kill swap token feature completely. As far as I know, nobody want to that. Remove it. Signed-off-by: KOSAKI Motohiro Acked-by: Rik van Riel Reviewed-by: Minchan Kim Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index b94fe1b..5b594d6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2592,7 +2592,6 @@ static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) }; unsigned long slab_reclaimable; - disable_swap_token(); cond_resched(); /* * We need to be able to allocate from the reserves for RECLAIM_SWAP