lkml.org 
[lkml]   [2010]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/2][BUGFIX] fix memory isolation notifier return value check
    Sorry, the 3rd patch for this set.
    ==

    From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

    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@jp.fujitsu.com>
    ---
    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);



    \
     
     \ /
      Last update: 2010-09-03 10:05    [from the cache]
    ©2003-2011 Jasper Spaans