summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2012-05-10 01:50:20 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-10 23:24:36 -0400
commit1070b1b831404455d79d15fe94ae9216fb5f8ab4 (patch)
treee371f8d9c09c0a6265aba39dec9ef2b1dd87f9fc /net/ipv4
parent3c961afed4d4e766b66092e7af8c8e8005053505 (diff)
downloadlinux-3.10-1070b1b831404455d79d15fe94ae9216fb5f8ab4.tar.gz
linux-3.10-1070b1b831404455d79d15fe94ae9216fb5f8ab4.tar.bz2
linux-3.10-1070b1b831404455d79d15fe94ae9216fb5f8ab4.zip
tcp: Out-line tcp_try_rmem_schedule
As proposed by Eric, make the tcp_input.o thinner. add/remove: 1/1 grow/shrink: 1/4 up/down: 868/-1329 (-461) function old new delta tcp_try_rmem_schedule - 864 +864 tcp_ack 4811 4815 +4 tcp_validate_incoming 817 815 -2 tcp_collapse 860 858 -2 tcp_send_rcvq 555 353 -202 tcp_data_queue 3435 3033 -402 tcp_prune_queue 721 - -721 Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 164659f2d63..b99ada27a13 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4511,7 +4511,7 @@ static void tcp_ofo_queue(struct sock *sk)
static int tcp_prune_ofo_queue(struct sock *sk);
static int tcp_prune_queue(struct sock *sk);
-static inline int tcp_try_rmem_schedule(struct sock *sk, unsigned int size)
+static int tcp_try_rmem_schedule(struct sock *sk, unsigned int size)
{
if (atomic_read(&sk->sk_rmem_alloc) > sk->sk_rcvbuf ||
!sk_rmem_schedule(sk, size)) {