diff options
author | Eric Dumazet <edumazet@google.com> | 2015-05-15 21:39:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-18 04:45:48 +0200 |
commit | b8da51ebb1aa93908350f95efae73aecbc2e266c (patch) | |
tree | 5d6b1edc272ea24b07ec2a38cbcba7c53fb44bae /net/ipv4/tcp_timer.c | |
parent | tcp: rename sk_forced_wmem_schedule() to sk_forced_mem_schedule() (diff) | |
download | linux-b8da51ebb1aa93908350f95efae73aecbc2e266c.tar.xz linux-b8da51ebb1aa93908350f95efae73aecbc2e266c.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 65bf670e8714..5b752f58a900 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); } |