Commit 333f8eed authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

[PATCH] make hugetlb expansion allocation nowarn

a user can do echo 32000 > /proc/sys/vm/nr_hugepapges; at which point most
boxes will get spew about allocation failure. This of course isn't a real
bug so the patch below quiets that.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 970f138f
...@@ -52,7 +52,7 @@ static struct page *alloc_fresh_huge_page(void) ...@@ -52,7 +52,7 @@ static struct page *alloc_fresh_huge_page(void)
{ {
static int nid = 0; static int nid = 0;
struct page *page; struct page *page;
page = alloc_pages_node(nid, GFP_HIGHUSER|__GFP_COMP, page = alloc_pages_node(nid, GFP_HIGHUSER|__GFP_COMP|__GFP_NOWARN,
HUGETLB_PAGE_ORDER); HUGETLB_PAGE_ORDER);
nid = (nid + 1) % numnodes; nid = (nid + 1) % numnodes;
if (page) { if (page) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment