Eric Dumazet 65f7651788 [NET]: prot_inuse cleanups and optimizations
1) Cleanups (all functions are prefixed by sock_prot_inuse)

sock_prot_inc_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_dec_use(prot) -> sock_prot_inuse_add(prot,-1)
sock_prot_inuse()       -> sock_prot_inuse_get()

New functions :

sock_prot_inuse_init() and sock_prot_inuse_free() to abstract pcounter use.

2) if CONFIG_PROC_FS=n, we can zap 'inuse' member from "struct proto",
since nobody wants to read the inuse value.

This saves 1372 bytes on i386/SMP and some cpu cycles.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:36 -08:00
..
2008-01-28 15:00:19 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:58:15 -08:00
2008-01-08 23:30:18 -08:00
2008-01-28 14:58:15 -08:00
2008-01-28 14:53:43 -08:00
2008-01-28 14:58:15 -08:00
2007-10-20 01:34:40 +02:00
2008-01-28 14:59:05 -08:00
2007-04-25 22:28:20 -07:00
2007-10-10 16:48:31 -07:00