Home
last modified time | relevance | path

Searched refs:sk_memcg (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/core/
Dsock.c1929 newsk->sk_memcg = NULL; in sk_clone_lock()
2605 if (mem_cgroup_sockets_enabled && sk->sk_memcg && in __sk_mem_raise_allocated()
2606 !(charged = mem_cgroup_charge_skmem(sk->sk_memcg, amt))) in __sk_mem_raise_allocated()
2669 if (mem_cgroup_sockets_enabled && sk->sk_memcg) in __sk_mem_raise_allocated()
2670 mem_cgroup_uncharge_skmem(sk->sk_memcg, amt); in __sk_mem_raise_allocated()
2709 if (mem_cgroup_sockets_enabled && sk->sk_memcg) in __sk_mem_reduce_allocated()
2710 mem_cgroup_uncharge_skmem(sk->sk_memcg, amount); in __sk_mem_reduce_allocated()
/kernel/linux/linux-5.10/net/ipv4/
Dinet_connection_sock.c533 if (newsk->sk_memcg && amt) in inet_csk_accept()
534 mem_cgroup_charge_skmem(newsk->sk_memcg, amt); in inet_csk_accept()
Dtcp_output.c3389 if (mem_cgroup_sockets_enabled && sk->sk_memcg) in sk_forced_mem_schedule()
3390 mem_cgroup_charge_skmem(sk->sk_memcg, amt); in sk_forced_mem_schedule()
/kernel/linux/linux-5.10/include/net/
Dsock.h512 struct mem_cgroup *sk_memcg; member
1348 if (mem_cgroup_sockets_enabled && sk->sk_memcg && in sk_under_memory_pressure()
1349 mem_cgroup_under_socket_pressure(sk->sk_memcg)) in sk_under_memory_pressure()
Dtcp.h264 if (mem_cgroup_sockets_enabled && sk->sk_memcg && in tcp_under_memory_pressure()
265 mem_cgroup_under_socket_pressure(sk->sk_memcg)) in tcp_under_memory_pressure()
/kernel/linux/linux-5.10/mm/
Dmemcontrol.c7141 sk->sk_memcg = memcg; in mem_cgroup_sk_alloc()
7148 if (sk->sk_memcg) in mem_cgroup_sk_free()
7149 css_put(&sk->sk_memcg->css); in mem_cgroup_sk_free()