diff options
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r-- | include/net/inet_hashtables.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index cdc08c190638..8d98dc76bd76 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h | |||
@@ -183,7 +183,7 @@ static inline int inet_ehash_locks_alloc(struct inet_hashinfo *hashinfo) | |||
183 | size = 2048; | 183 | size = 2048; |
184 | if (nr_pcpus >= 32) | 184 | if (nr_pcpus >= 32) |
185 | size = 4096; | 185 | size = 4096; |
186 | if (sizeof(rwlock_t) != 0) { | 186 | if (sizeof(spinlock_t) != 0) { |
187 | #ifdef CONFIG_NUMA | 187 | #ifdef CONFIG_NUMA |
188 | if (size * sizeof(spinlock_t) > PAGE_SIZE) | 188 | if (size * sizeof(spinlock_t) > PAGE_SIZE) |
189 | hashinfo->ehash_locks = vmalloc(size * sizeof(spinlock_t)); | 189 | hashinfo->ehash_locks = vmalloc(size * sizeof(spinlock_t)); |