summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_trie.c
diff options
context:
space:
mode:
authorEric Dumazet2010-11-20 08:46:35 +0100
committerDavid S. Miller2010-11-21 19:04:04 +0100
commit7a1c8e5ab120a5f352e78bbc1fa5bb64e6f23639 (patch)
tree9c9b81e173c59d4be5590be5101c405457acab83 /net/ipv4/fib_trie.c
parentbonding: change list contact to netdev@vger.kernel.org (diff)
downloadkernel-qcow2-linux-7a1c8e5ab120a5f352e78bbc1fa5bb64e6f23639.tar.gz
kernel-qcow2-linux-7a1c8e5ab120a5f352e78bbc1fa5bb64e6f23639.tar.xz
kernel-qcow2-linux-7a1c8e5ab120a5f352e78bbc1fa5bb64e6f23639.zip
net: allow GFP_HIGHMEM in __vmalloc()
We forgot to use __GFP_HIGHMEM in several __vmalloc() calls. In ceph, add the missing flag. In fib_trie.c, xfrm_hash.c and request_sock.c, using vzalloc() is cleaner and allows using HIGHMEM pages as well. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_trie.c')
-rw-r--r--net/ipv4/fib_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 200eb538fbb3..0f280348e0fd 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -365,7 +365,7 @@ static struct tnode *tnode_alloc(size_t size)
if (size <= PAGE_SIZE)
return kzalloc(size, GFP_KERNEL);
else
- return __vmalloc(size, GFP_KERNEL | __GFP_ZERO, PAGE_KERNEL);
+ return vzalloc(size);
}
static void __tnode_vfree(struct work_struct *arg)