Skip to content

Commit

Permalink
[PATCH] cpuset: remove extra cpuset_zone_allowed check in __alloc_pages
Browse files Browse the repository at this point in the history
This is redundant with check in wakeup_kswapd.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Acked-by: Paul Jackson <pj@sgi.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Chris Wright authored and Linus Torvalds committed Jun 25, 2006
1 parent dc851a0 commit 43b0bc0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,7 @@ __alloc_pages(gfp_t gfp_mask, unsigned int order,
goto got_pg;

do {
if (cpuset_zone_allowed(*z, gfp_mask|__GFP_HARDWALL))
wakeup_kswapd(*z, order);
wakeup_kswapd(*z, order);
} while (*(++z));

/*
Expand Down

0 comments on commit 43b0bc0

Please sign in to comment.