[PATCH 3/2][BUGFIX] fix memory isolation notifier return valuecheck

From: KAMEZAWA Hiroyuki
Date: Fri Sep 03 2010 - 04:02:28 EST


Sorry, the 3rd patch for this set.
==

From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

Even if notifier cannot find any pages, it doesn't mean
no pages are available...(For example, there is no notifier.)
Anyway, we check all pages in the range, later.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: mmotm-0827/mm/page_alloc.c
===================================================================
--- mmotm-0827.orig/mm/page_alloc.c
+++ mmotm-0827/mm/page_alloc.c
@@ -5360,7 +5360,7 @@ int set_migratetype_isolate(struct page
*/
notifier_ret = memory_isolate_notify(MEM_ISOLATE_COUNT, &arg);
notifier_ret = notifier_to_errno(notifier_ret);
- if (notifier_ret || !arg.pages_found)
+ if (notifier_ret)
goto out;
immobile = __count_unmovable_pages(zone ,page);


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/