Lines Matching refs:mem_cgroup
80 struct mem_cgroup *root_mem_cgroup __read_mostly;
145 struct mem_cgroup *memcg;
159 int (*register_event)(struct mem_cgroup *memcg,
166 void (*unregister_event)(struct mem_cgroup *memcg,
178 static void mem_cgroup_threshold(struct mem_cgroup *memcg);
179 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg);
193 struct mem_cgroup *from;
194 struct mem_cgroup *to;
252 struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) in memcg_to_vmpressure()
261 return &container_of(vmpr, struct mem_cgroup, vmpressure)->css; in vmpressure_to_css()
326 static int memcg_expand_one_shrinker_map(struct mem_cgroup *memcg, in memcg_expand_one_shrinker_map()
356 static void memcg_free_shrinker_maps(struct mem_cgroup *memcg) in memcg_free_shrinker_maps()
374 static int memcg_alloc_shrinker_maps(struct mem_cgroup *memcg) in memcg_alloc_shrinker_maps()
401 struct mem_cgroup *memcg; in memcg_expand_shrinker_maps()
426 void memcg_set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id) in memcg_set_shrinker_bit()
441 static int memcg_alloc_shrinker_maps(struct mem_cgroup *memcg) in memcg_alloc_shrinker_maps()
445 static void memcg_free_shrinker_maps(struct mem_cgroup *memcg) { } in memcg_free_shrinker_maps()
461 struct mem_cgroup *memcg; in mem_cgroup_css_from_page()
463 memcg = page->mem_cgroup; in mem_cgroup_css_from_page()
486 struct mem_cgroup *memcg; in page_cgroup_ino()
490 memcg = READ_ONCE(page->mem_cgroup); in page_cgroup_ino()
500 mem_cgroup_page_nodeinfo(struct mem_cgroup *memcg, struct page *page) in mem_cgroup_page_nodeinfo()
584 static unsigned long soft_limit_excess(struct mem_cgroup *memcg) in soft_limit_excess()
596 static void mem_cgroup_update_tree(struct mem_cgroup *memcg, struct page *page) in mem_cgroup_update_tree()
633 static void mem_cgroup_remove_from_trees(struct mem_cgroup *memcg) in mem_cgroup_remove_from_trees()
683 static unsigned long memcg_sum_events(struct mem_cgroup *memcg, in memcg_sum_events()
689 static void mem_cgroup_charge_statistics(struct mem_cgroup *memcg, in mem_cgroup_charge_statistics()
721 unsigned long mem_cgroup_node_nr_lru_pages(struct mem_cgroup *memcg, in mem_cgroup_node_nr_lru_pages()
738 static unsigned long mem_cgroup_nr_lru_pages(struct mem_cgroup *memcg, in mem_cgroup_nr_lru_pages()
749 static bool mem_cgroup_event_ratelimit(struct mem_cgroup *memcg, in mem_cgroup_event_ratelimit()
781 static void memcg_check_events(struct mem_cgroup *memcg, struct page *page) in memcg_check_events()
805 struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p) in mem_cgroup_from_task()
827 struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm) in get_mem_cgroup_from_mm()
829 struct mem_cgroup *memcg; in get_mem_cgroup_from_mm()
861 struct mem_cgroup *get_mem_cgroup_from_page(struct page *page) in get_mem_cgroup_from_page()
863 struct mem_cgroup *memcg = page->mem_cgroup; in get_mem_cgroup_from_page()
879 static __always_inline struct mem_cgroup *get_mem_cgroup_from_current(void) in get_mem_cgroup_from_current()
882 struct mem_cgroup *memcg = root_mem_cgroup; in get_mem_cgroup_from_current()
910 struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, in mem_cgroup_iter()
911 struct mem_cgroup *prev, in mem_cgroup_iter()
916 struct mem_cgroup *memcg = NULL; in mem_cgroup_iter()
917 struct mem_cgroup *pos = NULL; in mem_cgroup_iter()
1025 void mem_cgroup_iter_break(struct mem_cgroup *root, in mem_cgroup_iter_break()
1026 struct mem_cgroup *prev) in mem_cgroup_iter_break()
1034 static void invalidate_reclaim_iterators(struct mem_cgroup *dead_memcg) in invalidate_reclaim_iterators()
1036 struct mem_cgroup *memcg = dead_memcg; in invalidate_reclaim_iterators()
1067 int mem_cgroup_scan_tasks(struct mem_cgroup *memcg, in mem_cgroup_scan_tasks()
1070 struct mem_cgroup *iter; in mem_cgroup_scan_tasks()
1103 struct mem_cgroup *memcg; in mem_cgroup_page_lruvec()
1111 memcg = page->mem_cgroup; in mem_cgroup_page_lruvec()
1171 bool task_in_mem_cgroup(struct task_struct *task, struct mem_cgroup *memcg) in task_in_mem_cgroup()
1173 struct mem_cgroup *task_memcg; in task_in_mem_cgroup()
1204 static unsigned long mem_cgroup_margin(struct mem_cgroup *memcg) in mem_cgroup_margin()
1234 static bool mem_cgroup_under_move(struct mem_cgroup *memcg) in mem_cgroup_under_move()
1236 struct mem_cgroup *from; in mem_cgroup_under_move()
1237 struct mem_cgroup *to; in mem_cgroup_under_move()
1256 static bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg) in mem_cgroup_wait_acct_move()
1303 void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p) in mem_cgroup_print_oom_info()
1305 struct mem_cgroup *iter; in mem_cgroup_print_oom_info()
1356 unsigned long mem_cgroup_get_max(struct mem_cgroup *memcg) in mem_cgroup_get_max()
1373 static bool mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask, in mem_cgroup_out_of_memory()
1403 static bool test_mem_cgroup_node_reclaimable(struct mem_cgroup *memcg, in test_mem_cgroup_node_reclaimable()
1422 static void mem_cgroup_may_update_nodemask(struct mem_cgroup *memcg) in mem_cgroup_may_update_nodemask()
1459 int mem_cgroup_select_victim_node(struct mem_cgroup *memcg) in mem_cgroup_select_victim_node()
1479 int mem_cgroup_select_victim_node(struct mem_cgroup *memcg) in mem_cgroup_select_victim_node()
1485 static int mem_cgroup_soft_reclaim(struct mem_cgroup *root_memcg, in mem_cgroup_soft_reclaim()
1490 struct mem_cgroup *victim = NULL; in mem_cgroup_soft_reclaim()
1548 static bool mem_cgroup_oom_trylock(struct mem_cgroup *memcg) in mem_cgroup_oom_trylock()
1550 struct mem_cgroup *iter, *failed = NULL; in mem_cgroup_oom_trylock()
1587 static void mem_cgroup_oom_unlock(struct mem_cgroup *memcg) in mem_cgroup_oom_unlock()
1589 struct mem_cgroup *iter; in mem_cgroup_oom_unlock()
1598 static void mem_cgroup_mark_under_oom(struct mem_cgroup *memcg) in mem_cgroup_mark_under_oom()
1600 struct mem_cgroup *iter; in mem_cgroup_mark_under_oom()
1608 static void mem_cgroup_unmark_under_oom(struct mem_cgroup *memcg) in mem_cgroup_unmark_under_oom()
1610 struct mem_cgroup *iter; in mem_cgroup_unmark_under_oom()
1626 struct mem_cgroup *memcg;
1633 struct mem_cgroup *wake_memcg = (struct mem_cgroup *)arg; in memcg_oom_wake_function()
1634 struct mem_cgroup *oom_wait_memcg; in memcg_oom_wake_function()
1646 static void memcg_oom_recover(struct mem_cgroup *memcg) in memcg_oom_recover()
1667 static enum oom_status mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order) in mem_cgroup_oom()
1726 struct mem_cgroup *memcg = current->memcg_in_oom; in mem_cgroup_oom_synchronize()
1787 struct mem_cgroup *mem_cgroup_get_oom_group(struct task_struct *victim, in mem_cgroup_get_oom_group()
1788 struct mem_cgroup *oom_domain) in mem_cgroup_get_oom_group()
1790 struct mem_cgroup *oom_group = NULL; in mem_cgroup_get_oom_group()
1791 struct mem_cgroup *memcg; in mem_cgroup_get_oom_group()
1826 void mem_cgroup_print_oom_group(struct mem_cgroup *memcg) in mem_cgroup_print_oom_group()
1844 struct mem_cgroup *lock_page_memcg(struct page *page) in lock_page_memcg()
1846 struct mem_cgroup *memcg; in lock_page_memcg()
1865 memcg = page->mem_cgroup; in lock_page_memcg()
1873 if (memcg != page->mem_cgroup) { in lock_page_memcg()
1896 void __unlock_page_memcg(struct mem_cgroup *memcg) in __unlock_page_memcg()
1916 __unlock_page_memcg(page->mem_cgroup); in unlock_page_memcg()
1921 struct mem_cgroup *cached; /* this never be root cgroup */
1941 static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in consume_stock()
1968 struct mem_cgroup *old = stock->cached; in drain_stock()
2002 static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in refill_stock()
2026 static void drain_all_stock(struct mem_cgroup *root_memcg) in drain_all_stock()
2042 struct mem_cgroup *memcg; in drain_all_stock()
2066 struct mem_cgroup *memcg; in memcg_hotplug_cpu_dead()
2107 static void reclaim_high(struct mem_cgroup *memcg, in reclaim_high()
2121 struct mem_cgroup *memcg; in high_work_func()
2123 memcg = container_of(work, struct mem_cgroup, high_work); in high_work_func()
2134 struct mem_cgroup *memcg; in mem_cgroup_handle_over_high()
2145 static int try_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, in try_charge()
2150 struct mem_cgroup *mem_over_limit; in try_charge()
2318 static void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages) in cancel_charge()
2361 static void commit_charge(struct page *page, struct mem_cgroup *memcg, in commit_charge()
2366 VM_BUG_ON_PAGE(page->mem_cgroup, page); in commit_charge()
2389 page->mem_cgroup = memcg; in commit_charge()
2442 struct mem_cgroup *memcg;
2451 struct mem_cgroup *memcg = cw->memcg; in memcg_kmem_cache_create_func()
2463 static void __memcg_schedule_kmem_cache_create(struct mem_cgroup *memcg, in __memcg_schedule_kmem_cache_create()
2481 static void memcg_schedule_kmem_cache_create(struct mem_cgroup *memcg, in memcg_schedule_kmem_cache_create()
2525 struct mem_cgroup *memcg; in memcg_kmem_get_cache()
2584 struct mem_cgroup *memcg) in memcg_kmem_charge_memcg()
2600 page->mem_cgroup = memcg; in memcg_kmem_charge_memcg()
2615 struct mem_cgroup *memcg; in memcg_kmem_charge()
2637 struct mem_cgroup *memcg = page->mem_cgroup; in memcg_kmem_uncharge()
2652 page->mem_cgroup = NULL; in memcg_kmem_uncharge()
2676 head[i].mem_cgroup = head->mem_cgroup; in mem_cgroup_split_huge_fixup()
2678 __mod_memcg_state(head->mem_cgroup, MEMCG_RSS_HUGE, -HPAGE_PMD_NR); in mem_cgroup_split_huge_fixup()
2698 struct mem_cgroup *from, struct mem_cgroup *to) in mem_cgroup_move_swap_account()
2714 struct mem_cgroup *from, struct mem_cgroup *to) in mem_cgroup_move_swap_account()
2722 static int mem_cgroup_resize_max(struct mem_cgroup *memcg, in mem_cgroup_resize_max()
2865 static inline bool memcg_has_children(struct mem_cgroup *memcg) in memcg_has_children()
2880 static int mem_cgroup_force_empty(struct mem_cgroup *memcg) in mem_cgroup_force_empty()
2913 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_force_empty_write()
2930 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_hierarchy_write()
2931 struct mem_cgroup *parent_memcg = mem_cgroup_from_css(memcg->css.parent); in mem_cgroup_hierarchy_write()
2966 static void accumulate_memcg_tree(struct mem_cgroup *memcg, in accumulate_memcg_tree()
2969 struct mem_cgroup *mi; in accumulate_memcg_tree()
2987 static unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap) in mem_cgroup_usage()
2992 struct mem_cgroup *iter; in mem_cgroup_usage()
3020 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_read_u64()
3061 static int memcg_online_kmem(struct mem_cgroup *memcg) in memcg_online_kmem()
3089 static void memcg_offline_kmem(struct mem_cgroup *memcg) in memcg_offline_kmem()
3092 struct mem_cgroup *parent, *child; in memcg_offline_kmem()
3137 static void memcg_free_kmem(struct mem_cgroup *memcg) in memcg_free_kmem()
3150 static int memcg_online_kmem(struct mem_cgroup *memcg) in memcg_online_kmem()
3154 static void memcg_offline_kmem(struct mem_cgroup *memcg) in memcg_offline_kmem()
3157 static void memcg_free_kmem(struct mem_cgroup *memcg) in memcg_free_kmem()
3162 static int memcg_update_kmem_max(struct mem_cgroup *memcg, in memcg_update_kmem_max()
3173 static int memcg_update_tcp_max(struct mem_cgroup *memcg, unsigned long max) in memcg_update_tcp_max()
3215 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_write()
3256 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_reset()
3300 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_move_charge_write()
3339 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memcg_numa_stat_show()
3353 struct mem_cgroup *iter; in memcg_numa_stat_show()
3390 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memcg_stat_show()
3392 struct mem_cgroup *mi; in memcg_stat_show()
3479 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_read()
3487 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_write()
3500 static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap) in __mem_cgroup_threshold()
3551 static void mem_cgroup_threshold(struct mem_cgroup *memcg) in mem_cgroup_threshold()
3576 static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg) in mem_cgroup_oom_notify_cb()
3589 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg) in mem_cgroup_oom_notify()
3591 struct mem_cgroup *iter; in mem_cgroup_oom_notify()
3597 static int __mem_cgroup_usage_register_event(struct mem_cgroup *memcg, in __mem_cgroup_usage_register_event()
3679 static int mem_cgroup_usage_register_event(struct mem_cgroup *memcg, in mem_cgroup_usage_register_event()
3685 static int memsw_cgroup_usage_register_event(struct mem_cgroup *memcg, in memsw_cgroup_usage_register_event()
3691 static void __mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in __mem_cgroup_usage_unregister_event()
3770 static void mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in mem_cgroup_usage_unregister_event()
3776 static void memsw_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in memsw_cgroup_usage_unregister_event()
3782 static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg, in mem_cgroup_oom_register_event()
3804 static void mem_cgroup_oom_unregister_event(struct mem_cgroup *memcg, in mem_cgroup_oom_unregister_event()
3823 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(sf)); in mem_cgroup_oom_control_read()
3835 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_oom_control_write()
3850 static int memcg_wb_domain_init(struct mem_cgroup *memcg, gfp_t gfp) in memcg_wb_domain_init()
3855 static void memcg_wb_domain_exit(struct mem_cgroup *memcg) in memcg_wb_domain_exit()
3860 static void memcg_wb_domain_size_changed(struct mem_cgroup *memcg) in memcg_wb_domain_size_changed()
3867 struct mem_cgroup *memcg = mem_cgroup_from_css(wb->memcg_css); in mem_cgroup_wb_domain()
3897 struct mem_cgroup *memcg = mem_cgroup_from_css(wb->memcg_css); in mem_cgroup_wb_stats()
3898 struct mem_cgroup *parent; in mem_cgroup_wb_stats()
3919 static int memcg_wb_domain_init(struct mem_cgroup *memcg, gfp_t gfp) in memcg_wb_domain_init()
3924 static void memcg_wb_domain_exit(struct mem_cgroup *memcg) in memcg_wb_domain_exit()
3928 static void memcg_wb_domain_size_changed(struct mem_cgroup *memcg) in memcg_wb_domain_size_changed()
3956 struct mem_cgroup *memcg = event->memcg; in memcg_event_remove()
3980 struct mem_cgroup *memcg = event->memcg; in memcg_event_wake()
4030 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memcg_write_event_control()
4314 static void mem_cgroup_id_remove(struct mem_cgroup *memcg) in mem_cgroup_id_remove()
4322 static void mem_cgroup_id_get_many(struct mem_cgroup *memcg, unsigned int n) in mem_cgroup_id_get_many()
4328 static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n) in mem_cgroup_id_put_many()
4339 static inline void mem_cgroup_id_get(struct mem_cgroup *memcg) in mem_cgroup_id_get()
4344 static inline void mem_cgroup_id_put(struct mem_cgroup *memcg) in mem_cgroup_id_put()
4355 struct mem_cgroup *mem_cgroup_from_id(unsigned short id) in mem_cgroup_from_id()
4361 static int alloc_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node) in alloc_mem_cgroup_per_node_info()
4394 static void free_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node) in free_mem_cgroup_per_node_info()
4405 static void __mem_cgroup_free(struct mem_cgroup *memcg) in __mem_cgroup_free()
4415 static void mem_cgroup_free(struct mem_cgroup *memcg) in mem_cgroup_free()
4421 static struct mem_cgroup *mem_cgroup_alloc(void) in mem_cgroup_alloc()
4423 struct mem_cgroup *memcg; in mem_cgroup_alloc()
4427 size = sizeof(struct mem_cgroup); in mem_cgroup_alloc()
4477 struct mem_cgroup *parent = mem_cgroup_from_css(parent_css); in mem_cgroup_css_alloc()
4478 struct mem_cgroup *memcg; in mem_cgroup_css_alloc()
4535 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_online()
4555 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_offline()
4581 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_released()
4588 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_free()
4619 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_reset()
4782 struct mem_cgroup *from, in mem_cgroup_move_account()
4783 struct mem_cgroup *to) in mem_cgroup_move_account()
4803 if (page->mem_cgroup != from) in mem_cgroup_move_account()
4841 page->mem_cgroup = to; in mem_cgroup_move_account()
4906 if (page->mem_cgroup == mc.from) { in get_mctgt_type()
4951 if (page->mem_cgroup == mc.from) { in get_mctgt_type_thp()
5032 struct mem_cgroup *from = mc.from; in __mem_cgroup_clear_mc()
5033 struct mem_cgroup *to = mc.to; in __mem_cgroup_clear_mc()
5095 struct mem_cgroup *memcg = NULL; /* unneeded init to make gcc happy */ in mem_cgroup_can_attach()
5096 struct mem_cgroup *from; in mem_cgroup_can_attach()
5359 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memory_current_read()
5366 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_min_show()
5380 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_min_write()
5396 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_low_show()
5410 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_low_write()
5426 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_high_show()
5440 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_high_write()
5463 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_max_show()
5477 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_max_write()
5525 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_events_show()
5543 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_stat_show()
5620 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in memory_oom_group_show()
5630 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_oom_group_write()
5682 .file_offset = offsetof(struct mem_cgroup, events_file),
5785 enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root, in mem_cgroup_protected()
5786 struct mem_cgroup *memcg) in mem_cgroup_protected()
5788 struct mem_cgroup *parent; in mem_cgroup_protected()
5875 gfp_t gfp_mask, struct mem_cgroup **memcgp, in mem_cgroup_try_charge()
5878 struct mem_cgroup *memcg = NULL; in mem_cgroup_try_charge()
5894 if (compound_head(page)->mem_cgroup) in mem_cgroup_try_charge()
5921 gfp_t gfp_mask, struct mem_cgroup **memcgp, in mem_cgroup_try_charge_delay()
5924 struct mem_cgroup *memcg; in mem_cgroup_try_charge_delay()
5950 void mem_cgroup_commit_charge(struct page *page, struct mem_cgroup *memcg, in mem_cgroup_commit_charge()
5994 void mem_cgroup_cancel_charge(struct page *page, struct mem_cgroup *memcg, in mem_cgroup_cancel_charge()
6013 struct mem_cgroup *memcg;
6062 if (!page->mem_cgroup) in uncharge_page()
6071 if (ug->memcg != page->mem_cgroup) { in uncharge_page()
6076 ug->memcg = page->mem_cgroup; in uncharge_page()
6100 page->mem_cgroup = NULL; in uncharge_page()
6143 if (!page->mem_cgroup) in mem_cgroup_uncharge()
6179 struct mem_cgroup *memcg; in mem_cgroup_migrate()
6194 if (newpage->mem_cgroup) in mem_cgroup_migrate()
6198 memcg = oldpage->mem_cgroup; in mem_cgroup_migrate()
6224 struct mem_cgroup *memcg; in mem_cgroup_sk_alloc()
6269 bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in mem_cgroup_charge_skmem()
6303 void mem_cgroup_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in mem_cgroup_uncharge_skmem()
6378 static struct mem_cgroup *mem_cgroup_id_get_online(struct mem_cgroup *memcg) in mem_cgroup_id_get_online()
6405 struct mem_cgroup *memcg, *swap_memcg; in mem_cgroup_swapout()
6415 memcg = page->mem_cgroup; in mem_cgroup_swapout()
6436 page->mem_cgroup = NULL; in mem_cgroup_swapout()
6475 struct mem_cgroup *memcg; in mem_cgroup_try_charge_swap()
6481 memcg = page->mem_cgroup; in mem_cgroup_try_charge_swap()
6519 struct mem_cgroup *memcg; in mem_cgroup_uncharge_swap()
6541 long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg) in mem_cgroup_get_nr_swap_pages()
6556 struct mem_cgroup *memcg; in mem_cgroup_swap_full()
6565 memcg = page->mem_cgroup; in mem_cgroup_swap_full()
6596 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in swap_current_read()
6603 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in swap_max_show()
6617 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in swap_max_write()
6633 struct mem_cgroup *memcg = mem_cgroup_from_css(seq_css(m)); in swap_events_show()
6658 .file_offset = offsetof(struct mem_cgroup, swap_events_file),