• Home
  • Raw
  • Download

Lines Matching refs:i

1155 	int i;  in __invalidate_reclaim_iterators()  local
1159 for (i = 0; i <= DEF_PRIORITY; i++) { in __invalidate_reclaim_iterators()
1160 iter = &mz->iter[i]; in __invalidate_reclaim_iterators()
1383 int i; in memory_stat_format() local
1440 for (i = 0; i < NR_LRU_LISTS; i++) in memory_stat_format()
1441 seq_buf_printf(&s, "%s %llu\n", mem_cgroup_lru_names[i], in memory_stat_format()
1442 (u64)memcg_page_state(memcg, NR_LRU_BASE + i) * in memory_stat_format()
2302 int i; in memcg_hotplug_cpu_dead() local
2304 for (i = 0; i < MEMCG_NR_STAT; i++) { in memcg_hotplug_cpu_dead()
2308 x = this_cpu_xchg(memcg->vmstats_percpu->stat[i], 0); in memcg_hotplug_cpu_dead()
2311 atomic_long_add(x, &memcg->vmstats[i]); in memcg_hotplug_cpu_dead()
2313 if (i >= NR_VM_NODE_STAT_ITEMS) in memcg_hotplug_cpu_dead()
2320 x = this_cpu_xchg(pn->lruvec_stat_cpu->count[i], 0); in memcg_hotplug_cpu_dead()
2323 atomic_long_add(x, &pn->lruvec_stat[i]); in memcg_hotplug_cpu_dead()
2328 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) { in memcg_hotplug_cpu_dead()
2331 x = this_cpu_xchg(memcg->vmstats_percpu->events[i], 0); in memcg_hotplug_cpu_dead()
2334 atomic_long_add(x, &memcg->vmevents[i]); in memcg_hotplug_cpu_dead()
3052 int i; in mem_cgroup_split_huge_fixup() local
3057 for (i = 1; i < HPAGE_PMD_NR; i++) in mem_cgroup_split_huge_fixup()
3058 head[i].mem_cgroup = head->mem_cgroup; in mem_cgroup_split_huge_fixup()
3411 int node, cpu, i; in memcg_flush_percpu_vmstats() local
3414 for (i = 0; i < MEMCG_NR_STAT; i++) in memcg_flush_percpu_vmstats()
3415 stat[i] += per_cpu(memcg->vmstats_percpu->stat[i], cpu); in memcg_flush_percpu_vmstats()
3418 for (i = 0; i < MEMCG_NR_STAT; i++) in memcg_flush_percpu_vmstats()
3419 atomic_long_add(stat[i], &mi->vmstats[i]); in memcg_flush_percpu_vmstats()
3425 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in memcg_flush_percpu_vmstats()
3426 stat[i] = 0; in memcg_flush_percpu_vmstats()
3429 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in memcg_flush_percpu_vmstats()
3430 stat[i] += per_cpu( in memcg_flush_percpu_vmstats()
3431 pn->lruvec_stat_cpu->count[i], cpu); in memcg_flush_percpu_vmstats()
3434 for (i = 0; i < NR_VM_NODE_STAT_ITEMS; i++) in memcg_flush_percpu_vmstats()
3435 atomic_long_add(stat[i], &pi->lruvec_stat[i]); in memcg_flush_percpu_vmstats()
3443 int cpu, i; in memcg_flush_percpu_vmevents() local
3445 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) in memcg_flush_percpu_vmevents()
3446 events[i] = 0; in memcg_flush_percpu_vmevents()
3449 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) in memcg_flush_percpu_vmevents()
3450 events[i] += per_cpu(memcg->vmstats_percpu->events[i], in memcg_flush_percpu_vmevents()
3454 for (i = 0; i < NR_VM_EVENT_ITEMS; i++) in memcg_flush_percpu_vmevents()
3455 atomic_long_add(events[i], &mi->vmevents[i]); in memcg_flush_percpu_vmevents()
3854 unsigned int i; in memcg_stat_show() local
3859 for (i = 0; i < ARRAY_SIZE(memcg1_stats); i++) { in memcg_stat_show()
3860 if (memcg1_stats[i] == MEMCG_SWAP && !do_memsw_account()) in memcg_stat_show()
3862 seq_printf(m, "%s %lu\n", memcg1_stat_names[i], in memcg_stat_show()
3863 memcg_page_state_local(memcg, memcg1_stats[i]) * in memcg_stat_show()
3867 for (i = 0; i < ARRAY_SIZE(memcg1_events); i++) in memcg_stat_show()
3868 seq_printf(m, "%s %lu\n", memcg1_event_names[i], in memcg_stat_show()
3869 memcg_events_local(memcg, memcg1_events[i])); in memcg_stat_show()
3871 for (i = 0; i < NR_LRU_LISTS; i++) in memcg_stat_show()
3872 seq_printf(m, "%s %lu\n", mem_cgroup_lru_names[i], in memcg_stat_show()
3873 memcg_page_state_local(memcg, NR_LRU_BASE + i) * in memcg_stat_show()
3888 for (i = 0; i < ARRAY_SIZE(memcg1_stats); i++) { in memcg_stat_show()
3889 if (memcg1_stats[i] == MEMCG_SWAP && !do_memsw_account()) in memcg_stat_show()
3891 seq_printf(m, "total_%s %llu\n", memcg1_stat_names[i], in memcg_stat_show()
3892 (u64)memcg_page_state(memcg, memcg1_stats[i]) * in memcg_stat_show()
3896 for (i = 0; i < ARRAY_SIZE(memcg1_events); i++) in memcg_stat_show()
3897 seq_printf(m, "total_%s %llu\n", memcg1_event_names[i], in memcg_stat_show()
3898 (u64)memcg_events(memcg, memcg1_events[i])); in memcg_stat_show()
3900 for (i = 0; i < NR_LRU_LISTS; i++) in memcg_stat_show()
3901 seq_printf(m, "total_%s %llu\n", mem_cgroup_lru_names[i], in memcg_stat_show()
3902 (u64)memcg_page_state(memcg, NR_LRU_BASE + i) * in memcg_stat_show()
3960 int i; in __mem_cgroup_threshold() local
3978 i = t->current_threshold; in __mem_cgroup_threshold()
3986 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()
3987 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
3990 i++; in __mem_cgroup_threshold()
3998 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()
3999 eventfd_signal(t->entries[i].eventfd, 1); in __mem_cgroup_threshold()
4002 t->current_threshold = i - 1; in __mem_cgroup_threshold()
4060 int i, size, ret; in __mem_cgroup_usage_register_event() local
4107 for (i = 0; i < size; i++) { in __mem_cgroup_usage_register_event()
4108 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event()
4152 int i, j, size; in __mem_cgroup_usage_unregister_event() local
4173 for (i = 0; i < thresholds->primary->size; i++) { in __mem_cgroup_usage_unregister_event()
4174 if (thresholds->primary->entries[i].eventfd != eventfd) in __mem_cgroup_usage_unregister_event()
4191 for (i = 0, j = 0; i < thresholds->primary->size; i++) { in __mem_cgroup_usage_unregister_event()
4192 if (thresholds->primary->entries[i].eventfd == eventfd) in __mem_cgroup_usage_unregister_event()
4195 new->entries[j] = thresholds->primary->entries[i]; in __mem_cgroup_usage_unregister_event()
4442 int i; in mem_cgroup_track_foreign_dirty_slowpath() local
4451 for (i = 0; i < MEMCG_CGWB_FRN_CNT; i++) { in mem_cgroup_track_foreign_dirty_slowpath()
4452 frn = &memcg->cgwb_frn[i]; in mem_cgroup_track_foreign_dirty_slowpath()
4458 oldest = i; in mem_cgroup_track_foreign_dirty_slowpath()
4463 if (i < MEMCG_CGWB_FRN_CNT) { in mem_cgroup_track_foreign_dirty_slowpath()
4492 int i; in mem_cgroup_flush_foreign() local
4494 for (i = 0; i < MEMCG_CGWB_FRN_CNT; i++) { in mem_cgroup_flush_foreign()
4495 struct memcg_cgwb_frn *frn = &memcg->cgwb_frn[i]; in mem_cgroup_flush_foreign()
5031 int __maybe_unused i; in mem_cgroup_alloc() local
5075 for (i = 0; i < MEMCG_CGWB_FRN_CNT; i++) in mem_cgroup_alloc()
5076 memcg->cgwb_frn[i].done = in mem_cgroup_alloc()
5212 int __maybe_unused i; in mem_cgroup_css_free() local
5215 for (i = 0; i < MEMCG_CGWB_FRN_CNT; i++) in mem_cgroup_css_free()
5216 wb_wait_for_completion(&memcg->cgwb_frn[i].done); in mem_cgroup_css_free()