Home
last modified time | relevance | path

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

/linux-6.12.1/kernel/cgroup/
Dmisc.c124 static void misc_cg_update_watermark(struct misc_res *res, u64 new_usage) in misc_cg_update_watermark() argument
130 if (new_usage <= old) in misc_cg_update_watermark()
132 if (atomic64_cmpxchg(&res->watermark, old, new_usage) == old) in misc_cg_update_watermark()
169 u64 new_usage; in misc_cg_try_charge() local
180 new_usage = atomic64_add_return(amount, &res->usage); in misc_cg_try_charge()
181 if (new_usage > READ_ONCE(res->max) || in misc_cg_try_charge()
182 new_usage > READ_ONCE(misc_res_capacity[type])) { in misc_cg_try_charge()
186 misc_cg_update_watermark(res, new_usage); in misc_cg_try_charge()