All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] vmscan: respect higher order in zone_reclaim()
@ 2009-02-17 19:48 ` Johannes Weiner
  0 siblings, 0 replies; 6+ messages in thread
From: Johannes Weiner @ 2009-02-17 19:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Mel Gorman, linux-mm, linux-kernel

zone_reclaim() already tries to free the requested 2^order pages but
doesn't pass the order information into the inner reclaim code.

This prevents lumpy reclaim from happening on higher orders although
the caller explicitely asked for that.

Fix it up by initializing the order field of the scan control
according to the request.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
---
 mm/vmscan.c |    1 +
 1 file changed, 1 insertion(+)

--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -2297,6 +2297,7 @@ static int __zone_reclaim(struct zone *z
 					SWAP_CLUSTER_MAX),
 		.gfp_mask = gfp_mask,
 		.swappiness = vm_swappiness,
+		.order = order,
 		.isolate_pages = isolate_pages_global,
 	};
 	unsigned long slab_reclaimable;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-18 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17 19:48 [patch] vmscan: respect higher order in zone_reclaim() Johannes Weiner
2009-02-17 19:48 ` Johannes Weiner
2009-02-18 10:12 ` Mel Gorman
2009-02-18 10:12   ` Mel Gorman
2009-02-18 10:26   ` Johannes Weiner
2009-02-18 10:26     ` Johannes Weiner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.