Searched refs:ug (Results 1 – 1 of 1) sorted by relevance
6605 static inline void uncharge_gather_clear(struct uncharge_gather *ug) in uncharge_gather_clear() argument6607 memset(ug, 0, sizeof(*ug)); in uncharge_gather_clear()6610 static void uncharge_batch(const struct uncharge_gather *ug) in uncharge_batch() argument6612 unsigned long nr_pages = ug->nr_anon + ug->nr_file + ug->nr_kmem; in uncharge_batch()6615 if (!mem_cgroup_is_root(ug->memcg)) { in uncharge_batch()6616 page_counter_uncharge(&ug->memcg->memory, nr_pages); in uncharge_batch()6618 page_counter_uncharge(&ug->memcg->memsw, nr_pages); in uncharge_batch()6619 if (!cgroup_subsys_on_dfl(memory_cgrp_subsys) && ug->nr_kmem) in uncharge_batch()6620 page_counter_uncharge(&ug->memcg->kmem, ug->nr_kmem); in uncharge_batch()6621 memcg_oom_recover(ug->memcg); in uncharge_batch()[all …]