Home
last modified time | relevance | path

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

/linux-2.6.39/Documentation/cgroups/
Dresource_counter.txt60 c. int res_counter_charge(struct res_counter *rc, unsigned long val,
82 The same as res_counter_charge(), but it must not acquire/release the
175 if (res_counter_charge(res_counter_ptr, amount) < 0)
/linux-2.6.39/include/linux/
Dres_counter.h116 int __must_check res_counter_charge(struct res_counter *counter,
/linux-2.6.39/kernel/
Dres_counter.c38 int res_counter_charge(struct res_counter *counter, unsigned long val, in res_counter_charge() function
/linux-2.6.39/mm/
Dmemcontrol.c1903 ret = res_counter_charge(&mem->res, csize, &fail_res); in mem_cgroup_do_charge()
1908 ret = res_counter_charge(&mem->memsw, csize, &fail_res); in mem_cgroup_do_charge()
4665 if (res_counter_charge(&mem->res, PAGE_SIZE * count, &dummy)) in mem_cgroup_do_precharge()
4667 if (do_swap_account && res_counter_charge(&mem->memsw, in mem_cgroup_do_precharge()