• Andrew Morton's avatar
    [PATCH] vmscan: drive everything via nr_to_scan · 5954a8b0
    Andrew Morton authored
    Page reclaim is currently a bit schitzo: sometimes we say "go and scan this
    many pages and tell me how many pages were freed" and at other times we say
    "go and scan this many pages, but stop if you freed this many".
    
    It makes the logic harder to control and to understand.  This patch coverts
    everything into the "go and scan this many pages and tell me how many pages
    were freed" model.
    
    It doesn't seem to affect performance much either way.
    5954a8b0
vmscan.c 29.4 KB