Searched refs:new_usage (Results 1 – 1 of 1) sorted by relevance
124 static void misc_cg_update_watermark(struct misc_res *res, u64 new_usage) in misc_cg_update_watermark() argument130 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() local180 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()