Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755455Ab3HWOfe (ORCPT ); Fri, 23 Aug 2013 10:35:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48987 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755349Ab3HWOfd (ORCPT ); Fri, 23 Aug 2013 10:35:33 -0400 Date: Fri, 23 Aug 2013 10:35:12 -0400 From: Naoya Horiguchi To: Wanpeng Li Cc: Andrew Morton , Andi Kleen , Fengguang Wu , Tony Luck , gong.chen@linux.intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Message-ID: <1377268512-9c5ohh48-mutt-n-horiguchi@ah.jp.nec.com> In-Reply-To: <1377253841-17620-4-git-send-email-liwanp@linux.vnet.ibm.com> References: <1377253841-17620-1-git-send-email-liwanp@linux.vnet.ibm.com> <1377253841-17620-4-git-send-email-liwanp@linux.vnet.ibm.com> Subject: Re: [PATCH v2 4/7] mm/hwpoison: replacing atomic_long_sub() with atomic_long_dec() Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mutt-References: <1377253841-17620-4-git-send-email-liwanp@linux.vnet.ibm.com> X-Mutt-Fcc: ~/Maildir/sent/ User-Agent: Mutt 1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1096 Lines: 33 On Fri, Aug 23, 2013 at 06:30:38PM +0800, Wanpeng Li wrote: > Repalce 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 > --- > 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/