From: Andrew Morton Date: Tue, 30 Oct 2007 04:41:19 +0000 (-0700) Subject: [NETFILTER]: nf_ct_alloc_hashtable(): use __GFP_NOWARN X-Git-Tag: v2.6.24-rc2~79^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29b67497f256399c4aa2adec27ab7ba24bba44e8;p=platform%2Fkernel%2Flinux-exynos.git [NETFILTER]: nf_ct_alloc_hashtable(): use __GFP_NOWARN This allocation is expected to fail and we handle it by fallback to vmalloc(). So don't scare people with nasty messages like http://bugzilla.kernel.org/show_bug.cgi?id=9190 Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c index 4d6171b..000c2fb 100644 --- a/net/netfilter/nf_conntrack_core.c +++ b/net/netfilter/nf_conntrack_core.c @@ -999,7 +999,7 @@ struct hlist_head *nf_ct_alloc_hashtable(int *sizep, int *vmalloced) *vmalloced = 0; size = *sizep = roundup(*sizep, PAGE_SIZE / sizeof(struct hlist_head)); - hash = (void*)__get_free_pages(GFP_KERNEL, + hash = (void*)__get_free_pages(GFP_KERNEL|__GFP_NOWARN, get_order(sizeof(struct hlist_head) * size)); if (!hash) {