/kernel/linux/linux-5.10/include/linux/ |
H A D | memcg_policy.h | 13 struct scan_control; 22 struct mem_cgroup *memcg, struct scan_control *sc, 24 bool shrink_node_hyperhold(struct pglist_data *pgdat, struct scan_control *sc);
|
H A D | swap.h | 383 struct scan_control; 387 struct scan_control *sc); 389 extern bool cgroup_reclaim(struct scan_control *sc); 393 extern bool writeback_throttling_sane(struct scan_control *sc); 396 struct scan_control *sc);
|
/kernel/linux/linux-5.10/mm/ |
H A D | vmscan.c | 153 bool cgroup_reclaim(struct scan_control *sc) in cgroup_reclaim() 160 * @sc: scan_control in question 171 bool writeback_throttling_sane(struct scan_control *sc) in writeback_throttling_sane() 191 bool cgroup_reclaim(struct scan_control *sc) in cgroup_reclaim() 196 bool writeback_throttling_sane(struct scan_control *sc) in writeback_throttling_sane() 923 struct scan_control *sc) in page_check_references() 1014 struct scan_control *sc, in shrink_page_list() 1442 struct scan_control sc = { in reclaim_clean_pages_from_list() 1588 * @sc: The scan_control struct for this reclaim session 1595 unsigned long *nr_scanned, struct scan_control *s in isolate_lru_pages() [all...] |
H A D | memcg_reclaim.c | 16 static inline bool is_swap_not_allowed(struct scan_control *sc, int swappiness) in is_swap_not_allowed() 32 struct scan_control *sc, unsigned long *nr, in get_scan_count_hyperhold() 187 struct mem_cgroup *memcg, struct scan_control *sc, in shrink_anon_memcg() 234 struct scan_control *sc, unsigned long *nr) in shrink_anon() 314 struct scan_control *sc, unsigned long *nr) in shrink_file() 341 bool shrink_node_hyperhold(struct pglist_data *pgdat, struct scan_control *sc) in shrink_node_hyperhold()
|
H A D | internal.h | 51 struct scan_control { struct 236 struct scan_control *sc, struct reclaim_stat *stat, bool ignore_references); 238 struct list_head *dst, unsigned long *nr_scanned, struct scan_control *sc, 242 struct scan_control *sc, enum lru_list lru); 244 struct scan_control *sc, enum lru_list lru); 245 extern void shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc);
|
H A D | zswapd.c | 480 struct lruvec *lruvec, struct scan_control *sc, enum lru_list lru) in zswapd_shrink_active_list() 533 struct scan_control *sc) in zswapd_shrink_list() 561 struct mem_cgroup *memcg, struct scan_control *sc, unsigned long *nr) in zswapd_shrink_anon_memcg() 587 static bool zswapd_shrink_anon(pg_data_t *pgdat, struct scan_control *sc) in zswapd_shrink_anon() 663 struct scan_control sc = { in zswapd_shrink_node()
|
H A D | memcg_control.c | 214 struct scan_control sc = { in reclaim_all_anon_memcg() 362 struct scan_control *sc, struct mem_cgroup *memcg) in purgeable_memcg_node() 388 struct scan_control sc = { in memcg_force_shrink_purgeable_bysize()
|
/kernel/linux/linux-6.6/mm/ |
H A D | memcg_reclaim.c | 18 static inline bool is_swap_not_allowed(struct scan_control *sc, int swappiness) in is_swap_not_allowed() 34 struct scan_control *sc, unsigned long *nr, in get_scan_count_hyperhold() 189 struct mem_cgroup *memcg, struct scan_control *sc, in shrink_anon_memcg() 236 struct scan_control *sc, unsigned long *nr) in shrink_anon() 316 struct scan_control *sc, unsigned long *nr) in shrink_file() 340 bool shrink_node_hyperhold(struct pglist_data *pgdat, struct scan_control *sc) in shrink_node_hyperhold()
|
H A D | vmscan.c | 346 bool cgroup_reclaim(struct scan_control *sc) in cgroup_reclaim() 355 static bool root_reclaim(struct scan_control *sc) in root_reclaim() 362 * @sc: scan_control in question 373 bool writeback_throttling_sane(struct scan_control *sc) in writeback_throttling_sane() 405 bool cgroup_reclaim(struct scan_control *sc) in cgroup_reclaim() 410 static bool root_reclaim(struct scan_control *sc) in root_reclaim() 415 bool writeback_throttling_sane(struct scan_control *sc) in writeback_throttling_sane() 435 * scan_control->nr_reclaimed. 437 static void flush_reclaim_state(struct scan_control *sc) in flush_reclaim_state() 506 static bool can_demote(int nid, struct scan_control *s [all...] |
H A D | zswapd.c | 481 struct lruvec *lruvec, struct scan_control *sc, enum lru_list lru) in zswapd_shrink_active_list() 534 struct scan_control *sc) in zswapd_shrink_list() 562 struct mem_cgroup *memcg, struct scan_control *sc, unsigned long *nr) in zswapd_shrink_anon_memcg() 588 static bool zswapd_shrink_anon(pg_data_t *pgdat, struct scan_control *sc) in zswapd_shrink_anon() 664 struct scan_control sc = { in zswapd_shrink_node()
|
H A D | internal.h | 53 struct scan_control { struct 337 struct scan_control *sc, struct reclaim_stat *stat, bool ignore_references); 339 struct list_head *dst, unsigned long *nr_scanned, struct scan_control *sc, 343 struct scan_control *sc, enum lru_list lru); 345 struct scan_control *sc, enum lru_list lru); 346 extern void shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc);
|
H A D | memcg_control.c | 214 struct scan_control sc = { in reclaim_all_anon_memcg() 362 struct scan_control *sc, struct mem_cgroup *memcg) in purgeable_memcg_node() 388 struct scan_control sc = { in memcg_force_shrink_purgeable_bysize()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | swap.h | 429 struct scan_control; 433 struct scan_control *sc); 435 extern bool cgroup_reclaim(struct scan_control *sc); 439 extern bool writeback_throttling_sane(struct scan_control *sc); 442 struct scan_control *sc);
|