From: Wanpeng Li Date: Wed, 11 Sep 2013 21:22:54 +0000 (-0700) Subject: mm/hwpoison: replace atomic_long_sub() with atomic_long_dec() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd9538a597f9ccd9a65be1cc3f71059a12b5b4ff;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/hwpoison: replace atomic_long_sub() with atomic_long_dec() Replace atomic_long_sub() with atomic_long_dec() since the page is normal page instead of hugetlbfs page or thp. Signed-off-by: Wanpeng Li Reviewed-by: Naoya Horiguchi Cc: Andi Kleen Cc: Tony Luck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 32351ec32048..c69217c07faa 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1366,7 +1366,7 @@ int unpoison_memory(unsigned long pfn) return 0; } if (TestClearPageHWPoison(p)) - atomic_long_sub(nr_pages, &num_poisoned_pages); + atomic_long_dec(&num_poisoned_pages); pr_info("MCE: Software-unpoisoned free page %#lx\n", pfn); return 0; }