提交 95d01fc6 编写于 作者: W Wu Fengguang 提交者: Andi Kleen

HWPOISON: remove the free buddy page handler

The buddy page has already be handled in the very beginning.
So remove redundant code.
Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
上级 dc2a1cbf
...@@ -400,14 +400,6 @@ static int me_unknown(struct page *p, unsigned long pfn) ...@@ -400,14 +400,6 @@ static int me_unknown(struct page *p, unsigned long pfn)
return FAILED; return FAILED;
} }
/*
* Free memory
*/
static int me_free(struct page *p, unsigned long pfn)
{
return DELAYED;
}
/* /*
* Clean (or cleaned) page cache page. * Clean (or cleaned) page cache page.
*/ */
...@@ -604,7 +596,6 @@ static int me_huge_page(struct page *p, unsigned long pfn) ...@@ -604,7 +596,6 @@ static int me_huge_page(struct page *p, unsigned long pfn)
#define tail (1UL << PG_tail) #define tail (1UL << PG_tail)
#define compound (1UL << PG_compound) #define compound (1UL << PG_compound)
#define slab (1UL << PG_slab) #define slab (1UL << PG_slab)
#define buddy (1UL << PG_buddy)
#define reserved (1UL << PG_reserved) #define reserved (1UL << PG_reserved)
static struct page_state { static struct page_state {
...@@ -614,7 +605,10 @@ static struct page_state { ...@@ -614,7 +605,10 @@ static struct page_state {
int (*action)(struct page *p, unsigned long pfn); int (*action)(struct page *p, unsigned long pfn);
} error_states[] = { } error_states[] = {
{ reserved, reserved, "reserved kernel", me_ignore }, { reserved, reserved, "reserved kernel", me_ignore },
{ buddy, buddy, "free kernel", me_free }, /*
* free pages are specially detected outside this table:
* PG_buddy pages only make a small fraction of all free pages.
*/
/* /*
* Could in theory check if slab page is free or if we can drop * Could in theory check if slab page is free or if we can drop
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册