aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-03-28 19:39:33 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-28 19:39:33 -0400
commitbdcde3d71a67e97f25e851f3ca97c9bb5ef03e7f (patch)
treeeab4a66777582718ffe2eff9038324331106ec18 /net/sctp/socket.c
parent60e7663d462af3994f292cb3691ea4f7371a9220 (diff)
[SOCK]: Drop inuse pcounter from struct proto (v2).
An uppercut - do not use the pcounter on struct proto. 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 'net/sctp/socket.c')
-rw-r--r--net/sctp/socket.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 76c747056dd7..00ebd0610be2 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -6513,8 +6513,6 @@ static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk,
6513} 6513}
6514 6514
6515 6515
6516DEFINE_PROTO_INUSE(sctp)
6517
6518/* This proto struct describes the ULP interface for SCTP. */ 6516/* This proto struct describes the ULP interface for SCTP. */
6519struct proto sctp_prot = { 6517struct proto sctp_prot = {
6520 .name = "SCTP", 6518 .name = "SCTP",
@@ -6544,11 +6542,9 @@ struct proto sctp_prot = {
6544 .enter_memory_pressure = sctp_enter_memory_pressure, 6542 .enter_memory_pressure = sctp_enter_memory_pressure,
6545 .memory_allocated = &sctp_memory_allocated, 6543 .memory_allocated = &sctp_memory_allocated,
6546 .sockets_allocated = &sctp_sockets_allocated, 6544 .sockets_allocated = &sctp_sockets_allocated,
6547 REF_PROTO_INUSE(sctp)
6548}; 6545};
6549 6546
6550#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 6547#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
6551DEFINE_PROTO_INUSE(sctpv6)
6552 6548
6553struct proto sctpv6_prot = { 6549struct proto sctpv6_prot = {
6554 .name = "SCTPv6", 6550 .name = "SCTPv6",
@@ -6578,6 +6574,5 @@ struct proto sctpv6_prot = {
6578 .enter_memory_pressure = sctp_enter_memory_pressure, 6574 .enter_memory_pressure = sctp_enter_memory_pressure,
6579 .memory_allocated = &sctp_memory_allocated, 6575 .memory_allocated = &sctp_memory_allocated,
6580 .sockets_allocated = &sctp_sockets_allocated, 6576 .sockets_allocated = &sctp_sockets_allocated,
6581 REF_PROTO_INUSE(sctpv6)
6582}; 6577};
6583#endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */ 6578#endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */