Lines Matching refs:pgdat
1082 static bool skip_throttle_noprogress(pg_data_t *pgdat) in skip_throttle_noprogress() argument
1091 if (pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES) in skip_throttle_noprogress()
1100 struct zone *zone = pgdat->node_zones + i; in skip_throttle_noprogress()
1115 void reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason) in reclaim_throttle() argument
1117 wait_queue_head_t *wqh = &pgdat->reclaim_wait[reason]; in reclaim_throttle()
1146 if (atomic_inc_return(&pgdat->nr_writeback_throttled) == 1) { in reclaim_throttle()
1147 WRITE_ONCE(pgdat->nr_reclaim_start, in reclaim_throttle()
1148 node_page_state(pgdat, NR_THROTTLED_WRITTEN)); in reclaim_throttle()
1155 if (skip_throttle_noprogress(pgdat)) { in reclaim_throttle()
1177 atomic_dec(&pgdat->nr_writeback_throttled); in reclaim_throttle()
1179 trace_mm_vmscan_throttled(pgdat->node_id, jiffies_to_usecs(timeout), in reclaim_throttle()
1189 void __acct_reclaim_writeback(pg_data_t *pgdat, struct folio *folio, in __acct_reclaim_writeback() argument
1203 nr_written = node_page_state(pgdat, NR_THROTTLED_WRITTEN) - in __acct_reclaim_writeback()
1204 READ_ONCE(pgdat->nr_reclaim_start); in __acct_reclaim_writeback()
1207 wake_up(&pgdat->reclaim_wait[VMSCAN_THROTTLE_WRITEBACK]); in __acct_reclaim_writeback()
1571 struct pglist_data *pgdat) in demote_folio_list() argument
1573 int target_nid = next_demotion_node(pgdat->node_id); in demote_folio_list()
1595 node_get_allowed_targets(pgdat, &allowed_mask); in demote_folio_list()
1630 struct pglist_data *pgdat, struct scan_control *sc, in shrink_folio_list() argument
1643 do_demote_pass = can_demote(pgdat->node_id, sc); in shrink_folio_list()
1748 test_bit(PGDAT_WRITEBACK, &pgdat->flags)) { in shrink_folio_list()
1902 !test_bit(PGDAT_DIRTY, &pgdat->flags))) { in shrink_folio_list()
2069 nr_reclaimed += demote_folio_list(&demote_folios, pgdat); in shrink_folio_list()
2322 static int too_many_isolated(struct pglist_data *pgdat, int file, in too_many_isolated() argument
2335 inactive = node_page_state(pgdat, NR_INACTIVE_FILE); in too_many_isolated()
2336 isolated = node_page_state(pgdat, NR_ISOLATED_FILE); in too_many_isolated()
2338 inactive = node_page_state(pgdat, NR_INACTIVE_ANON); in too_many_isolated()
2339 isolated = node_page_state(pgdat, NR_ISOLATED_ANON); in too_many_isolated()
2354 wake_throttle_isolated(pgdat); in too_many_isolated()
2454 struct pglist_data *pgdat = lruvec_pgdat(lruvec); in shrink_inactive_list() local
2457 while (unlikely(too_many_isolated(pgdat, file, sc))) { in shrink_inactive_list()
2463 reclaim_throttle(pgdat, VMSCAN_THROTTLE_ISOLATED); in shrink_inactive_list()
2477 __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, nr_taken); in shrink_inactive_list()
2489 nr_reclaimed = shrink_folio_list(&folio_list, pgdat, sc, &stat, false); in shrink_inactive_list()
2494 __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, -nr_taken); in shrink_inactive_list()
2529 reclaim_throttle(pgdat, VMSCAN_THROTTLE_WRITEBACK); in shrink_inactive_list()
2541 trace_mm_vmscan_lru_shrink_inactive(pgdat->node_id, in shrink_inactive_list()
2577 struct pglist_data *pgdat = lruvec_pgdat(lruvec); in shrink_active_list() local
2586 __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, nr_taken); in shrink_active_list()
2651 __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, -nr_taken); in shrink_active_list()
2656 trace_mm_vmscan_lru_shrink_active(pgdat->node_id, nr_taken, nr_activate, in shrink_active_list()
2661 struct pglist_data *pgdat) in reclaim_folio_list() argument
2674 nr_reclaimed = shrink_folio_list(folio_list, pgdat, &sc, &dummy_stat, false); in reclaim_folio_list()
2785 static void prepare_scan_count(pg_data_t *pgdat, struct scan_control *sc) in prepare_scan_count() argument
2793 target_lruvec = mem_cgroup_lruvec(sc->target_mem_cgroup, pgdat); in prepare_scan_count()
2864 free = sum_zone_node_page_state(pgdat->node_id, NR_FREE_PAGES); in prepare_scan_count()
2865 file = node_page_state(pgdat, NR_ACTIVE_FILE) + in prepare_scan_count()
2866 node_page_state(pgdat, NR_INACTIVE_FILE); in prepare_scan_count()
2869 struct zone *zone = &pgdat->node_zones[z]; in prepare_scan_count()
2882 anon = node_page_state(pgdat, NR_INACTIVE_ANON); in prepare_scan_count()
2901 struct pglist_data *pgdat = lruvec_pgdat(lruvec); in get_scan_count() local
2912 if (!sc->may_swap || !can_reclaim_anon_pages(memcg, pgdat->node_id, sc)) { in get_scan_count()
3099 static bool can_age_anon_pages(struct pglist_data *pgdat, in can_age_anon_pages() argument
3107 return can_demote(pgdat->node_id, sc); in can_age_anon_pages()
3142 struct pglist_data *pgdat = NODE_DATA(nid); in get_lruvec() local
3149 if (!lruvec->pgdat) in get_lruvec()
3150 lruvec->pgdat = pgdat; in get_lruvec()
3157 return pgdat ? &pgdat->__lruvec : NULL; in get_lruvec()
3163 struct pglist_data *pgdat = lruvec_pgdat(lruvec); in get_swappiness() local
3165 if (!can_demote(pgdat->node_id, sc) && in get_swappiness()
3424 struct pglist_data *pgdat = lruvec_pgdat(walk->lruvec); in should_skip_mm() local
3425 int key = pgdat->node_id % BITS_PER_TYPE(mm->lru_gen.bitmap); in should_skip_mm()
3845 struct pglist_data *pgdat, bool can_swap) in get_pfn_folio() argument
3850 if (pfn < pgdat->node_start_pfn || pfn >= pgdat_end_pfn(pgdat)) in get_pfn_folio()
3854 if (folio_nid(folio) != pgdat->node_id) in get_pfn_folio()
3886 struct pglist_data *pgdat = lruvec_pgdat(walk->lruvec); in walk_pte_range() local
3915 folio = get_pfn_folio(pfn, memcg, pgdat, walk->can_swap); in walk_pte_range()
3955 struct pglist_data *pgdat = lruvec_pgdat(walk->lruvec); in walk_pmd_range_locked() local
3996 folio = get_pfn_folio(pfn, memcg, pgdat, walk->can_swap); in walk_pmd_range_locked()
4069 struct pglist_data *pgdat = lruvec_pgdat(walk->lruvec); in walk_pmd_range() local
4079 if (pfn < pgdat->node_start_pfn || pfn >= pgdat_end_pfn(pgdat)) in walk_pmd_range()
4200 static struct lru_gen_mm_walk *set_mm_walk(struct pglist_data *pgdat) in set_mm_walk() argument
4204 if (pgdat && current_is_kswapd()) { in set_mm_walk()
4207 walk = &pgdat->mm_walk; in set_mm_walk()
4208 } else if (!pgdat && !walk) { in set_mm_walk()
4527 static void lru_gen_age_node(struct pglist_data *pgdat, struct scan_control *sc) in lru_gen_age_node() argument
4548 set_mm_walk(pgdat); in lru_gen_age_node()
4552 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat); in lru_gen_age_node()
4601 struct pglist_data *pgdat = folio_pgdat(folio); in lru_gen_look_around() local
4602 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat); in lru_gen_look_around()
4644 folio = get_pfn_folio(pfn, memcg, pgdat, !walk || walk->can_swap); in lru_gen_look_around()
4994 struct pglist_data *pgdat = lruvec_pgdat(lruvec); in evict_folios() local
5010 reclaimed = shrink_folio_list(&list, pgdat, sc, &stat, false); in evict_folios()
5867 static void lru_gen_age_node(struct pglist_data *pgdat, struct scan_control *sc) in lru_gen_age_node() argument
6013 static inline bool should_continue_reclaim(struct pglist_data *pgdat, in should_continue_reclaim() argument
6040 struct zone *zone = &pgdat->node_zones[z]; in should_continue_reclaim()
6059 inactive_lru_pages = node_page_state(pgdat, NR_INACTIVE_FILE); in should_continue_reclaim()
6060 if (can_reclaim_anon_pages(NULL, pgdat->node_id, sc)) in should_continue_reclaim()
6061 inactive_lru_pages += node_page_state(pgdat, NR_INACTIVE_ANON); in should_continue_reclaim()
6066 static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc) in shrink_node_memcgs() argument
6073 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat); in shrink_node_memcgs()
6112 shrink_slab(sc->gfp_mask, pgdat->node_id, memcg, in shrink_node_memcgs()
6124 static void shrink_node(pg_data_t *pgdat, struct scan_control *sc) in shrink_node() argument
6131 target_lruvec = mem_cgroup_lruvec(sc->target_mem_cgroup, pgdat); in shrink_node()
6139 prepare_scan_count(pgdat, sc); in shrink_node()
6141 shrink_node_memcgs(pgdat, sc); in shrink_node()
6176 set_bit(PGDAT_WRITEBACK, &pgdat->flags); in shrink_node()
6180 set_bit(PGDAT_DIRTY, &pgdat->flags); in shrink_node()
6190 reclaim_throttle(pgdat, VMSCAN_THROTTLE_WRITEBACK); in shrink_node()
6214 reclaim_throttle(pgdat, VMSCAN_THROTTLE_CONGESTED); in shrink_node()
6216 if (should_continue_reclaim(pgdat, sc->nr_reclaimed - nr_reclaimed, in shrink_node()
6227 pgdat->kswapd_failures = 0; in shrink_node()
6262 static void consider_reclaim_throttle(pg_data_t *pgdat, struct scan_control *sc) in consider_reclaim_throttle() argument
6271 wqh = &pgdat->reclaim_wait[VMSCAN_THROTTLE_NOPROGRESS]; in consider_reclaim_throttle()
6289 reclaim_throttle(pgdat, VMSCAN_THROTTLE_NOPROGRESS); in consider_reclaim_throttle()
6392 static void snapshot_refaults(struct mem_cgroup *target_memcg, pg_data_t *pgdat) in snapshot_refaults() argument
6400 target_lruvec = mem_cgroup_lruvec(target_memcg, pgdat); in snapshot_refaults()
6512 static bool allow_direct_reclaim(pg_data_t *pgdat) in allow_direct_reclaim() argument
6520 if (pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES) in allow_direct_reclaim()
6524 zone = &pgdat->node_zones[i]; in allow_direct_reclaim()
6542 if (!wmark_ok && waitqueue_active(&pgdat->kswapd_wait)) { in allow_direct_reclaim()
6543 if (READ_ONCE(pgdat->kswapd_highest_zoneidx) > ZONE_NORMAL) in allow_direct_reclaim()
6544 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, ZONE_NORMAL); in allow_direct_reclaim()
6546 wake_up_interruptible(&pgdat->kswapd_wait); in allow_direct_reclaim()
6566 pg_data_t *pgdat = NULL; in throttle_direct_reclaim() local
6605 pgdat = zone->zone_pgdat; in throttle_direct_reclaim()
6606 if (allow_direct_reclaim(pgdat)) in throttle_direct_reclaim()
6612 if (!pgdat) in throttle_direct_reclaim()
6627 wait_event_interruptible_timeout(pgdat->pfmemalloc_wait, in throttle_direct_reclaim()
6628 allow_direct_reclaim(pgdat), HZ); in throttle_direct_reclaim()
6632 allow_direct_reclaim(pgdat)); in throttle_direct_reclaim()
6689 pg_data_t *pgdat, in mem_cgroup_shrink_node() argument
6692 struct lruvec *lruvec = mem_cgroup_lruvec(memcg, pgdat); in mem_cgroup_shrink_node()
6766 static void kswapd_age_node(struct pglist_data *pgdat, struct scan_control *sc) in kswapd_age_node() argument
6772 lru_gen_age_node(pgdat, sc); in kswapd_age_node()
6776 if (!can_age_anon_pages(pgdat, sc)) in kswapd_age_node()
6779 lruvec = mem_cgroup_lruvec(NULL, pgdat); in kswapd_age_node()
6785 lruvec = mem_cgroup_lruvec(memcg, pgdat); in kswapd_age_node()
6792 static bool pgdat_watermark_boosted(pg_data_t *pgdat, int highest_zoneidx) in pgdat_watermark_boosted() argument
6805 zone = pgdat->node_zones + i; in pgdat_watermark_boosted()
6820 static bool pgdat_balanced(pg_data_t *pgdat, int order, int highest_zoneidx) in pgdat_balanced() argument
6831 zone = pgdat->node_zones + i; in pgdat_balanced()
6856 static void clear_pgdat_congested(pg_data_t *pgdat) in clear_pgdat_congested() argument
6858 struct lruvec *lruvec = mem_cgroup_lruvec(NULL, pgdat); in clear_pgdat_congested()
6861 clear_bit(PGDAT_DIRTY, &pgdat->flags); in clear_pgdat_congested()
6862 clear_bit(PGDAT_WRITEBACK, &pgdat->flags); in clear_pgdat_congested()
6871 static bool prepare_kswapd_sleep(pg_data_t *pgdat, int order, in prepare_kswapd_sleep() argument
6887 if (waitqueue_active(&pgdat->pfmemalloc_wait)) in prepare_kswapd_sleep()
6888 wake_up_all(&pgdat->pfmemalloc_wait); in prepare_kswapd_sleep()
6891 if (pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES) in prepare_kswapd_sleep()
6894 if (pgdat_balanced(pgdat, order, highest_zoneidx)) { in prepare_kswapd_sleep()
6895 clear_pgdat_congested(pgdat); in prepare_kswapd_sleep()
6910 static bool kswapd_shrink_node(pg_data_t *pgdat, in kswapd_shrink_node() argument
6919 zone = pgdat->node_zones + z; in kswapd_shrink_node()
6930 shrink_node(pgdat, sc); in kswapd_shrink_node()
6947 update_reclaim_active(pg_data_t *pgdat, int highest_zoneidx, bool active) in update_reclaim_active() argument
6953 zone = pgdat->node_zones + i; in update_reclaim_active()
6966 set_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in set_reclaim_active() argument
6968 update_reclaim_active(pgdat, highest_zoneidx, true); in set_reclaim_active()
6972 clear_reclaim_active(pg_data_t *pgdat, int highest_zoneidx) in clear_reclaim_active() argument
6974 update_reclaim_active(pgdat, highest_zoneidx, false); in clear_reclaim_active()
6990 static int balance_pgdat(pg_data_t *pgdat, int order, int highest_zoneidx) in balance_pgdat() argument
7019 zone = pgdat->node_zones + i; in balance_pgdat()
7029 set_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
7051 zone = pgdat->node_zones + i; in balance_pgdat()
7067 balanced = pgdat_balanced(pgdat, sc.order, highest_zoneidx); in balance_pgdat()
7099 kswapd_age_node(pgdat, &sc); in balance_pgdat()
7111 nr_soft_reclaimed = mem_cgroup_soft_limit_reclaim(pgdat, sc.order, in balance_pgdat()
7120 if (kswapd_shrink_node(pgdat, &sc)) in balance_pgdat()
7128 if (waitqueue_active(&pgdat->pfmemalloc_wait) && in balance_pgdat()
7129 allow_direct_reclaim(pgdat)) in balance_pgdat()
7130 wake_up_all(&pgdat->pfmemalloc_wait); in balance_pgdat()
7159 pgdat->kswapd_failures++; in balance_pgdat()
7162 clear_reclaim_active(pgdat, highest_zoneidx); in balance_pgdat()
7173 zone = pgdat->node_zones + i; in balance_pgdat()
7183 wakeup_kcompactd(pgdat, pageblock_order, highest_zoneidx); in balance_pgdat()
7186 snapshot_refaults(NULL, pgdat); in balance_pgdat()
7207 static enum zone_type kswapd_highest_zoneidx(pg_data_t *pgdat, in kswapd_highest_zoneidx() argument
7210 enum zone_type curr_idx = READ_ONCE(pgdat->kswapd_highest_zoneidx); in kswapd_highest_zoneidx()
7215 static void kswapd_try_to_sleep(pg_data_t *pgdat, int alloc_order, int reclaim_order, in kswapd_try_to_sleep() argument
7224 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
7233 if (prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7240 reset_isolation_suitable(pgdat); in kswapd_try_to_sleep()
7246 wakeup_kcompactd(pgdat, alloc_order, highest_zoneidx); in kswapd_try_to_sleep()
7256 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, in kswapd_try_to_sleep()
7257 kswapd_highest_zoneidx(pgdat, in kswapd_try_to_sleep()
7260 if (READ_ONCE(pgdat->kswapd_order) < reclaim_order) in kswapd_try_to_sleep()
7261 WRITE_ONCE(pgdat->kswapd_order, reclaim_order); in kswapd_try_to_sleep()
7264 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
7265 prepare_to_wait(&pgdat->kswapd_wait, &wait, TASK_INTERRUPTIBLE); in kswapd_try_to_sleep()
7273 prepare_kswapd_sleep(pgdat, reclaim_order, highest_zoneidx)) { in kswapd_try_to_sleep()
7274 trace_mm_vmscan_kswapd_sleep(pgdat->node_id); in kswapd_try_to_sleep()
7284 set_pgdat_percpu_threshold(pgdat, calculate_normal_threshold); in kswapd_try_to_sleep()
7289 set_pgdat_percpu_threshold(pgdat, calculate_pressure_threshold); in kswapd_try_to_sleep()
7296 finish_wait(&pgdat->kswapd_wait, &wait); in kswapd_try_to_sleep()
7316 pg_data_t *pgdat = (pg_data_t *)p; in kswapd() local
7318 const struct cpumask *cpumask = cpumask_of_node(pgdat->node_id); in kswapd()
7338 WRITE_ONCE(pgdat->kswapd_order, 0); in kswapd()
7339 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, MAX_NR_ZONES); in kswapd()
7340 atomic_set(&pgdat->nr_writeback_throttled, 0); in kswapd()
7344 alloc_order = reclaim_order = READ_ONCE(pgdat->kswapd_order); in kswapd()
7345 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7349 kswapd_try_to_sleep(pgdat, alloc_order, reclaim_order, in kswapd()
7353 alloc_order = READ_ONCE(pgdat->kswapd_order); in kswapd()
7354 highest_zoneidx = kswapd_highest_zoneidx(pgdat, in kswapd()
7356 WRITE_ONCE(pgdat->kswapd_order, 0); in kswapd()
7357 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, MAX_NR_ZONES); in kswapd()
7378 trace_mm_vmscan_kswapd_wake(pgdat->node_id, highest_zoneidx, in kswapd()
7380 reclaim_order = balance_pgdat(pgdat, alloc_order, in kswapd()
7401 pg_data_t *pgdat; in wakeup_kswapd() local
7410 pgdat = zone->zone_pgdat; in wakeup_kswapd()
7411 curr_idx = READ_ONCE(pgdat->kswapd_highest_zoneidx); in wakeup_kswapd()
7414 WRITE_ONCE(pgdat->kswapd_highest_zoneidx, highest_zoneidx); in wakeup_kswapd()
7416 if (READ_ONCE(pgdat->kswapd_order) < order) in wakeup_kswapd()
7417 WRITE_ONCE(pgdat->kswapd_order, order); in wakeup_kswapd()
7419 if (!waitqueue_active(&pgdat->kswapd_wait)) in wakeup_kswapd()
7423 if (pgdat->kswapd_failures >= MAX_RECLAIM_RETRIES || in wakeup_kswapd()
7424 (pgdat_balanced(pgdat, order, highest_zoneidx) && in wakeup_kswapd()
7425 !pgdat_watermark_boosted(pgdat, highest_zoneidx))) { in wakeup_kswapd()
7434 wakeup_kcompactd(pgdat, order, highest_zoneidx); in wakeup_kswapd()
7438 trace_mm_vmscan_wakeup_kswapd(pgdat->node_id, highest_zoneidx, order, in wakeup_kswapd()
7440 wake_up_interruptible(&pgdat->kswapd_wait); in wakeup_kswapd()
7487 pg_data_t *pgdat = NODE_DATA(nid); in kswapd_run() local
7489 pgdat_kswapd_lock(pgdat); in kswapd_run()
7490 if (!pgdat->kswapd) { in kswapd_run()
7491 pgdat->kswapd = kthread_run(kswapd, pgdat, "kswapd%d", nid); in kswapd_run()
7492 if (IS_ERR(pgdat->kswapd)) { in kswapd_run()
7496 pgdat->kswapd = NULL; in kswapd_run()
7499 pgdat_kswapd_unlock(pgdat); in kswapd_run()
7508 pg_data_t *pgdat = NODE_DATA(nid); in kswapd_stop() local
7511 pgdat_kswapd_lock(pgdat); in kswapd_stop()
7512 kswapd = pgdat->kswapd; in kswapd_stop()
7515 pgdat->kswapd = NULL; in kswapd_stop()
7517 pgdat_kswapd_unlock(pgdat); in kswapd_stop()
7560 static inline unsigned long node_unmapped_file_pages(struct pglist_data *pgdat) in node_unmapped_file_pages() argument
7562 unsigned long file_mapped = node_page_state(pgdat, NR_FILE_MAPPED); in node_unmapped_file_pages()
7563 unsigned long file_lru = node_page_state(pgdat, NR_INACTIVE_FILE) + in node_unmapped_file_pages()
7564 node_page_state(pgdat, NR_ACTIVE_FILE); in node_unmapped_file_pages()
7575 static unsigned long node_pagecache_reclaimable(struct pglist_data *pgdat) in node_pagecache_reclaimable() argument
7587 nr_pagecache_reclaimable = node_page_state(pgdat, NR_FILE_PAGES); in node_pagecache_reclaimable()
7589 nr_pagecache_reclaimable = node_unmapped_file_pages(pgdat); in node_pagecache_reclaimable()
7593 delta += node_page_state(pgdat, NR_FILE_DIRTY); in node_pagecache_reclaimable()
7605 static int __node_reclaim(struct pglist_data *pgdat, gfp_t gfp_mask, unsigned int order) in __node_reclaim() argument
7623 trace_mm_vmscan_node_reclaim_begin(pgdat->node_id, order, in __node_reclaim()
7635 if (node_pagecache_reclaimable(pgdat) > pgdat->min_unmapped_pages || in __node_reclaim()
7636 node_page_state_pages(pgdat, NR_SLAB_RECLAIMABLE_B) > pgdat->min_slab_pages) { in __node_reclaim()
7642 shrink_node(pgdat, &sc); in __node_reclaim()
7656 int node_reclaim(struct pglist_data *pgdat, gfp_t gfp_mask, unsigned int order) in node_reclaim() argument
7670 if (node_pagecache_reclaimable(pgdat) <= pgdat->min_unmapped_pages && in node_reclaim()
7671 node_page_state_pages(pgdat, NR_SLAB_RECLAIMABLE_B) <= in node_reclaim()
7672 pgdat->min_slab_pages) in node_reclaim()
7687 if (node_state(pgdat->node_id, N_CPU) && pgdat->node_id != numa_node_id()) in node_reclaim()
7690 if (test_and_set_bit(PGDAT_RECLAIM_LOCKED, &pgdat->flags)) in node_reclaim()
7693 ret = __node_reclaim(pgdat, gfp_mask, order); in node_reclaim()
7694 clear_bit(PGDAT_RECLAIM_LOCKED, &pgdat->flags); in node_reclaim()