]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/inet_hashtables.h
[NET]: prot_inuse cleanups and optimizations
[linux-2.6-omap-h63xx.git] / include / net / inet_hashtables.h
index 65ddb25d62e87046222334923e63420421c7e920..761bdc01425d796b6669bcaa73243d33abf7aab2 100644 (file)
@@ -293,7 +293,7 @@ static inline void inet_unhash(struct inet_hashinfo *hashinfo, struct sock *sk)
        }
 
        if (__sk_del_node_init(sk))
-               sock_prot_dec_use(sk->sk_prot);
+               sock_prot_inuse_add(sk->sk_prot, -1);
        write_unlock_bh(lock);
 out:
        if (sk->sk_state == TCP_LISTEN)