diff options
author | David S. Miller <davem@davemloft.net> | 2022-06-17 12:57:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-17 12:57:22 +0300 |
commit | fd8b330ce1bb79ba00047435cc213b14f886bf1f (patch) | |
tree | d3d97750ff0d215fd1d9e331c9bdc0f54436e1ca /net | |
parent | 47cfd061924061ccd91b828f28a08ec62ffdd6b8 (diff) | |
download | linux-fd8b330ce1bb79ba00047435cc213b14f886bf1f.tar.xz |
tcp: fix build...
Remove accidental dup of tcp_wmem_schedule.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 6c3eab485249..f7309452bdce 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -951,22 +951,6 @@ static int tcp_downgrade_zcopy_pure(struct sock *sk, struct sk_buff *skb) return 0; } -static int tcp_wmem_schedule(struct sock *sk, int copy) -{ - int left; - - if (likely(sk_wmem_schedule(sk, copy))) - return copy; - - /* We could be in trouble if we have nothing queued. - * Use whatever is left in sk->sk_forward_alloc and tcp_wmem[0] - * to guarantee some progress. - */ - left = sock_net(sk)->ipv4.sysctl_tcp_wmem[0] - sk->sk_wmem_queued; - if (left > 0) - sk_forced_mem_schedule(sk, min(left, copy)); - return min(copy, sk->sk_forward_alloc); -} static int tcp_wmem_schedule(struct sock *sk, int copy) { |