| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ea0916e commit 6aaced5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -374,7 +374,14 @@ unsigned long zone_reclaimable_pages(struct zone *zone) | |||
| 374 | 374 | if (can_reclaim_anon_pages(NULL, zone_to_nid(zone), NULL)) | |
| 375 | 375 | nr += zone_page_state_snapshot(zone, NR_ZONE_INACTIVE_ANON) + | |
| 376 | 376 | zone_page_state_snapshot(zone, NR_ZONE_ACTIVE_ANON); | |
| 377 | - | ||
| 377 | + /* | ||
| 378 | + * If there are no reclaimable file-backed or anonymous pages, | ||
| 379 | + * ensure zones with sufficient free pages are not skipped. | ||
| 380 | + * This prevents zones like DMA32 from being ignored in reclaim | ||
| 381 | + * scenarios where they can still help alleviate memory pressure. | ||
| 382 | + */ | ||
| 383 | + if (nr == 0) | ||
| 384 | + nr = zone_page_state_snapshot(zone, NR_FREE_PAGES); | ||
| 378 | 385 | return nr; | |
| 379 | 386 | } | |
| 380 | 387 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments