aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-03-28 19:39:10 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-28 19:39:10 -0400
commit60e7663d462af3994f292cb3691ea4f7371a9220 (patch)
tree84eb3c792c8f3c46d77e0296855ea37ae573b24a /include/net/sock.h
parent1338d466d9c3f8a65cc6d83c629cd906f2a989f8 (diff)
[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.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index ebf9552664b2..1f4294252dd7 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)
640# define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse) 640# define REF_PROTO_INUSE(NAME) PCOUNTER_MEMBER_INITIALIZER(NAME, .inuse)
641/* Called with local bh disabled */ 641/* Called with local bh disabled */
642extern void sock_prot_inuse_add(struct proto *prot, int inc); 642extern void sock_prot_inuse_add(struct proto *prot, int inc);
643
644static inline int sock_prot_inuse_init(struct proto *proto)
645{
646 return pcounter_alloc(&proto->inuse);
647}
648
649extern int sock_prot_inuse_get(struct proto *proto); 643extern int sock_prot_inuse_get(struct proto *proto);
650
651static inline void sock_prot_inuse_free(struct proto *proto)
652{
653 pcounter_free(&proto->inuse);
654}
655#else 644#else
656# define DEFINE_PROTO_INUSE(NAME) 645# define DEFINE_PROTO_INUSE(NAME)
657# define REF_PROTO_INUSE(NAME) 646# define REF_PROTO_INUSE(NAME)
658static void inline sock_prot_inuse_add(struct proto *prot, int inc) 647static void inline sock_prot_inuse_add(struct proto *prot, int inc)
659{ 648{
660} 649}
661static int inline sock_prot_inuse_init(struct proto *proto)
662{
663 return 0;
664}
665static void inline sock_prot_inuse_free(struct proto *proto)
666{
667}
668#endif 650#endif
669 651
670 652