Skip to content

Commit 5cb5e1b

Browse files
committed
mm-vmscan-account-for-free-pages-to-prevent-infinite-loop-in-throttle_direct_reclaim-checkpatch-fixes
ERROR: trailing whitespace torvalds#40: FILE: mm/vmscan.c:378: +^I * If there are no reclaimable file-backed or anonymous pages, $ ERROR: trailing whitespace torvalds#41: FILE: mm/vmscan.c:379: +^I * ensure zones with sufficient free pages are not skipped. $ ERROR: trailing whitespace torvalds#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) torvalds#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 <[email protected]> Cc: Seiji Nishikawa <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 75901ef commit 5cb5e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/vmscan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ unsigned long zone_reclaimable_pages(struct zone *zone)
381381
* scenarios where they can still help alleviate memory pressure.
382382
*/
383383
if (nr == 0)
384-
nr = zone_page_state_snapshot(zone, NR_FREE_PAGES);
384+
nr = zone_page_state_snapshot(zone, NR_FREE_PAGES);
385385
return nr;
386386
}
387387

0 commit comments

Comments
 (0)