ASoC: wm_adsp: Use correct local length in error message
[deliverable/linux.git] / net / ipv4 / tcp_output.c
index 412a920fe0ec0925b3291e5cf3eb5220c2a398ea..fda379cd600d4e033333a37301f3cba4eec0ba7b 100644 (file)
@@ -2813,13 +2813,16 @@ begin_fwd:
  */
 void sk_forced_mem_schedule(struct sock *sk, int size)
 {
-       int amt, status;
+       int amt;
 
        if (size <= sk->sk_forward_alloc)
                return;
        amt = sk_mem_pages(size);
        sk->sk_forward_alloc += amt * SK_MEM_QUANTUM;
-       sk_memory_allocated_add(sk, amt, &status);
+       sk_memory_allocated_add(sk, amt);
+
+       if (mem_cgroup_sockets_enabled && sk->sk_memcg)
+               mem_cgroup_charge_skmem(sk->sk_memcg, amt);
 }
 
 /* Send a FIN. The caller locks the socket for us.
This page took 0.025979 seconds and 5 git commands to generate.