[RFC PATCH v3 01/35] mm: Restructure free-page stealing code and fix a bug

2013-08-30 Thread Srivatsa S. Bhat
The free-page stealing code in __rmqueue_fallback() is somewhat hard to follow, and has an incredible amount of subtlety hidden inside! First off, there is a minor bug in the reporting of change-of-ownership of pageblocks. Under some conditions, we try to move upto 'pageblock_nr_pages' no. of page

[RFC PATCH v3 01/35] mm: Restructure free-page stealing code and fix a bug

2013-08-30 Thread Srivatsa S. Bhat
The free-page stealing code in __rmqueue_fallback() is somewhat hard to follow, and has an incredible amount of subtlety hidden inside! First off, there is a minor bug in the reporting of change-of-ownership of pageblocks. Under some conditions, we try to move upto 'pageblock_nr_pages' no. of page