summaryrefslogtreecommitdiff
path: root/mm/internal.h
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-12-16 12:19:58 +0100
committerAndi Kleen <ak@linux.intel.com>2009-12-16 12:19:58 +0100
commit8d22ba1b74aa9420b6032d856446564fb21f8090 (patch)
tree6c2e2d27e81d784faa0481500f1cecc613ff1167 /mm/internal.h
parent95d01fc664b9476e0d18e3d745bb209a42a33588 (diff)
downloadlinux-3.10-8d22ba1b74aa9420b6032d856446564fb21f8090.tar.gz
linux-3.10-8d22ba1b74aa9420b6032d856446564fb21f8090.tar.bz2
linux-3.10-8d22ba1b74aa9420b6032d856446564fb21f8090.zip
HWPOISON: detect free buddy pages explicitly
Most free pages in the buddy system have no PG_buddy set. Introduce is_free_buddy_page() for detecting them reliably. CC: Nick Piggin <npiggin@suse.de> CC: Mel Gorman <mel@linux.vnet.ibm.com> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm/internal.h')
-rw-r--r--mm/internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 4fe67a162cb..49b2ff776b7 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -50,6 +50,9 @@ extern void putback_lru_page(struct page *page);
*/
extern void __free_pages_bootmem(struct page *page, unsigned int order);
extern void prep_compound_page(struct page *page, unsigned long order);
+#ifdef CONFIG_MEMORY_FAILURE
+extern bool is_free_buddy_page(struct page *page);
+#endif
/*