From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:33 +0000 (+1100) Subject: memory-failure-use-num_poisoned_pages-instead-of-mce_bad_pages-fix X-Git-Tag: next-20130220~1^2~485 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fd63d411c02bd04d8c727e5cfd6b3b828a6aeca3;p=karo-tx-linux.git 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 --- 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]); } }