diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2009-02-01 15:31:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-01 15:31:33 -0500 |
commit | 24dd1fa184595ff095a92de807fdf029b2632673 (patch) | |
tree | 6136ffd3f4d054acda875b07df18fd19d93647b9 /include/net/inet_hashtables.h | |
parent | 5add300975cf36b1bd30c461105bb938da260f14 (diff) |
net: move bsockets outside of read only beginning of struct inet_hashinfo
And switch bsockets to atomic_t since it might be changed in parallel.
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r-- | include/net/inet_hashtables.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h index 8d98dc76bd76..a44e2248b2ef 100644 --- a/include/net/inet_hashtables.h +++ b/include/net/inet_hashtables.h | |||
@@ -134,7 +134,7 @@ struct inet_hashinfo { | |||
134 | struct inet_bind_hashbucket *bhash; | 134 | struct inet_bind_hashbucket *bhash; |
135 | 135 | ||
136 | unsigned int bhash_size; | 136 | unsigned int bhash_size; |
137 | int bsockets; | 137 | /* 4 bytes hole on 64 bit */ |
138 | 138 | ||
139 | struct kmem_cache *bind_bucket_cachep; | 139 | struct kmem_cache *bind_bucket_cachep; |
140 | 140 | ||
@@ -151,6 +151,7 @@ struct inet_hashinfo { | |||
151 | struct inet_listen_hashbucket listening_hash[INET_LHTABLE_SIZE] | 151 | struct inet_listen_hashbucket listening_hash[INET_LHTABLE_SIZE] |
152 | ____cacheline_aligned_in_smp; | 152 | ____cacheline_aligned_in_smp; |
153 | 153 | ||
154 | atomic_t bsockets; | ||
154 | }; | 155 | }; |
155 | 156 | ||
156 | static inline struct inet_ehash_bucket *inet_ehash_bucket( | 157 | static inline struct inet_ehash_bucket *inet_ehash_bucket( |