]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: count pages into balanced for zone with good watermark
authorShaohua Li <shaohua.li@intel.com>
Mon, 24 Oct 2011 14:54:08 +0000 (01:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:39 +0000 (20:07 +1100)
commitf42f4d0d43a34bef07037f9245bec6204bc4401e
treed82fdade6af580f9fb20385a6711106be4cd5025
parentbd1cdf415125d9e5578d6bf43879a1c2778eb323
vmscan: count pages into balanced for zone with good watermark

It's possible a zone watermark is ok when entering the balance_pgdat()
loop, while the zone is within the requested classzone_idx.  Count pages
from this zone into `balanced'.  In this way, we can skip shrinking zones
too much for high order allocation.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c