/* Cache charges(val) which is from res_counter, to local per_cpu area. This will be consumed by consumt_stock() function, later.  */
static void refill_stock(struct mem_cgroup *mem, int val)
/* Cache charges(val) which is from res_counter, to local per_cpu area. This will be consumed by consumt_stock() function, later.  */
static void refill_stock(struct mem_cgroup *mem, int val)
{
	struct memcg_stock_pcp *stock = &get_cpu_var(memcg_stock);
	if (stock->cached != mem) {
		drain_stock(stock);
		stock->cached = mem;
	}
	stock->charge += val;
	put_cpu_var(memcg_stock);
}