All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] balancenuma: put page if avoid migrating page
@ 2012-11-27 13:23 Hillf Danton
  2012-11-27 14:07 ` Mel Gorman
  0 siblings, 1 reply; 5+ messages in thread
From: Hillf Danton @ 2012-11-27 13:23 UTC (permalink / raw)
  To: Mel Gorman; +Cc: LKML, Hillf Danton

If we have to avoid migrating to a node that is nearly full, put page
and return zero.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- a/mm/migrate.c	Tue Nov 27 20:09:38 2012
+++ b/mm/migrate.c	Tue Nov 27 20:15:00 2012
@@ -1538,9 +1538,11 @@ int numamigrate_isolate_page(pg_data_t *
 			mod_zone_page_state(page_zone(page),
 					NR_ISOLATED_ANON + page_lru,
 					HPAGE_PMD_NR);
+		return 1;
 	}

-	return 1;
+	put_page(page);
+	return 0;
 }

 /*
--

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

end of thread, other threads:[~2012-11-28 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 13:23 [PATCH 1/3] balancenuma: put page if avoid migrating page Hillf Danton
2012-11-27 14:07 ` Mel Gorman
2012-11-27 14:16   ` Mel Gorman
2012-11-28 20:48     ` Hugh Dickins
2012-11-28 13:59   ` Hillf Danton

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.