Home
last modified time | relevance | path

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

/mm/
Dmemcontrol.c2172 struct memcg_stock_pcp *stock; in consume_stock() local
2181 stock = this_cpu_ptr(&memcg_stock); in consume_stock()
2182 if (memcg == stock->cached && stock->nr_pages >= nr_pages) { in consume_stock()
2183 stock->nr_pages -= nr_pages; in consume_stock()
2195 static void drain_stock(struct memcg_stock_pcp *stock) in drain_stock() argument
2197 struct mem_cgroup *old = stock->cached; in drain_stock()
2199 if (stock->nr_pages) { in drain_stock()
2200 page_counter_uncharge(&old->memory, stock->nr_pages); in drain_stock()
2202 page_counter_uncharge(&old->memsw, stock->nr_pages); in drain_stock()
2203 css_put_many(&old->css, stock->nr_pages); in drain_stock()
[all …]