From fd63d411c02bd04d8c727e5cfd6b3b828a6aeca3 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:33 +1100 Subject: [PATCH] memory-failure-use-num_poisoned_pages-instead-of-mce_bad_pages-fix fix mm/sparse.c Cc: Andi Kleen Cc: Jiang Liu Cc: Wanpeng Li Cc: Xishi Qiu Signed-off-by: Andrew Morton --- mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index cff97960f1d7..7ca6dc847947 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -783,7 +783,7 @@ static void clear_hwpoisoned_pages(struct page *memmap, int nr_pages) for (i = 0; i < PAGES_PER_SECTION; i++) { if (PageHWPoison(&memmap[i])) { - atomic_long_sub(1, &mce_bad_pages); + atomic_long_sub(1, &num_poisoned_pages); ClearPageHWPoison(&memmap[i]); } } -- 2.39.5