• A
    [PATCH] vmscan return nr_reclaimed · 05ff5137
    Andrew Morton 提交于
    Change all the vmscan functions to retunr the number-of-reclaimed pages and
    remove scan_conrtol.nr_reclaimed.
    
    Saves ten-odd bytes of text and makes things clearer and more consistent.
    
    The patch also changes the behaviour of zone_reclaim() when it falls back to slab shrinking.  Christoph says
    
      "Setting this to one means that we will rescan and shrink the slab for
      each allocation if we are out of zone memory and RECLAIM_SLAB is set.  Plus
      if we do an order 0 allocation we do not go off node as intended.
    
      "We better set this to zero.  This means the allocation will go offnode
      despite us having potentially freed lots of memory on the zone.  Future
      allocations can then again be done from this zone."
    
    Cc: Nick Piggin <nickpiggin@yahoo.com.au>
    Cc: Christoph Lameter <christoph@lameter.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    05ff5137
vmscan.c 51.2 KB