Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7466d90f authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

[IPV4] inetpeer: Get rid of volatile from peer_total



The variable peer_total is protected by a lock.  The volatile marker
makes no sense.  This shaves off 20 bytes on i386.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bde3445c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -86,7 +86,7 @@ static struct inet_peer *peer_root = peer_avl_empty;
static DEFINE_RWLOCK(peer_pool_lock);
static DEFINE_RWLOCK(peer_pool_lock);
#define PEER_MAXDEPTH 40 /* sufficient for about 2^27 nodes */
#define PEER_MAXDEPTH 40 /* sufficient for about 2^27 nodes */


static volatile int peer_total;
static int peer_total;
/* Exported for sysctl_net_ipv4.  */
/* Exported for sysctl_net_ipv4.  */
int inet_peer_threshold = 65536 + 128;	/* start to throw entries more
int inet_peer_threshold = 65536 + 128;	/* start to throw entries more
					 * aggressively at this stage */
					 * aggressively at this stage */