Home
last modified time | relevance | path

Searched refs:locksz (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/net/ipv4/
H A Dinet_hashtables.c936 unsigned int locksz = sizeof(spinlock_t); in inet_ehash_locks_alloc() local
939 if (locksz != 0) { in inet_ehash_locks_alloc()
941 nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U); in inet_ehash_locks_alloc()
947 hashinfo->ehash_locks = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()
/kernel/linux/linux-6.6/net/ipv4/
H A Dinet_hashtables.c1232 unsigned int locksz = sizeof(spinlock_t); in inet_ehash_locks_alloc() local
1235 if (locksz != 0) { in inet_ehash_locks_alloc()
1237 nblocks = max(2U * L1_CACHE_BYTES / locksz, 1U); in inet_ehash_locks_alloc()
1243 hashinfo->ehash_locks = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()

Completed in 3 milliseconds