Lines Matching defs:memcg

138 	struct mem_cgroup *memcg;  member
240 struct vmpressure *memcg_to_vmpressure(struct mem_cgroup *memcg) in memcg_to_vmpressure()
324 static void memcg_reparent_objcgs(struct mem_cgroup *memcg, in memcg_reparent_objcgs()
372 struct mem_cgroup *memcg = folio_memcg(folio); in mem_cgroup_css_from_folio() local
395 struct mem_cgroup *memcg; in page_cgroup_ino() local
468 static unsigned long soft_limit_excess(struct mem_cgroup *memcg) in soft_limit_excess()
480 static void mem_cgroup_update_tree(struct mem_cgroup *memcg, int nid) in mem_cgroup_update_tree()
523 static void mem_cgroup_remove_from_trees(struct mem_cgroup *memcg) in mem_cgroup_remove_from_trees()
619 static inline void memcg_rstat_updated(struct mem_cgroup *memcg, int val) in memcg_rstat_updated()
754 unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx) in memcg_page_state()
770 void __mod_memcg_state(struct mem_cgroup *memcg, int idx, int val) in __mod_memcg_state()
780 static unsigned long memcg_page_state_local(struct mem_cgroup *memcg, int idx) in memcg_page_state_local()
795 struct mem_cgroup *memcg; in __mod_memcg_lruvec_state() local
856 struct mem_cgroup *memcg; in __mod_lruvec_page_state() local
878 struct mem_cgroup *memcg; in __mod_lruvec_kmem_state() local
905 void __count_memcg_events(struct mem_cgroup *memcg, enum vm_event_item idx, in __count_memcg_events()
919 static unsigned long memcg_events(struct mem_cgroup *memcg, int event) in memcg_events()
928 static unsigned long memcg_events_local(struct mem_cgroup *memcg, int event) in memcg_events_local()
938 static void mem_cgroup_charge_statistics(struct mem_cgroup *memcg, in mem_cgroup_charge_statistics()
952 static bool mem_cgroup_event_ratelimit(struct mem_cgroup *memcg, in mem_cgroup_event_ratelimit()
981 static void memcg_check_events(struct mem_cgroup *memcg, int nid) in memcg_check_events()
1034 struct mem_cgroup *memcg; in get_mem_cgroup_from_mm() local
1107 struct mem_cgroup *memcg = NULL; in mem_cgroup_iter() local
1232 struct mem_cgroup *memcg = dead_memcg; in invalidate_reclaim_iterators() local
1264 void mem_cgroup_scan_tasks(struct mem_cgroup *memcg, in mem_cgroup_scan_tasks()
1290 struct mem_cgroup *memcg; in lruvec_memcg_debug() local
1419 static unsigned long mem_cgroup_margin(struct mem_cgroup *memcg) in mem_cgroup_margin()
1449 static bool mem_cgroup_under_move(struct mem_cgroup *memcg) in mem_cgroup_under_move()
1471 static bool mem_cgroup_wait_acct_move(struct mem_cgroup *memcg) in mem_cgroup_wait_acct_move()
1559 static inline unsigned long memcg_page_state_output(struct mem_cgroup *memcg, in memcg_page_state_output()
1565 static void memcg_stat_format(struct mem_cgroup *memcg, struct seq_buf *s) in memcg_stat_format()
1620 static void memory_stat_format(struct mem_cgroup *memcg, struct seq_buf *s) in memory_stat_format()
1638 void mem_cgroup_print_oom_context(struct mem_cgroup *memcg, struct task_struct *p) in mem_cgroup_print_oom_context()
1659 void mem_cgroup_print_oom_meminfo(struct mem_cgroup *memcg) in mem_cgroup_print_oom_meminfo()
1694 unsigned long mem_cgroup_get_max(struct mem_cgroup *memcg) in mem_cgroup_get_max()
1713 unsigned long mem_cgroup_size(struct mem_cgroup *memcg) in mem_cgroup_size()
1718 static bool mem_cgroup_out_of_memory(struct mem_cgroup *memcg, gfp_t gfp_mask, in mem_cgroup_out_of_memory()
1809 static bool mem_cgroup_oom_trylock(struct mem_cgroup *memcg) in mem_cgroup_oom_trylock()
1848 static void mem_cgroup_oom_unlock(struct mem_cgroup *memcg) in mem_cgroup_oom_unlock()
1859 static void mem_cgroup_mark_under_oom(struct mem_cgroup *memcg) in mem_cgroup_mark_under_oom()
1869 static void mem_cgroup_unmark_under_oom(struct mem_cgroup *memcg) in mem_cgroup_unmark_under_oom()
1887 struct mem_cgroup *memcg; member
1907 static void memcg_oom_recover(struct mem_cgroup *memcg) in memcg_oom_recover()
1925 static bool mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order) in mem_cgroup_oom()
1997 struct mem_cgroup *memcg = current->memcg_in_oom; in mem_cgroup_oom_synchronize() local
2048 struct mem_cgroup *memcg; in mem_cgroup_get_oom_group() local
2091 void mem_cgroup_print_oom_group(struct mem_cgroup *memcg) in mem_cgroup_print_oom_group()
2110 struct mem_cgroup *memcg; in folio_memcg_lock() local
2152 static void __folio_memcg_unlock(struct mem_cgroup *memcg) in __folio_memcg_unlock()
2217 static void memcg_account_kmem(struct mem_cgroup *memcg, int nr_pages) in memcg_account_kmem()
2233 static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in consume_stock()
2303 static void __refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in __refill_stock()
2319 static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in refill_stock()
2349 struct mem_cgroup *memcg; in drain_all_stock() local
2383 static unsigned long reclaim_high(struct mem_cgroup *memcg, in reclaim_high()
2411 struct mem_cgroup *memcg; in high_work_func() local
2488 static u64 mem_find_max_overage(struct mem_cgroup *memcg) in mem_find_max_overage()
2502 static u64 swap_find_max_overage(struct mem_cgroup *memcg) in swap_find_max_overage()
2522 static unsigned long calculate_high_delay(struct mem_cgroup *memcg, in calculate_high_delay()
2565 struct mem_cgroup *memcg; in mem_cgroup_handle_over_high() local
2637 static int try_charge_memcg(struct mem_cgroup *memcg, gfp_t gfp_mask, in try_charge_memcg()
2827 static inline int try_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, in try_charge()
2836 static inline void cancel_charge(struct mem_cgroup *memcg, unsigned int nr_pages) in cancel_charge()
2846 static void commit_charge(struct folio *folio, struct mem_cgroup *memcg) in commit_charge()
2877 struct mem_cgroup *memcg; in mod_objcg_mlstate() local
3004 static struct obj_cgroup *__get_obj_cgroup_from_memcg(struct mem_cgroup *memcg) in __get_obj_cgroup_from_memcg()
3020 struct mem_cgroup *memcg; in get_obj_cgroup_from_current() local
3046 struct mem_cgroup *memcg; in get_obj_cgroup_from_folio() local
3059 static void memcg_account_kmem(struct mem_cgroup *memcg, int nr_pages) in memcg_account_kmem()
3079 struct mem_cgroup *memcg; in obj_cgroup_uncharge_pages() local
3100 struct mem_cgroup *memcg; in obj_cgroup_charge_pages() local
3259 struct mem_cgroup *memcg; in drain_obj_stock() local
3314 struct mem_cgroup *memcg; in obj_stock_flush_required() local
3416 struct mem_cgroup *memcg = folio_memcg(folio); in split_page_memcg() local
3471 static int mem_cgroup_resize_max(struct mem_cgroup *memcg, in mem_cgroup_resize_max()
3612 static int mem_cgroup_force_empty(struct mem_cgroup *memcg) in mem_cgroup_force_empty()
3638 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_force_empty_write() local
3664 static unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap) in mem_cgroup_usage()
3697 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_read_u64() local
3748 static int memcg_online_kmem(struct mem_cgroup *memcg) in memcg_online_kmem()
3772 static void memcg_offline_kmem(struct mem_cgroup *memcg) in memcg_offline_kmem()
3797 static int memcg_online_kmem(struct mem_cgroup *memcg) in memcg_online_kmem()
3801 static void memcg_offline_kmem(struct mem_cgroup *memcg) in memcg_offline_kmem()
3806 static int memcg_update_tcp_max(struct mem_cgroup *memcg, unsigned long max) in memcg_update_tcp_max()
3848 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_write() local
3897 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in mem_cgroup_reset() local
3941 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_move_charge_write() local
3973 static unsigned long mem_cgroup_node_nr_lru_pages(struct mem_cgroup *memcg, in mem_cgroup_node_nr_lru_pages()
3993 static unsigned long mem_cgroup_nr_lru_pages(struct mem_cgroup *memcg, in mem_cgroup_nr_lru_pages()
4026 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memcg_numa_stat_show() local
4095 static void memcg1_stat_format(struct mem_cgroup *memcg, struct seq_buf *s) in memcg1_stat_format()
4178 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_read() local
4186 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_swappiness_write() local
4199 static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap) in __mem_cgroup_threshold()
4250 static void mem_cgroup_threshold(struct mem_cgroup *memcg) in mem_cgroup_threshold()
4275 static int mem_cgroup_oom_notify_cb(struct mem_cgroup *memcg) in mem_cgroup_oom_notify_cb()
4288 static void mem_cgroup_oom_notify(struct mem_cgroup *memcg) in mem_cgroup_oom_notify()
4296 static int __mem_cgroup_usage_register_event(struct mem_cgroup *memcg, in __mem_cgroup_usage_register_event()
4376 static int mem_cgroup_usage_register_event(struct mem_cgroup *memcg, in mem_cgroup_usage_register_event()
4382 static int memsw_cgroup_usage_register_event(struct mem_cgroup *memcg, in memsw_cgroup_usage_register_event()
4388 static void __mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in __mem_cgroup_usage_unregister_event()
4473 static void mem_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in mem_cgroup_usage_unregister_event()
4479 static void memsw_cgroup_usage_unregister_event(struct mem_cgroup *memcg, in memsw_cgroup_usage_unregister_event()
4485 static int mem_cgroup_oom_register_event(struct mem_cgroup *memcg, in mem_cgroup_oom_register_event()
4507 static void mem_cgroup_oom_unregister_event(struct mem_cgroup *memcg, in mem_cgroup_oom_unregister_event()
4526 struct mem_cgroup *memcg = mem_cgroup_from_seq(sf); in mem_cgroup_oom_control_read() local
4538 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_oom_control_write() local
4555 static int memcg_wb_domain_init(struct mem_cgroup *memcg, gfp_t gfp) in memcg_wb_domain_init()
4560 static void memcg_wb_domain_exit(struct mem_cgroup *memcg) in memcg_wb_domain_exit()
4565 static void memcg_wb_domain_size_changed(struct mem_cgroup *memcg) in memcg_wb_domain_size_changed()
4572 struct mem_cgroup *memcg = mem_cgroup_from_css(wb->memcg_css); in mem_cgroup_wb_domain() local
4602 struct mem_cgroup *memcg = mem_cgroup_from_css(wb->memcg_css); in mem_cgroup_wb_stats() local
4670 struct mem_cgroup *memcg = folio_memcg(folio); in mem_cgroup_track_foreign_dirty_slowpath() local
4722 struct mem_cgroup *memcg = mem_cgroup_from_css(wb->memcg_css); in mem_cgroup_flush_foreign() local
4749 static int memcg_wb_domain_init(struct mem_cgroup *memcg, gfp_t gfp) in memcg_wb_domain_init()
4754 static void memcg_wb_domain_exit(struct mem_cgroup *memcg) in memcg_wb_domain_exit()
4758 static void memcg_wb_domain_size_changed(struct mem_cgroup *memcg) in memcg_wb_domain_size_changed()
4786 struct mem_cgroup *memcg = event->memcg; in memcg_event_remove() local
4810 struct mem_cgroup *memcg = event->memcg; in memcg_event_wake() local
4860 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memcg_write_event_control() local
5170 static void mem_cgroup_id_remove(struct mem_cgroup *memcg) in mem_cgroup_id_remove()
5178 static void __maybe_unused mem_cgroup_id_get_many(struct mem_cgroup *memcg, in mem_cgroup_id_get_many()
5184 static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n) in mem_cgroup_id_put_many()
5194 static inline void mem_cgroup_id_put(struct mem_cgroup *memcg) in mem_cgroup_id_put()
5216 struct mem_cgroup *memcg; in mem_cgroup_get_from_ino() local
5234 static int alloc_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node) in alloc_mem_cgroup_per_node_info()
5256 static void free_mem_cgroup_per_node_info(struct mem_cgroup *memcg, int node) in free_mem_cgroup_per_node_info()
5267 static void __mem_cgroup_free(struct mem_cgroup *memcg) in __mem_cgroup_free()
5278 static void mem_cgroup_free(struct mem_cgroup *memcg) in mem_cgroup_free()
5287 struct mem_cgroup *memcg; in mem_cgroup_alloc() local
5354 struct mem_cgroup *memcg, *old_memcg; in mem_cgroup_css_alloc() local
5400 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_online() local
5444 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_offline() local
5474 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_released() local
5482 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_free() local
5522 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_reset() local
5538 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in mem_cgroup_css_rstat_flush() local
6134 struct mem_cgroup *memcg = NULL; /* unneeded init to make gcc happy */ in mem_cgroup_can_attach() local
6417 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memory_current_read() local
6425 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in memory_peak_read() local
6439 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_min_write() local
6462 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_low_write() local
6485 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_high_write() local
6534 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_max_write() local
6592 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_events_show() local
6600 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_events_local_show() local
6608 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_stat_show() local
6631 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_numa_stat_show() local
6660 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in memory_oom_group_show() local
6670 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_oom_group_write() local
6692 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in memory_reclaim() local
6944 struct mem_cgroup *memcg) in mem_cgroup_calculate_protection()
6990 static int charge_memcg(struct folio *folio, struct mem_cgroup *memcg, in charge_memcg()
7013 struct mem_cgroup *memcg; in __mem_cgroup_charge() local
7038 struct mem_cgroup *memcg; in mem_cgroup_swapin_charge_folio() local
7092 struct mem_cgroup *memcg; member
7130 struct mem_cgroup *memcg; in uncharge_folio() local
7230 struct mem_cgroup *memcg; in mem_cgroup_migrate() local
7272 struct mem_cgroup *memcg; in mem_cgroup_sk_alloc() local
7308 bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages, in mem_cgroup_charge_skmem()
7339 void mem_cgroup_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in mem_cgroup_uncharge_skmem()
7412 static struct mem_cgroup *mem_cgroup_id_get_online(struct mem_cgroup *memcg) in mem_cgroup_id_get_online()
7439 struct mem_cgroup *memcg, *swap_memcg; in mem_cgroup_swapout() local
7511 struct mem_cgroup *memcg; in __mem_cgroup_try_charge_swap() local
7555 struct mem_cgroup *memcg; in __mem_cgroup_uncharge_swap() local
7574 long mem_cgroup_get_nr_swap_pages(struct mem_cgroup *memcg) in mem_cgroup_get_nr_swap_pages()
7589 struct mem_cgroup *memcg; in mem_cgroup_swap_full() local
7625 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in swap_current_read() local
7633 struct mem_cgroup *memcg = mem_cgroup_from_css(css); in swap_peak_read() local
7647 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in swap_high_write() local
7670 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in swap_max_write() local
7686 struct mem_cgroup *memcg = mem_cgroup_from_seq(m); in swap_events_show() local
7772 struct mem_cgroup *memcg, *original_memcg; in obj_cgroup_may_zswap() local
7812 struct mem_cgroup *memcg; in obj_cgroup_charge_zswap() local
7839 struct mem_cgroup *memcg; in obj_cgroup_uncharge_zswap() local
7869 struct mem_cgroup *memcg = mem_cgroup_from_css(of_css(of)); in zswap_max_write() local