Lines Matching refs:cg_proto
220 struct cg_proto;
434 struct cg_proto *sk_cgrp;
1051 struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg);
1065 struct cg_proto { struct
1086 static inline bool memcg_proto_active(struct cg_proto *cg_proto) in memcg_proto_active() argument
1088 return test_bit(MEMCG_SOCK_ACTIVE, &cg_proto->flags); in memcg_proto_active()
1118 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
1119 struct cg_proto *cg_proto) in parent_cg_proto() argument
1121 return proto->proto_cgroup(parent_mem_cgroup(cg_proto->memcg)); in parent_cg_proto()
1126 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
1127 struct cg_proto *cg_proto) in parent_cg_proto() argument
1176 struct cg_proto *cg_proto = sk->sk_cgrp; in sk_leave_memory_pressure() local
1179 for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) in sk_leave_memory_pressure()
1180 cg_proto->memory_pressure = 0; in sk_leave_memory_pressure()
1191 struct cg_proto *cg_proto = sk->sk_cgrp; in sk_enter_memory_pressure() local
1194 for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) in sk_enter_memory_pressure()
1195 cg_proto->memory_pressure = 1; in sk_enter_memory_pressure()
1209 static inline void memcg_memory_allocated_add(struct cg_proto *prot, in memcg_memory_allocated_add()
1220 static inline void memcg_memory_allocated_sub(struct cg_proto *prot, in memcg_memory_allocated_sub()
1268 struct cg_proto *cg_proto = sk->sk_cgrp; in sk_sockets_allocated_dec() local
1270 for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) in sk_sockets_allocated_dec()
1271 percpu_counter_dec(&cg_proto->sockets_allocated); in sk_sockets_allocated_dec()
1282 struct cg_proto *cg_proto = sk->sk_cgrp; in sk_sockets_allocated_inc() local
1284 for (; cg_proto; cg_proto = parent_cg_proto(prot, cg_proto)) in sk_sockets_allocated_inc()
1285 percpu_counter_inc(&cg_proto->sockets_allocated); in sk_sockets_allocated_inc()