From: Eric Dumazet <[EMAIL PROTECTED]>
Date: Thu, 3 Jan 2008 18:41:54 +0100

> 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 <[EMAIL PROTECTED]>

I hate the ifdef, but it's in a header so what can I do? :-)

Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to