]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/ipv4/tcp_output.c
tcp: introduce tcp_under_memory_pressure()
[linux-beck.git] / net / ipv4 / tcp_output.c
index bac1a950d0879a036b2cad717ff5fae70d8b942d..08c2cc40b26d65227eccaf3b5a068c16cef62fa1 100644 (file)
@@ -2392,7 +2392,7 @@ u32 __tcp_select_window(struct sock *sk)
        if (free_space < (full_space >> 1)) {
                icsk->icsk_ack.quick = 0;
 
-               if (sk_under_memory_pressure(sk))
+               if (tcp_under_memory_pressure(sk))
                        tp->rcv_ssthresh = min(tp->rcv_ssthresh,
                                               4U * tp->advmss);
 
@@ -2843,7 +2843,7 @@ void tcp_send_fin(struct sock *sk)
         * Note: in the latter case, FIN packet will be sent after a timeout,
         * as TCP stack thinks it has already been transmitted.
         */
-       if (tskb && (tcp_send_head(sk) || sk_under_memory_pressure(sk))) {
+       if (tskb && (tcp_send_head(sk) || tcp_under_memory_pressure(sk))) {
 coalesce:
                TCP_SKB_CB(tskb)->tcp_flags |= TCPHDR_FIN;
                TCP_SKB_CB(tskb)->end_seq++;