• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/mm/

Lines Matching defs:memsw

205 	struct res_counter memsw;
233 /* set when res.limit == memsw.limit */
1031 res_counter_check_under_limit(&mem->memsw))
1165 res_counter_read_u64(&memcg->memsw, RES_USAGE) >> 10,
1166 res_counter_read_u64(&memcg->memsw, RES_LIMIT) >> 10,
1167 res_counter_read_u64(&memcg->memsw, RES_FAILCNT));
1187 u64 memsw;
1191 memsw = res_counter_read_u64(&memcg->memsw, RES_LIMIT);
1193 * If memsw is finite and limits the amount of swap space available
1196 return min(limit, memsw);
1539 res_counter_uncharge(&old->memsw, stock->charge);
1646 ret = res_counter_charge(&mem->memsw, csize, &fail_res);
1651 mem_over_limit = mem_cgroup_from_res_counter(fail_res, memsw);
1836 res_counter_uncharge(&mem->memsw, PAGE_SIZE * count);
2224 * Fix it by uncharging from memsw. Basically, this SwapCache is stable
2242 res_counter_uncharge(&memcg->memsw, PAGE_SIZE);
2314 res_counter_uncharge(&mem->memsw, PAGE_SIZE);
2453 res_counter_uncharge(&batch->memcg->memsw, batch->memsw_bytes);
2487 * uncharge "memsw" account.
2506 res_counter_uncharge(&memcg->memsw, PAGE_SIZE);
2526 * both res and memsw, and called css_get().
2550 res_counter_uncharge(&from->memsw, PAGE_SIZE);
2553 * we charged both to->res and to->memsw, so we should
2768 * We have to guarantee mem->res.limit < mem->memsw.limit.
2771 memswlimit = res_counter_read_u64(&memcg->memsw, RES_LIMIT);
2820 oldusage = res_counter_read_u64(&memcg->memsw, RES_USAGE);
2829 * We have to guarantee mem->res.limit < mem->memsw.limit.
2838 memswlimit = res_counter_read_u64(&memcg->memsw, RES_LIMIT);
2841 ret = res_counter_set_limit(&memcg->memsw, val);
2856 curusage = res_counter_read_u64(&memcg->memsw, RES_USAGE);
3173 return res_counter_read_u64(&mem->memsw, RES_USAGE);
3209 val = res_counter_read_u64(&mem->memsw, name);
3251 * For memsw, soft limits are hard to implement in terms
3274 min_memsw_limit = res_counter_read_u64(&memcg->memsw, RES_LIMIT);
3286 tmp = res_counter_read_u64(&memcg->memsw, RES_LIMIT);
3308 res_counter_reset_max(&mem->memsw);
3314 res_counter_reset_failcnt(&mem->memsw);
3934 .name = "memsw.usage_in_bytes",
3941 .name = "memsw.max_usage_in_bytes",
3947 .name = "memsw.limit_in_bytes",
3953 .name = "memsw.failcnt",
4171 res_counter_init(&mem->memsw, &parent->memsw);
4181 res_counter_init(&mem->memsw, NULL);
4253 if (do_swap_account && res_counter_charge(&mem->memsw,
4495 res_counter_uncharge(&mc.from->memsw,
4501 * we charged both to->res and to->memsw, so we should