|
@@ -226,19 +226,6 @@ static int tcp_cgroup_reset(struct cgroup_subsys_state *css, unsigned int event)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-unsigned long long tcp_max_memory(const struct mem_cgroup *memcg)
|
|
|
-{
|
|
|
- struct tcp_memcontrol *tcp;
|
|
|
- struct cg_proto *cg_proto;
|
|
|
-
|
|
|
- cg_proto = tcp_prot.proto_cgroup((struct mem_cgroup *)memcg);
|
|
|
- if (!cg_proto)
|
|
|
- return 0;
|
|
|
-
|
|
|
- tcp = tcp_from_cgproto(cg_proto);
|
|
|
- return res_counter_read_u64(&tcp->tcp_memory_allocated, RES_LIMIT);
|
|
|
-}
|
|
|
-
|
|
|
void tcp_prot_mem(struct mem_cgroup *memcg, long val, int idx)
|
|
|
{
|
|
|
struct tcp_memcontrol *tcp;
|