Lines Matching refs:new_hashinfo
1227 struct inet_hashinfo *new_hashinfo; in inet_pernet_hashinfo_alloc() local
1230 new_hashinfo = kmemdup(hashinfo, sizeof(*hashinfo), GFP_KERNEL); in inet_pernet_hashinfo_alloc()
1231 if (!new_hashinfo) in inet_pernet_hashinfo_alloc()
1234 new_hashinfo->ehash = vmalloc_huge(ehash_entries * sizeof(struct inet_ehash_bucket), in inet_pernet_hashinfo_alloc()
1236 if (!new_hashinfo->ehash) in inet_pernet_hashinfo_alloc()
1239 new_hashinfo->ehash_mask = ehash_entries - 1; in inet_pernet_hashinfo_alloc()
1241 if (inet_ehash_locks_alloc(new_hashinfo)) in inet_pernet_hashinfo_alloc()
1245 INIT_HLIST_NULLS_HEAD(&new_hashinfo->ehash[i].chain, i); in inet_pernet_hashinfo_alloc()
1247 new_hashinfo->pernet = true; in inet_pernet_hashinfo_alloc()
1249 return new_hashinfo; in inet_pernet_hashinfo_alloc()
1252 vfree(new_hashinfo->ehash); in inet_pernet_hashinfo_alloc()
1254 kfree(new_hashinfo); in inet_pernet_hashinfo_alloc()