projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Convert atomic_t net::count to refcount_t
[linux-2.6-microblaze.git]
/
net
/
ipv4
/
tcp_metrics.c
diff --git
a/net/ipv4/tcp_metrics.c
b/net/ipv4/tcp_metrics.c
index
759e6bc
..
03b51cd
100644
(file)
--- a/
net/ipv4/tcp_metrics.c
+++ b/
net/ipv4/tcp_metrics.c
@@
-892,7
+892,7
@@
static void tcp_metrics_flush_all(struct net *net)
pp = &hb->chain;
for (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) {
match = net ? net_eq(tm_net(tm), net) :
- !
atomic
_read(&tm_net(tm)->count);
+ !
refcount
_read(&tm_net(tm)->count);
if (match) {
*pp = tm->tcpm_next;
kfree_rcu(tm, rcu_head);