kernel - Abort pageout operations when free memory recovers
* Nominal pageout operations free memory. On systems with large amounts
of ram the pageout count can be very large and take a long time to
clear. During this period, other unrelated processes might free memory.
But even when sufficient memory is freed the pageout daemon still tries
to finish clearing its previously calculated number of pages.
* Add a check in the deactivation scan to break out of the loop if
a sufficient number of free pages is detected.
* Fixes unnecessary extra paging out of data (which can go on for several
minutes) on large systems when memory is freed by other means.