From patchwork Thu Aug 29 14:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13783354 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 280C8C83F2E for ; Thu, 29 Aug 2024 14:55:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 223AD6B0088; Thu, 29 Aug 2024 10:55:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1AC026B0089; Thu, 29 Aug 2024 10:55:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 073536B008A; Thu, 29 Aug 2024 10:55:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id DD7056B0088 for ; Thu, 29 Aug 2024 10:55:06 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8325E140610 for ; Thu, 29 Aug 2024 14:55:06 +0000 (UTC) X-FDA: 82505580612.29.C8CF941 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf22.hostedemail.com (Postfix) with ESMTP id 15E07C0009 for ; Thu, 29 Aug 2024 14:55:02 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724943259; a=rsa-sha256; cv=none; b=rcn3ViakUVB0vfP+t663obcA7dE0ls7+o3NvUd4FMz1g65e/NzQH3kM8xg/jHkPQBhArQV PFfywZ7BzzUPRZnZTDGPEd7wuDMkZzM3rhS66qTx39Io1jJT7nEtqutbJZACxAMnsDnkfZ 5gNqWG4dIDfUhUEF8yi4tTD9dXGSDW8= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 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=1724943259; 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=vz9mJnQK0yw1Wh++4Xywa+oCuZ/BGx8ZbFEZVWsLnQQ=; b=mLY7BpUz4r85pGJbk1yIPyqkfzSwa/J40zSVAmKaofRHVf6SstkQCg2jAkGmEF2ZwysTle yD7p02TB6gCT1xjt7/bQzfzIUnRBEfcjlBmwYVj8GLJX0CAMmI8JwOvhYvQY/Sj5UNhWio UMt9jl3YbpTpFlmNYwqFrcie3pOvuMA= Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4WvknZ17vgz18Mrj; Thu, 29 Aug 2024 22:54:10 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id DBB871401F2; Thu, 29 Aug 2024 22:54:59 +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; Thu, 29 Aug 2024 22:54:59 +0800 From: Kefeng Wang To: Andrew Morton CC: David Hildenbrand , Matthew Wilcox , Baolin Wang , Zi Yan , Vishal Moola , , Kefeng Wang Subject: [PATCH v2 3/5] mm: migrate: convert to folio_isolate_movable() Date: Thu, 29 Aug 2024 22:54:54 +0800 Message-ID: <20240829145456.2591719-4-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240829145456.2591719-1-wangkefeng.wang@huawei.com> References: <20240829145456.2591719-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemf100008.china.huawei.com (7.185.36.138) X-Stat-Signature: pktytwi3maip8ujiwb6f5myqz4381x65 X-Rspamd-Queue-Id: 15E07C0009 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1724943302-85268 X-HE-Meta: U2FsdGVkX18n02eofW9eJywbpKE1/RcPgcGkzrf3sx/kAE+cBy/57DNh423Z8vgNuzqITOfPzHYIzcB6enx0iGrSrb8p+VKwoVqHb/SS/uaKb6SQSXbLhSZU/xNKcYAUHu464qdOfhljMA9NQb/t/rIYj9YmwRclb9TvrYnHlq3W1lyFydnj8gpt+WrvwBVvip4yLTLpRj+ZDMTCRHHV8g8hoPvJLz+QkLbEyVI/E90KEdOFgtQV5knsq1xkyEcgfSZgpsnhCeWFKpWCOVjKChjDUQmaJizcVUE5aiGqxQ5BntcoZwzqnX0iBAdTUFMfcmTRlVEUx4idPeqCOW5dhOosTo8C2LDURKpjBY6iR2dqpzR4bSK9864wlJYIkUnL418GR21eMopRuBPwm4gP4S22yxHz48eiDjZ3NFTMdNKnpO0+6/ltyR0v8GOYNaHyWjB6ae4rxff3Mca1rITn+AFC3ZEuKiW4SJVT1Cry/9MqZP3aftD3uim6Z5RxZVP7r0rELY+a/ea9Fpn44xXzSY38KEexkNo7nLjYFHeapHLrE0rPNxARZp81ekxElfj1xW9+FAL6KqnkyZJlIStjSRHxDyCyKFHqn1/T+M7080buxpHSTNbLjEWWbEcLpAQ1Hp3cbMPR8l1CdGnWxvKCFrQIkZcqMhj+lssehzfR2+iTtPIzw7XHtMYU774Igl8Xl06Z06V4DSe4TNBt1g+2VMj3l97XPPUESMPZ98iDstvVp+mOUNX0B9/rWuvGdBlL5gscZHd9LPrNyFFGOU35y84f8W+7qlYWgIDTg2ITbvyRibcmLAE4RbDvKpizwZtDuYTXe/G7Xm4RU6THucWqSgwwB6PDkuGNAYk+IXrB7bHN1udBUQVqaoPDEft6wKVg7DD81nHo2KUMIMLQ9xarwbhpi5vMCSosolauxYwn/taELeSYF/K1IfFKbVrcpLYM8IneMADAnV86l7y0D+c h3Uj+Av/ XZ/PlN4kFWyw8PgsXI/gwsmmXReVegtp1aMhN1SajJS3VpcE6DqpZhmcX/3BZrCdF7cD2/YSprm/S0zSvDIMQV5VT9dJ0nb62zDSbHTvWPFIhX/Ate928TrW9dDhV7BhybYEn7mme35QTDUT9BT6EBfxLLa1SXfYCRX14/RYM4ynG2a00poNBuie2pmPqjVaOXu6VLPPAhE7ykgJEq2GnX1RK0Y48ENdGfHho3Ilp8sRFNRsIKmrhjWBu8NsttizM8zFW 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 folio_isolate_movable() in isolate_folio_to_list(). Signed-off-by: Kefeng Wang --- mm/migrate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 704102cc3951..4cac7f749620 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -196,8 +196,7 @@ 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) return false;