diff options
| author | Andi Kleen <andi@firstfloor.org> | 2009-12-16 06:19:57 -0500 |
|---|---|---|
| committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 06:19:57 -0500 |
| commit | 588f9ce6ca61ecb4663ee6ef2f75d2d96c73151e (patch) | |
| tree | 4f68c55642c51312bdf6e49818b9889ec37a1ac3 /include | |
| parent | 7bc98b97ed5dfe710025414de771baa674998892 (diff) | |
HWPOISON: Be more aggressive at freeing non LRU caches
shake_page handles more types of page caches than lru_drain_all()
- per cpu page allocator pages
- per CPU LRU
Stops early when the page became free.
Used in followon patches.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/mm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 9d65ae4ba0e0..68c84bb2ad3f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1335,6 +1335,7 @@ extern void memory_failure(unsigned long pfn, int trapno); | |||
| 1335 | extern int __memory_failure(unsigned long pfn, int trapno, int ref); | 1335 | extern int __memory_failure(unsigned long pfn, int trapno, int ref); |
| 1336 | extern int sysctl_memory_failure_early_kill; | 1336 | extern int sysctl_memory_failure_early_kill; |
| 1337 | extern int sysctl_memory_failure_recovery; | 1337 | extern int sysctl_memory_failure_recovery; |
| 1338 | extern void shake_page(struct page *p); | ||
| 1338 | extern atomic_long_t mce_bad_pages; | 1339 | extern atomic_long_t mce_bad_pages; |
| 1339 | 1340 | ||
| 1340 | #endif /* __KERNEL__ */ | 1341 | #endif /* __KERNEL__ */ |
