Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755961Ab3HZBUu (ORCPT ); Sun, 25 Aug 2013 21:20:50 -0400 Received: from e23smtp07.au.ibm.com ([202.81.31.140]:52353 "EHLO e23smtp07.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754809Ab3HZBTK (ORCPT ); Sun, 25 Aug 2013 21:19:10 -0400 From: Wanpeng Li To: Andrew Morton Cc: Andi Kleen , Fengguang Wu , Naoya Horiguchi , Tony Luck , gong.chen@linux.intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wanpeng Li Subject: [PATCH v3 4/8] mm/hwpoison: replacing atomic_long_sub() with atomic_long_dec() Date: Mon, 26 Aug 2013 09:18:47 +0800 Message-Id: <1377479931-7430-4-git-send-email-liwanp@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1377479931-7430-1-git-send-email-liwanp@linux.vnet.ibm.com> References: <1377479931-7430-1-git-send-email-liwanp@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13082601-0260-0000-0000-00000384A900 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 30 Repalce atomic_long_sub() with atomic_long_dec() since the page is normal page instead of hugetlbfs page or thp. Reviewed-by: Naoya Horiguchi Signed-off-by: Wanpeng Li --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index a6c4752..297965e 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1363,7 +1363,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; } -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/