mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
[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>
This commit is contained in:
parent
60e7663d46
commit
bdcde3d71a
12 changed files with 0 additions and 41 deletions
|
@ -47,7 +47,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/lockdep.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/pcounter.h>
|
||||
#include <linux/skbuff.h> /* struct sk_buff */
|
||||
#include <linux/mm.h>
|
||||
#include <linux/security.h>
|
||||
|
@ -563,7 +562,6 @@ struct proto {
|
|||
/* Keeping track of sockets in use */
|
||||
#ifdef CONFIG_PROC_FS
|
||||
unsigned int inuse_idx;
|
||||
struct pcounter inuse;
|
||||
#endif
|
||||
|
||||
/* Memory pressure */
|
||||
|
@ -636,14 +634,10 @@ static inline void sk_refcnt_debug_release(const struct sock *sk)
|
|||
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
# define DEFINE_PROTO_INUSE(NAME) DEFINE_PCOUNTER(NAME)
|
||||
# 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);
|
||||
extern int sock_prot_inuse_get(struct proto *proto);
|
||||
#else
|
||||
# define DEFINE_PROTO_INUSE(NAME)
|
||||
# define REF_PROTO_INUSE(NAME)
|
||||
static void inline sock_prot_inuse_add(struct proto *prot, int inc)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue