From 4dff14fe3f4d59eaa921ed56425b75d087531781 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 30 Nov 2024 18:44:24 -0800 Subject: [PATCH] mm-vmscan-account-for-free-pages-to-prevent-infinite-loop-in-throttle_direct_reclaim-checkpatch-fixes ERROR: trailing whitespace #40: FILE: mm/vmscan.c:378: +^I * If there are no reclaimable file-backed or anonymous pages, $ ERROR: trailing whitespace #41: FILE: mm/vmscan.c:379: +^I * ensure zones with sufficient free pages are not skipped. $ ERROR: trailing whitespace #42: FILE: mm/vmscan.c:380: +^I * This prevents zones like DMA32 from being ignored in reclaim $ WARNING: suspect code indent for conditional statements (8, 12) #45: FILE: mm/vmscan.c:383: + if (nr == 0) + nr = zone_page_state_snapshot(zone, NR_FREE_PAGES); total: 3 errors, 1 warnings, 15 lines checked Cc: Mel Gorman Cc: Seiji Nishikawa Signed-off-by: Andrew Morton --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 7182484d259177..2a8db048d58155 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -381,7 +381,7 @@ unsigned long zone_reclaimable_pages(struct zone *zone) * scenarios where they can still help alleviate memory pressure. */ if (nr == 0) - nr = zone_page_state_snapshot(zone, NR_FREE_PAGES); + nr = zone_page_state_snapshot(zone, NR_FREE_PAGES); return nr; }