diff options
| author | Eric Dumazet <[email protected]> | 2015-05-15 19:39:27 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-05-18 02:45:48 +0000 |
| commit | b8da51ebb1aa93908350f95efae73aecbc2e266c (patch) | |
| tree | 5d6b1edc272ea24b07ec2a38cbcba7c53fb44bae /net/ipv4/tcp_timer.c | |
| parent | tcp: rename sk_forced_wmem_schedule() to sk_forced_mem_schedule() (diff) | |
| download | kernel-b8da51ebb1aa93908350f95efae73aecbc2e266c.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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); } |
