Lines Matching refs:i
1631 unsigned int i; in mem_cgroup_print_oom_info() local
1665 for (i = 0; i < MEM_CGROUP_STAT_NSTATS; i++) { in mem_cgroup_print_oom_info()
1666 if (i == MEM_CGROUP_STAT_SWAP && !do_swap_account) in mem_cgroup_print_oom_info()
1668 pr_cont(" %s:%ldKB", mem_cgroup_stat_names[i], in mem_cgroup_print_oom_info()
1669 K(mem_cgroup_read_stat(iter, i))); in mem_cgroup_print_oom_info()
1672 for (i = 0; i < NR_LRU_LISTS; i++) in mem_cgroup_print_oom_info()
1673 pr_cont(" %s:%luKB", mem_cgroup_lru_names[i], in mem_cgroup_print_oom_info()
1674 K(mem_cgroup_nr_lru_pages(iter, BIT(i)))); in mem_cgroup_print_oom_info()
2463 int i; in mem_cgroup_drain_pcp_counter() local
2466 for (i = 0; i < MEM_CGROUP_STAT_NSTATS; i++) { in mem_cgroup_drain_pcp_counter()
2467 long x = per_cpu(memcg->stat->count[i], cpu); in mem_cgroup_drain_pcp_counter()
2469 per_cpu(memcg->stat->count[i], cpu) = 0; in mem_cgroup_drain_pcp_counter()
2470 memcg->nocpu_base.count[i] += x; in mem_cgroup_drain_pcp_counter()
2472 for (i = 0; i < MEM_CGROUP_EVENTS_NSTATS; i++) { in mem_cgroup_drain_pcp_counter()
2473 unsigned long x = per_cpu(memcg->stat->events[i], cpu); in mem_cgroup_drain_pcp_counter()
2475 per_cpu(memcg->stat->events[i], cpu) = 0; in mem_cgroup_drain_pcp_counter()
2476 memcg->nocpu_base.events[i] += x; in mem_cgroup_drain_pcp_counter()
3029 int i, failed = 0; in __memcg_cleanup_cache_params() local
3032 for_each_memcg_cache_index(i) { in __memcg_cleanup_cache_params()
3033 c = cache_from_memcg_idx(s, i); in __memcg_cleanup_cache_params()
3039 if (cache_from_memcg_idx(s, i)) in __memcg_cleanup_cache_params()
3331 int i; in mem_cgroup_split_huge_fixup() local
3337 for (i = 1; i < HPAGE_PMD_NR; i++) { in mem_cgroup_split_huge_fixup()
3338 pc = head_pc + i; in mem_cgroup_split_huge_fixup()
4391 unsigned int i; in memcg_stat_show() local
4393 for (i = 0; i < MEM_CGROUP_STAT_NSTATS; i++) { in memcg_stat_show()
4394 if (i == MEM_CGROUP_STAT_SWAP && !do_swap_account) in memcg_stat_show()
4396 seq_printf(m, "%s %ld\n", mem_cgroup_stat_names[i], in memcg_stat_show()
4397 mem_cgroup_read_stat(memcg, i) * PAGE_SIZE); in memcg_stat_show()
4400 for (i = 0; i < MEM_CGROUP_EVENTS_NSTATS; i++) in memcg_stat_show()
4401 seq_printf(m, "%s %lu\n", mem_cgroup_events_names[i], in memcg_stat_show()
4402 mem_cgroup_read_events(memcg, i)); in memcg_stat_show()
4404 for (i = 0; i < NR_LRU_LISTS; i++) in memcg_stat_show()
4405 seq_printf(m, "%s %lu\n", mem_cgroup_lru_names[i], in memcg_stat_show()
4406 mem_cgroup_nr_lru_pages(memcg, BIT(i)) * PAGE_SIZE); in memcg_stat_show()
4418 for (i = 0; i < MEM_CGROUP_STAT_NSTATS; i++) { in memcg_stat_show()
4421 if (i == MEM_CGROUP_STAT_SWAP && !do_swap_account) in memcg_stat_show()
4424 val += mem_cgroup_read_stat(mi, i) * PAGE_SIZE; in memcg_stat_show()
4425 seq_printf(m, "total_%s %lld\n", mem_cgroup_stat_names[i], val); in memcg_stat_show()
4428 for (i = 0; i < MEM_CGROUP_EVENTS_NSTATS; i++) { in memcg_stat_show()
4432 val += mem_cgroup_read_events(mi, i); in memcg_stat_show()
4434 mem_cgroup_events_names[i], val); in memcg_stat_show()
4437 for (i = 0; i < NR_LRU_LISTS; i++) { in memcg_stat_show()
4441 val += mem_cgroup_nr_lru_pages(mi, BIT(i)) * PAGE_SIZE; in memcg_stat_show()
4442 seq_printf(m, "total_%s %llu\n", mem_cgroup_lru_names[i], val); in memcg_stat_show()
4501 int i; in __mem_cgroup_threshold() local
4519 i = t->current_threshold; in __mem_cgroup_threshold()
4527 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()
4528 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
4531 i++; in __mem_cgroup_threshold()
4539 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()
4540 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
4543 t->current_threshold = i - 1; in __mem_cgroup_threshold()
4600 int i, size, ret; in __mem_cgroup_usage_register_event() local
4648 for (i = 0; i < size; i++) { in __mem_cgroup_usage_register_event()
4649 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event()
4693 int i, j, size; in __mem_cgroup_usage_unregister_event() local
4714 for (i = 0; i < thresholds->primary->size; i++) { in __mem_cgroup_usage_unregister_event()
4715 if (thresholds->primary->entries[i].eventfd != eventfd) in __mem_cgroup_usage_unregister_event()
4732 for (i = 0, j = 0; i < thresholds->primary->size; i++) { in __mem_cgroup_usage_unregister_event()
4733 if (thresholds->primary->entries[i].eventfd == eventfd) in __mem_cgroup_usage_unregister_event()
4736 new->entries[j] = thresholds->primary->entries[i]; in __mem_cgroup_usage_unregister_event()
5901 int i; in __mem_cgroup_clear_mc() local
5923 for (i = 0; i < mc.moved_swap; i++) in __mem_cgroup_clear_mc()