[IPSEC]: Don't warn if high-order hash resize fails

Multi-page allocations are always likely to fail.  Since such failures
are expected and non-critical in xfrm_hash_alloc, we shouldn't warn about
them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Herbert Xu 2007-05-14 02:19:11 -07:00 committed by David S. Miller
parent b5505c6e10
commit 6253db055e
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ struct hlist_head *xfrm_hash_alloc(unsigned int sz)
n = __vmalloc(sz, GFP_KERNEL, PAGE_KERNEL); n = __vmalloc(sz, GFP_KERNEL, PAGE_KERNEL);
else else
n = (struct hlist_head *) n = (struct hlist_head *)
__get_free_pages(GFP_KERNEL, get_order(sz)); __get_free_pages(GFP_KERNEL | __GFP_NOWARN,
get_order(sz));
if (n) if (n)
memset(n, 0, sz); memset(n, 0, sz);