Messages in this thread Patch in this message | | | Date | Tue, 27 Jul 2004 10:05:31 +0900 | Subject | [PATCH] ia64 memory hotplug for hugetlbpages [3/3] | From | Nobuhiko Yoshida <> |
| |
diff -dupr linux-2.6.7/arch/ia64/mm/hugetlbpage.c linux-2.6.7-REMAP/arch/ia64/mm/hugetlbpage.c --- linux-2.6.7/arch/ia64/mm/hugetlbpage.c 2004-07-09 16:37:31.000000000 +0900 +++ linux-2.6.7-REMAP/arch/ia64/mm/hugetlbpage.c 2004-07-09 16:49:34.000000000 +0900 @@ -372,6 +372,15 @@ again: goto again; } } + + if (page->mapping == NULL) { + BUG_ON(! PageAgain(page)); + /* This page will go back to freelists[] */ + put_page(page); /* XXX */ + unlock_page(page); + goto again; + } + if (pte_none(*pte)) { set_huge_pte(mm, vma, page, pte, vma->vm_flags & VM_WRITE); page_add_file_rmap(page); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |