diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2010-08-09 20:19:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:44:59 -0400 |
commit | b00d3ea7cfe44e177ad5cd8141209d46478a7a51 (patch) | |
tree | 3508bd3106e6a83decd6e0db7521180e11d4754e /mm | |
parent | f446daaea9d4a420d16c606f755f3689dcb2d0ce (diff) |
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 <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmscan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index b94fe1b3da43..5b594d62ca01 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) | |||
2592 | }; | 2592 | }; |
2593 | unsigned long slab_reclaimable; | 2593 | unsigned long slab_reclaimable; |
2594 | 2594 | ||
2595 | disable_swap_token(); | ||
2596 | cond_resched(); | 2595 | cond_resched(); |
2597 | /* | 2596 | /* |
2598 | * We need to be able to allocate from the reserves for RECLAIM_SWAP | 2597 | * We need to be able to allocate from the reserves for RECLAIM_SWAP |