From patchwork Tue Mar 22 21:44:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12789202 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 A3191C433EF for ; Tue, 22 Mar 2022 21:44:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 366326B0110; Tue, 22 Mar 2022 17:44:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3136E6B0111; Tue, 22 Mar 2022 17:44:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1463C6B0112; Tue, 22 Mar 2022 17:44:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0048.hostedemail.com [216.40.44.48]) by kanga.kvack.org (Postfix) with ESMTP id F1C6A6B0110 for ; Tue, 22 Mar 2022 17:44:32 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id BF71418249F88 for ; Tue, 22 Mar 2022 21:44:32 +0000 (UTC) X-FDA: 79273351584.18.A702294 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf10.hostedemail.com (Postfix) with ESMTP id 4DC1BC0037 for ; Tue, 22 Mar 2022 21:44:32 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 238E6B81DB9; Tue, 22 Mar 2022 21:44:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6D57C340EC; Tue, 22 Mar 2022 21:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1647985470; bh=CYCAgfZaJlS+pByLr6BdL66Gk9MBlsp4NM9QveUQY6I=; h=Date:To:From:In-Reply-To:Subject:From; b=A02pgbBhecTW8shMFuLms40pR+vQwFIaxuydE+95b472UPszazlftFFy5k6e54OM9 EmHysvnnsheCo8NtROE4UiLqHvrtVElgob3cDjaXRlvbXq5OR5+XTQl4sMreFQyUgb sOO5OrO69t5oB6N8FlFaKfE6i8I7mqjNnZvOtaMQ= Date: Tue, 22 Mar 2022 14:44:30 -0700 To: linmiaohe@huawei.com,akpm@linux-foundation.org,patches@lists.linux.dev,linux-mm@kvack.org,mm-commits@vger.kernel.org,torvalds@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20220322143803.04a5e59a07e48284f196a2f9@linux-foundation.org> Subject: [patch 118/227] mm/memory-failure.c: remove obsolete comment in __soft_offline_page Message-Id: <20220322214430.B6D57C340EC@smtp.kernel.org> X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 4DC1BC0037 X-Stat-Signature: nxuhkqxyixygibsjcbho6qh6hdx4j7es X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=A02pgbBh; dmarc=none; spf=pass (imf10.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-HE-Tag: 1647985472-793076 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: From: Miaohe Lin Subject: mm/memory-failure.c: remove obsolete comment in __soft_offline_page Since commit add05cecef80 ("mm: soft-offline: don't free target page in successful page migration"), set_migratetype_isolate logic is removed. Remove this obsolete comment. Link: https://lkml.kernel.org/r/20220218090118.1105-8-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Signed-off-by: Andrew Morton --- mm/memory-failure.c | 4 ---- 1 file changed, 4 deletions(-) --- a/mm/memory-failure.c~mm-memory-failurec-remove-obsolete-comment-in-__soft_offline_page +++ a/mm/memory-failure.c @@ -2167,10 +2167,6 @@ static int __soft_offline_page(struct pa ret = invalidate_inode_page(page); unlock_page(page); - /* - * RED-PEN would be better to keep it isolated here, but we - * would need to fix isolation locking first. - */ if (ret) { pr_info("soft_offline: %#lx: invalidated\n", pfn); page_handle_poison(page, false, true);