HWPOISON: Use new shake_page in memory_failure
authorAndi Kleen <andi@firstfloor.org>
Wed, 16 Dec 2009 11:20:00 +0000 (12:20 +0100)
committerAndi Kleen <ak@linux.intel.com>
Wed, 16 Dec 2009 11:20:00 +0000 (12:20 +0100)
commit0474a60ec704324577782b1057d05b574388d552
tree75c574fe9a64332aeed6c636bf6bd9e6485d1603
parentfe194d3e100dea323d7b2de96d3b44d0c067ba7a
HWPOISON: Use new shake_page in memory_failure

shake_page handles more types of page caches than
the much simpler lru_add_drain_all:

- slab (quite inefficiently for now)
- any other caches with a shrinker callback
- per cpu page allocator pages
- per CPU LRU

Use this call to try to turn pages into free or LRU pages.
Then handle the case of the page becoming free after drain everything.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/memory-failure.c