Lines Matching refs:p
89 static void pids_update_watermark(struct pids_cgroup *p, int64_t nr_pids) in pids_update_watermark() argument
95 if (nr_pids > READ_ONCE(p->watermark)) in pids_update_watermark()
96 WRITE_ONCE(p->watermark, nr_pids); in pids_update_watermark()
123 struct pids_cgroup *p; in pids_uncharge() local
125 for (p = pids; parent_pids(p); p = parent_pids(p)) in pids_uncharge()
126 pids_cancel(p, num); in pids_uncharge()
140 struct pids_cgroup *p; in pids_charge() local
142 for (p = pids; parent_pids(p); p = parent_pids(p)) { in pids_charge()
143 int64_t new = atomic64_add_return(num, &p->counter); in pids_charge()
145 pids_update_watermark(p, new); in pids_charge()
160 struct pids_cgroup *p, *q; in pids_try_charge() local
162 for (p = pids; parent_pids(p); p = parent_pids(p)) { in pids_try_charge()
163 int64_t new = atomic64_add_return(num, &p->counter); in pids_try_charge()
164 int64_t limit = atomic64_read(&p->limit); in pids_try_charge()
178 pids_update_watermark(p, new); in pids_try_charge()
184 for (q = pids; q != p; q = parent_pids(q)) in pids_try_charge()
186 pids_cancel(p, num); in pids_try_charge()