Message ID | 20240826040132.1202297-4-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 44967C5321D for <linux-mm@archiver.kernel.org>; Mon, 26 Aug 2024 04:01:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CD0D6B0356; Mon, 26 Aug 2024 00:01:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 56C736B035D; Mon, 26 Aug 2024 00:01:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25B206B0359; Mon, 26 Aug 2024 00:01:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id EDB596B0357 for <linux-mm@kvack.org>; Mon, 26 Aug 2024 00:01:41 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 9B659140AE0 for <linux-mm@kvack.org>; Mon, 26 Aug 2024 04:01:41 +0000 (UTC) X-FDA: 82493047602.12.C09AD79 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by imf28.hostedemail.com (Postfix) with ESMTP id 3CCFFC0004 for <linux-mm@kvack.org>; Mon, 26 Aug 2024 04:01:38 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.35 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724644814; 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=xOm3AKuYzLQyL2v8rb7q3aRjBphfv5TPDins0PqxeGc=; b=YUTcRwTBWnOoO1Cq8bprx97J2lvl4vVMTfyKaccl7P5apD/Zx+e4EGQXRhJywl6CdEAXYY V8CN82WYV9aNXzN9yRCB3e4eJogrlE4i4mgr8a8o1HyYm+b4dNpbyrBRAJ6IT1Oh3N9u+W HtF7PXRf3MB9sTDu3LbR9usX/4al6Rc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724644814; a=rsa-sha256; cv=none; b=thMg2bBJrd6iKZ6r+u9XiRdwL7ea5/DAzcnALeXoXehfb/SfT8r4GrunogvLvqZGOoV4ji gK4MbnuM6bArxYjg//CwFN2R++BKfvxj/hGXa5JcRKjeUL4osFmbxL5TcxZrAWaEDb4yPz wcY55MyotwuWiIfeQuWc3awjVE5VlAY= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.35 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4WscRp5sWHz1S8s9; Mon, 26 Aug 2024 12:01:26 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id C40461A0188; Mon, 26 Aug 2024 12:01:35 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 26 Aug 2024 12:01:35 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: David Hildenbrand <david@redhat.com>, Matthew Wilcox <willy@infradead.org>, Baolin Wang <baolin.wang@linux.alibaba.com>, Zi Yan <ziy@nvidia.com>, <linux-mm@kvack.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 3/4] mm: migrate: convert to folio_isolate_movable() Date: Mon, 26 Aug 2024 12:01:31 +0800 Message-ID: <20240826040132.1202297-4-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240826040132.1202297-1-wangkefeng.wang@huawei.com> References: <20240826040132.1202297-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemf100008.china.huawei.com (7.185.36.138) X-Stat-Signature: w7ddz5yywxmbtjoef3zqxhxszhsjbj56 X-Rspamd-Queue-Id: 3CCFFC0004 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1724644898-432250 X-HE-Meta: U2FsdGVkX18sxUl+2QBCiqEGGzNIBa/cmLLAfmkuKn5RC1m1yTaE4Maau0cwfOwjrRJMaMYuADgagOcu+3PrQXlq6NKXnlH8EMGM4qKJniEHtMdAlt0LgLCD1d+kQcGXeKM+/23ZMPIVk+DUcIuIM1sWHmiC/dSYc3Pd2OahtaRbIODrY3o31f2DIHWPgs1h5nK/uurBPHS1EE6e77iwhkvTvy9EP08R/Mya5FhB1DimgRYIm0YAYGTRuGJIuvIOpMwNL98wPaHIaGolJS2UmFRDphwk2VPq8EztdyAF9jtkVslXjLhSkWjv9KUpf+VhdHtafIuup8F0xJnWyCQIQstzjFzL4Y7M3cp4Sw0nQuBPGHYmnly8ZZsoPgwn6rr73F+0Q7Oot/g5sJDhqLTv9L8AQb4JK0FaXtWByeKJQGzdj8/FEgcqKZeZ2RIV+x23/sJL4832pprRJHlkRKRujd6IlTc4Rn2ZuT0/0C81zcyWJBRrqK3oxEdv9z4tZfZjvw6mnBH524XLNxpGXgGyTuMLHNDjqCpeZxjFpeQlr7EwuXeyAdWgDkofSRwRHGM2ITEKRBoQH8DWJdFTyAQv1xUoTvBOijslMDteZL4Clcl0gO9P962CKF5ngn2oya68FbXQVTFfv/zhplrVJGUu3raKxHJzBs3qkdwGp9uCq6g5Ly9B3kwAt4dYbxensK8z/nC3dYKH8ihQSxiMymPav90P2uc8zKohl6rMAMCJjq7LAaBq4qtvuNR89V4yGR7Rvy5cHeh6iw6qGSKHR9jNgws38XtGmkCO1kGZoijfukfW19Qi3dwIU8Ltqr4+qwDcYNHrVnFw9zShxUVqmrphHiLZP0+GaCTgrvkYHTS1ctqTAGMIwOnuz7XRnWZrGrf83Cd3w/JKCf1Bkh+wrE0Oc7nUT1MiHBdxzG0siF5W2pjee2U2epaJTpQwNi+LuoqIyI9eei3HZsbOMZTZF+f QEpfJJVK JzevdoIH2w99suzTxNRWV7qTGScf7/IVTFOUnVhYn+KBOz+nyHFGsr5p9RrsDqz3UTL3ElR1sPwXeOU39cBDHKjsoTn/NPVOg84EM/glaTd6siaoLq9Sh8+Dpr57NlqLozOdYd9ulsDwULq8QuoWrgw5fgI61VM1wZZHZ270YiOiOo5JIGYGWfLQhifisF0AxwxF4 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: convert to folio_isolate_movable()
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index cc1c268c3822..3d8a97b74356 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -198,8 +198,8 @@ bool isolate_folio_to_list(struct folio *folio, struct list_head *list) if (lru) isolated = folio_isolate_lru(folio); else - isolated = isolate_movable_page(&folio->page, - ISOLATE_UNEVICTABLE); + isolated = folio_isolate_movable(folio, + ISOLATE_UNEVICTABLE); if (isolated) { list_add(&folio->lru, list);
Directly use folio_isolate_movable() helper in isolate_folio_to_list(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- mm/migrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)