From patchwork Thu Apr 25 08:40:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13642975 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 656ABC4345F for ; Thu, 25 Apr 2024 08:41:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5334B6B0099; Thu, 25 Apr 2024 04:41:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 49B676B009C; Thu, 25 Apr 2024 04:41:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13AB06B009A; Thu, 25 Apr 2024 04:41:01 -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 D35656B0099 for ; Thu, 25 Apr 2024 04:41:00 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AAB141C0E22 for ; Thu, 25 Apr 2024 08:40:56 +0000 (UTC) X-FDA: 82047408912.04.9D0FC21 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf08.hostedemail.com (Postfix) with ESMTP id 75CF216000F for ; Thu, 25 Apr 2024 08:40:54 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1714034454; a=rsa-sha256; cv=none; b=A1kJdofQMlPKAQZYNGr8yF0Hc/La0fBmfuttlyQLouTOVEpKEzrvuBxWLq/ckYwmRSNgTR D21L1SC7nMC7BFrVhoQHfM+8fVpSFjN7pfjmqj3Iz4d3JDaBcuHA+5pgCaHuwER1ZI/7f3 EfHCT0plFk+7w8zuyEUNZErVm2d4z5c= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1714034454; 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=y1rqkS8LbGjIdNgvbT1hfsVSLaPNpOCwoPB4dAXgHGY=; b=3/BfCeRHppcxI6UFXu0VsxtVyMvmnUsSy7hEC7y/X0DFskGIlAn9JptcYiOHrWzFhdw6jf l5JtzV33KuwaZlzehZBc9w3nPQ8edkWnE+5xIea65Bq6O93zC01TL2fKrXEeTCfh0rszKW KU+FjNAFvym7gFe2cbMZoaLMCkf34EA= Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VQ8PH5KpRzwTkl; Thu, 25 Apr 2024 16:37:39 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 85934140415; Thu, 25 Apr 2024 16:40:51 +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; Thu, 25 Apr 2024 16:40:50 +0800 From: Kefeng Wang To: Andrew Morton CC: , David Hildenbrand , Miaohe Lin , Naoya Horiguchi , Oscar Salvador , Zi Yan , Hugh Dickins , Jonathan Corbet , , Vishal Moola , Kefeng Wang Subject: [PATCH v2 06/10] mm: compaction: use folio_isolate_movable() Date: Thu, 25 Apr 2024 16:40:24 +0800 Message-ID: <20240425084028.3888403-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240425084028.3888403-1-wangkefeng.wang@huawei.com> References: <20240425084028.3888403-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 75CF216000F X-Stat-Signature: ioqd7gxdb4kupazaj6en53ytrs597ejc X-Rspam-User: X-HE-Tag: 1714034454-413263 X-HE-Meta: U2FsdGVkX1/q6n7++ysFfzpF4q0p37r8n1cj9ubVw1INTFlQ7wuVATh/FRTd3NJIQw+cqG0Otb2lQ8gziVzK5yNfPwhoNbKDlWxv96vOSCsqNEpvgk0bOBty9pmSHrLA28m01AJlLKOi8d7ei5/G3hbdn47MB+kw0uVd/fB8RnYZiTS1SQEyPVF63ncsoxK72t/jgyZmMsyKJi3BTU6CTPNFmywh4CbfJCWlb7JYuoMnep6LOAskZCr15oEAFihukzK/4p/R6UVmsr+BuhD5cwxAOEcenExHO2HDVdXlsBjib1W7zYsIkhapOcugrIBSOnEZO59PNpkG5F/upxXYXl/HqHKGsCrLZ08Tm0RQlyH+R//64WYO1mc0iowjAA67BBmuwyDMsQAfpgk9snf0FN0dVZxiXXvcUzWAMnsMMMD0ujNI7VLuP7Ysm3lgpXOLS/Gfwbni0PnNbk6mNmDRHrl66DbC1Xhd8uZrD7ly3aAvME4/0wS8j0Z2h1tkx/fa0mLGa80lAwW67cXHwF+qsKgXcROWmQcW3TdbLg5kUvqO744qM0QrOLjnOYFgaUTLUTuaoeUegRCiQw/eQmUYvIrqsZNUz/0osTgT1nAFHjCewvQOzyMZneFENS+1eCaDitAlU1Sn/XPN6uCsrfKbNpSo/GGigqeKpv+1K7A2wxVqDMjKYqoKEmhn0ugSquaXJAgHnv4bM/m1MD6VUIiMizn8qPt/73xXBsAlLNUP4OVcLnG5Su1nfEcyjBzqUqxs6n702cD5wKQyWtwwUK3gxafkDvvmvEBHvcGjrQkCSe3Ua4h6L95sdVl/3I0NddH/6UqxA+VECb83mAjuUPLd5WhDeW1dU7VjJ6UERyz1EM7yIr70EMU/tDG+lKx58RzN6M7PKJyGObg7o4LYDCTEWcoxZOMEMtSwhYmxkux0Tbd9zWTMI3IASwL6VvoXRe8Tbo8lirYSJjiKhW8dP8N 3gg== 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() helper in isolate_migratepages_block() Signed-off-by: Kefeng Wang --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 4fc5a19b06ad..65a98968f681 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1123,7 +1123,7 @@ isolate_migratepages_block(struct compact_control *cc, unsigned long low_pfn, locked = NULL; } - if (isolate_movable_page(&folio->page, mode)) { + if (folio_isolate_movable(folio, mode)) { folio_put(folio); goto isolate_success; }