From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 538D6C433F5 for ; Fri, 6 May 2022 08:56:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 72B556B0075; Fri, 6 May 2022 04:56:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6DA706B0078; Fri, 6 May 2022 04:56:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5CA656B007B; Fri, 6 May 2022 04:56:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 50D4B6B0075 for ; Fri, 6 May 2022 04:56:09 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2673C20925 for ; Fri, 6 May 2022 08:56:09 +0000 (UTC) X-FDA: 79434711258.14.C515EC0 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by imf16.hostedemail.com (Postfix) with ESMTP id A68F918004B for ; Fri, 6 May 2022 08:56:01 +0000 (UTC) Date: Fri, 6 May 2022 17:55:59 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1651827366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QKpkW6bguymmdfZAvj/2y4sohq6tBesmgetgBnsnngs=; b=nT0zHF0rSVT3a6hZSHcVTH2Q8EAhfTpnKA2bc9bBdWF4wbipUG9Ss8qlXQZZXhnoz6xZWJ kx3g4jREQxB3DMZTuTLj5RJArCtu5mrcileFlixEupzSNSK0LxQknYd4v+x1+i0dK3h0g6 a6t/ue/RGvZuIfkaicFSQg3JjZ/7mF4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: zhenwei pi Cc: akpm@linux-foundation.org, naoya.horiguchi@nec.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wu Fengguang Subject: Re: [PATCH 2/4] mm/memofy-failure.c:: simplify num_poisoned_pages_dec Message-ID: <20220506085559.GB1356094@u2004> References: <20220429142206.294714-1-pizhenwei@bytedance.com> <20220429142206.294714-3-pizhenwei@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220429142206.294714-3-pizhenwei@bytedance.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Stat-Signature: 6cmhmp4z9uxahb7a4zq9kqotiu9swxut Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=nT0zHF0r; spf=pass (imf16.hostedemail.com: domain of naoya.horiguchi@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=naoya.horiguchi@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: A68F918004B X-HE-Tag: 1651827361-770320 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Apr 29, 2022 at 10:22:04PM +0800, zhenwei pi wrote: > Don't descrease the number of poisoned pages in page_alloc.c, let the ^^^^ decrease? > memory-failure.c do inc/dec poisoned pages only. > > Also simplify unpoison_memory(), only descrease the number of ^^^^ same typo > poisoned pages when: > - TestClearPageHWPoison() succeed > - put_page_back_buddy succeed > > After descreasing, print necessary log. ^^^^ ditto > > Finally, remove clear_page_hwpoison() and unpoison_taken_off_page(). > > Cc: Wu Fengguang > Signed-off-by: zhenwei pi Otherwise, the changes look good to me. Acked-by: Naoya Horiguchi