On Fri, Jul 19, 2013 at 5:34 AM, Naoya Horiguchi
<n-horigu...@ah.jp.nec.com> wrote:
> @@ -518,9 +519,11 @@ static struct page *dequeue_huge_page_node(struct hstate 
> *h, int nid)
>  {
>         struct page *page;
>
> -       if (list_empty(&h->hugepage_freelists[nid]))
> +       list_for_each_entry(page, &h->hugepage_freelists[nid], lru)
> +               if (!is_migrate_isolate_page(page))
> +                       break;
> +       if (&h->hugepage_freelists[nid] == &page->lru)

For what is this check?

>                 return NULL;
> -       page = list_entry(h->hugepage_freelists[nid].next, struct page, lru);
>         list_move(&page->lru, &h->hugepage_activelist);
>         set_page_refcounted(page);
>         h->free_huge_pages--;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to