diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-03-28 16:39:10 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-28 16:39:10 -0700 |
commit | 60e7663d462af3994f292cb3691ea4f7371a9220 (patch) | |
tree | 84eb3c792c8f3c46d77e0296855ea37ae573b24a /include/net/sock.h | |
parent | 1338d466d9c3f8a65cc6d83c629cd906f2a989f8 (diff) | |
download | op-kernel-dev-60e7663d462af3994f292cb3691ea4f7371a9220.zip op-kernel-dev-60e7663d462af3994f292cb3691ea4f7371a9220.tar.gz |
[SOCK]: Drop per-proto inuse init and fre functions (v2).
Constructive part of the set is finished here. We have to remove the
pcounter, so start with its init and free functions.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index ebf9552..1f42942 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -640,31 +640,13 @@ static inline void sk_refcnt_debug_release(const struct sock *sk) # define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse) /* Called with local bh disabled */ extern void sock_prot_inuse_add(struct proto *prot, int inc); - -static inline int sock_prot_inuse_init(struct proto *proto) -{ - return pcounter_alloc(&proto->inuse); -} - extern int sock_prot_inuse_get(struct proto *proto); - -static inline void sock_prot_inuse_free(struct proto *proto) -{ - pcounter_free(&proto->inuse); -} #else # define DEFINE_PROTO_INUSE(NAME) # define REF_PROTO_INUSE(NAME) static void inline sock_prot_inuse_add(struct proto *prot, int inc) { } -static int inline sock_prot_inuse_init(struct proto *proto) -{ - return 0; -} -static void inline sock_prot_inuse_free(struct proto *proto) -{ -} #endif |