summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-05-15 12:39:27 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-17 22:45:48 -0400
commitb8da51ebb1aa93908350f95efae73aecbc2e266c (patch)
tree5d6b1edc272ea24b07ec2a38cbcba7c53fb44bae /net/ipv4/tcp_timer.c
parenta6c5ea4ccf0033591e6e476d7a273c0074c07aa7 (diff)
downloadop-kernel-dev-b8da51ebb1aa93908350f95efae73aecbc2e266c.zip
op-kernel-dev-b8da51ebb1aa93908350f95efae73aecbc2e266c.tar.gz
tcp: introduce tcp_under_memory_pressure()
Introduce an optimized version of sk_under_memory_pressure() for TCP. Our intent is to use it in fast paths. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r--net/ipv4/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 65bf670..5b752f5 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -247,7 +247,7 @@ void tcp_delack_timer_handler(struct sock *sk)
}
out:
- if (sk_under_memory_pressure(sk))
+ if (tcp_under_memory_pressure(sk))
sk_mem_reclaim(sk);
}
OpenPOWER on IntegriCloud