diff options
author | Arjan van de Ven <arjanv@redhat.com> | 2004-09-02 20:39:14 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-02 20:39:14 -0700 |
commit | 333f8eed3199f0e3e4a7fe405ba5caa2faccb4a6 (patch) | |
tree | bc1075ad8aff4f1f804abfe2aaf26511acaf8673 /mm | |
parent | 970f138f661bb8ce93fc0af19a4172e95b6646be (diff) | |
download | history-333f8eed3199f0e3e4a7fe405ba5caa2faccb4a6.tar.gz |
[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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/hugetlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 872fb7fc329d0e..3e17acfb3ad16c 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -52,7 +52,7 @@ static struct page *alloc_fresh_huge_page(void) { static int nid = 0; 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); nid = (nid + 1) % numnodes; if (page) { |