]> git.hungrycats.org Git - linux/commit
[PATCH] vmscan: reset refill_counter after refilling the inactive list
authorAndrew Morton <akpm@osdl.org>
Mon, 29 Dec 2003 13:44:34 +0000 (05:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 29 Dec 2003 13:44:34 +0000 (05:44 -0800)
commit9c8c94922e75afa04ee2d623e27b8ed0dd0ae8f3
tree060879a6218a3ea2336a09a3e444b7c2e9d3e413
parent6f2220203d88732a4b04599e8513f6e10fcc9660
[PATCH] vmscan: reset refill_counter after refilling the inactive list

zone->refill_counter is only there to provide decent levels of work batching:
don't call refill_inactive_zone() just for a couple of pages.

But the logic in there allows it to build up to huge values and it can
overflow (go negative) which will disable refilling altogether until it wraps
positive again.

Just reset it to zero whenever we decide to do some refilling.
mm/vmscan.c