Searched refs:locksz (Results 1 – 1 of 1) sorted by relevance
1301 unsigned int locksz = sizeof(spinlock_t); in inet_ehash_locks_alloc() local1305 if (locksz == 0) in inet_ehash_locks_alloc()1309 nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U) * num_possible_cpus(); in inet_ehash_locks_alloc()1312 nblocks = max(nblocks, num_online_nodes() * PAGE_SIZE / locksz); in inet_ehash_locks_alloc()1323 ptr = vmalloc_array(nblocks, locksz); in inet_ehash_locks_alloc()1326 ptr = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()