• Home
  • Raw
  • Download

Lines Matching refs:count

575 		val += per_cpu(memcg->stat->count[idx], cpu);  in mem_cgroup_read_stat()
605 __this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_RSS], in mem_cgroup_charge_statistics()
608 __this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_CACHE], in mem_cgroup_charge_statistics()
613 __this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_RSS_HUGE], in mem_cgroup_charge_statistics()
1078 unsigned long count; in mem_cgroup_margin() local
1081 count = page_counter_read(&memcg->memory); in mem_cgroup_margin()
1083 if (count < limit) in mem_cgroup_margin()
1084 margin = limit - count; in mem_cgroup_margin()
1087 count = page_counter_read(&memcg->memsw); in mem_cgroup_margin()
1089 if (count <= limit) in mem_cgroup_margin()
1090 margin = min(margin, limit - count); in mem_cgroup_margin()
2391 __this_cpu_sub(head->mem_cgroup->stat->count[MEM_CGROUP_STAT_RSS_HUGE], in mem_cgroup_split_huge_fixup()
2401 this_cpu_add(memcg->stat->count[MEM_CGROUP_STAT_SWAP], val); in mem_cgroup_swap_statistics()
4362 static int mem_cgroup_do_precharge(unsigned long count) in mem_cgroup_do_precharge() argument
4367 ret = try_charge(mc.to, GFP_KERNEL & ~__GFP_DIRECT_RECLAIM, count); in mem_cgroup_do_precharge()
4369 mc.precharge += count; in mem_cgroup_do_precharge()
4374 while (count--) { in mem_cgroup_do_precharge()
4520 __this_cpu_sub(from->stat->count[MEM_CGROUP_STAT_FILE_MAPPED], in mem_cgroup_move_account()
4522 __this_cpu_add(to->stat->count[MEM_CGROUP_STAT_FILE_MAPPED], in mem_cgroup_move_account()
4535 __this_cpu_sub(from->stat->count[MEM_CGROUP_STAT_DIRTY], in mem_cgroup_move_account()
4537 __this_cpu_add(to->stat->count[MEM_CGROUP_STAT_DIRTY], in mem_cgroup_move_account()
4543 __this_cpu_sub(from->stat->count[MEM_CGROUP_STAT_WRITEBACK], in mem_cgroup_move_account()
4545 __this_cpu_add(to->stat->count[MEM_CGROUP_STAT_WRITEBACK], in mem_cgroup_move_account()
5501 __this_cpu_sub(memcg->stat->count[MEM_CGROUP_STAT_RSS], nr_anon); in uncharge_batch()
5502 __this_cpu_sub(memcg->stat->count[MEM_CGROUP_STAT_CACHE], nr_file); in uncharge_batch()
5503 __this_cpu_sub(memcg->stat->count[MEM_CGROUP_STAT_RSS_HUGE], nr_huge); in uncharge_batch()
5739 this_cpu_add(memcg->stat->count[MEMCG_SOCK], nr_pages); in mem_cgroup_charge_skmem()
5760 this_cpu_sub(memcg->stat->count[MEMCG_SOCK], nr_pages); in mem_cgroup_uncharge_skmem()