From patchwork Wed Mar 27 14:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13606716 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 A2E2BCD11DD for ; Wed, 27 Mar 2024 14:13:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B21F06B008A; Wed, 27 Mar 2024 10:13:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A897B6B0096; Wed, 27 Mar 2024 10:13:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85F5B6B0092; Wed, 27 Mar 2024 10:13:22 -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 5E3AE6B0093 for ; Wed, 27 Mar 2024 10:13:22 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 2832640C39 for ; Wed, 27 Mar 2024 14:13:22 +0000 (UTC) X-FDA: 81943011444.02.EE03816 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf16.hostedemail.com (Postfix) with ESMTP id 275C318001C for ; Wed, 27 Mar 2024 14:13:19 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711548800; a=rsa-sha256; cv=none; b=bZctExHM4BQultKAygWTf1Sf1VAzXy1QQ2xi+UkcEoSlMVvI1cnZ1WQVw9GgJQKUK/Hndw pRsXtjngpN8JYEfaU9cIO/EdnuqqB4jWUrOFyhfMqyuvwL4QLfsKIf/gjPMlZPHBsZCJET rep/Z9Xe0TI2bk+vCqzd6shk4tiK5c4= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf16.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711548800; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RtqeoRQ1M6tLLawApqTl1tVkzA7i50CQyDlZi82g7Ag=; b=t6v2zQJLdvn6G5I5bHqk9g2iLcuCmtwKO5Nu1qvsImSUInrXORcIjuYygFzvE8IzjqS2Oq HvVSbXNsx4PPkY6VddNMcii9EJNefhFkgU7j8bPeCGdD9WdjDKxi1GI7t/nPgIX/VHFw3E 8Xmyur2xmaAyYViNh4PN4UN5k8wV2j4= Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4V4T8k11QvzXjxC; Wed, 27 Mar 2024 22:10:30 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 765B61404F6; Wed, 27 Mar 2024 22:13:17 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 27 Mar 2024 22:13:16 +0800 From: Kefeng Wang To: Andrew Morton CC: , Miaohe Lin , Naoya Horiguchi , David Hildenbrand , Oscar Salvador , Zi Yan , Hugh Dickins , Jonathan Corbet , , , Baolin Wang , Kefeng Wang Subject: [PATCH 5/6] mm: memory-failure: use isolate_movable_folio() in mf_isolate_folio() Date: Wed, 27 Mar 2024 22:10:33 +0800 Message-ID: <20240327141034.3712697-6-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240327141034.3712697-1-wangkefeng.wang@huawei.com> References: <20240327141034.3712697-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 275C318001C X-Stat-Signature: oxq9fnj3etn9bgib6ra9aefz3srs8bnw X-Rspam-User: X-HE-Tag: 1711548799-689094 X-HE-Meta: U2FsdGVkX1/+HbGqEgBUYlxJfzCmzG7FlrKhKcMmdcz160hENYXByjBYSuMtoLGHexFvB1RXO7F/GQ6CgFmQQceXpRh+d7qXhGe/vr1mv3euhmHJRb2TFEhCx36jUfAoKZtpbjOCHiy07/q6aN/wfIlVJuOSW8Tkm6DLO4I6pA8I5zTik3oPw/Ri6lY2qqBzGyi0pq3TJS9LCyJXMpD+mfETkaY+7hVM+axKeZCUbRknjqiXmMl7bqa7He9TLJnZ/nEhYG0HhXPBwEuPQZ4WwdjHNWC/rZkLehqjEg29n6T/E5Nk+To6pHm6fo2Y4DWFJiRzA2ZBpGFYNC8qWl7AzLBn92/mUdpsZ4sOYsMATYed/F1Q5pmYF67gWFxCtqM4DsLw8wWC99UKn9Gm8wpAg1eNSjw1tEXh+n6YXxUYRGlbzptrRFVm0+Ze6QbwLm6hbmTbVL9lQiIUcZsKtqaWdcGfOsg6FigdkjzpM2XXRpj+XyPmAIGG03m1Ox/5zIs1y1RTqSRDu8Ylu0LZBTVWHK5tv+8HIJ7aD1ND/TsvjXHtgWSQSf0DhXkA9zd3cAydfqp23kS3SXsuYFXmPqk8ggmEXvSkP8wZZg8dm9vmDtrS41r8iiXjDqKbVZAV2sogw9JLfF5v7Th6HmZ6lAhCCJElkkIExHDvUvl81z4bboS5bIaZaDTIgTzWdQHKqbWmoYeV36ikQwwdGBUkykdflsLb7MjAOu+fU/PQl9hTxcxjnGdgyuoupE3KVtSjnmBeX34pylkXJYO4kzBrXJKlLq/uvmx/1bYLIvLssGTnIF6Km7jS82MnEPQeQMNREhDEBVsXzTc1Szlu5h1iA6HPvzhTpKajLWvTBdwjW11VmkOo29KnxO1cIq6t+iBU7kACTQsqeDy1kKQ= 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: List-Subscribe: List-Unsubscribe: Directly use isolate_movable_folio() helper in mf_isolate_folio(). Signed-off-by: Kefeng Wang --- mm/memory-failure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 9349948f1abf..6f47776df0e1 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -2628,8 +2628,8 @@ static bool mf_isolate_folio(struct folio *folio, struct list_head *pagelist) if (lru) isolated = folio_isolate_lru(folio); else - isolated = isolate_movable_page(&folio->page, - ISOLATE_UNEVICTABLE); + isolated = isolate_movable_folio(folio, + ISOLATE_UNEVICTABLE); if (isolated) { list_add(&folio->lru, pagelist);