From patchwork Thu Aug 29 14:54:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13783358 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 739F0C83F32 for ; Thu, 29 Aug 2024 14:55:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 88D746B0092; Thu, 29 Aug 2024 10:55:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7F0196B0093; Thu, 29 Aug 2024 10:55:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 643CF6B0095; Thu, 29 Aug 2024 10:55:08 -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 400716B0092 for ; Thu, 29 Aug 2024 10:55:08 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 0571C1601F5 for ; Thu, 29 Aug 2024 14:55:08 +0000 (UTC) X-FDA: 82505580696.16.336704F Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf30.hostedemail.com (Postfix) with ESMTP id 5F98B8000F for ; Thu, 29 Aug 2024 14:55:04 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; spf=pass (imf30.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 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=1724943261; 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=hHPkjoGzZrQMtilXtQQnB3IDGAmGGH2FobzMtPUsrJY=; b=dOvDXakboe9UH0on0GTeuPSZPiOAvU/JNWiOcqFKTjv5p3llG5UmMOKuIpw/j8E7VZGbum F2ZAkihfnTOt6IEJv7PEnUeD5aTjR9cdnFjrKnxok/E7JADjBRcxLOy06qLRSr8x6ztHd0 d7NvWmC6F/b6Qmfu8P8Bmh2rVKHrfd4= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; spf=pass (imf30.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 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=1724943261; a=rsa-sha256; cv=none; b=B7LcYoOkcNf2KgifLJUNBPrGhV14Tm4GthetokUnD5ZdBWCbwvvQ/XRKGVjaAnhx7CEi6w 16X9/tnC3tLFcOCtYrFb45DMOvV+vMYVQNYp899SAWgDYCYbtccPF8oW+O1o28zpVuMfBS RPKDgK9rp7SjqnncK1WXPM9M5JPdKIQ= Received: from mail.maildlp.com (unknown [172.19.162.112]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4WvkmG1LYJz1xwR4; Thu, 29 Aug 2024 22:53:02 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 5C4A4140153; Thu, 29 Aug 2024 22:55:00 +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 4/5] mm: compaction: convert to folio_isolate_movable() Date: Thu, 29 Aug 2024 22:54:55 +0800 Message-ID: <20240829145456.2591719-5-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-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 5F98B8000F X-Stat-Signature: ackuswcbia1u6dme7h6fqe9i8dsdfqnb X-HE-Tag: 1724943304-666431 X-HE-Meta: U2FsdGVkX19oowuXVwocoOR/uDm90E1sZOo0rZViuh+mwSG5pLfLHyUuY80EssCGkH013+GQZQ32KYWhwol5qHcIbSaXrHWRngWyPLU76cX/2uDM5/OthEN5Kwc8yPXvhvX9UeBx21Gpf0CwgYTLw3ZYw8X5kBL5gbeF1ZSGi8xDHnh1iADDm02hgjZPy2qukvFVzKO73jitmMFxjwh6f6aJZRbdZYqqBNZOT3Dq9IACcZ6Accnp/uD+10RG/5tjiyYZhQdOvE9eytkmMa2C8YlO5GmwjK1SofrnNjViW98VXutPFY8Mo73Xl9NnPuvuaHcNsQHZ3NQxp4I2imdmTVLOhgnAkbP+ygFJmlKsCLKCiA2TcRMLExDm3BKYEt3/f0kOQFei+DW4/sjNzDz0bviIc6HWzBJL7fobhHhKvVagGsQDp/nbE6kPuAXROmkKuCHMtSzimwoMT4SzdavazxBCI0jnU2V8i8wQlPRpNVmjkSFRmz7O2OtPLriuRRKy9OYHfHd3mqYGhEKqQF+oXrFjfiZVBWxNchX+NWxbJHdZhbkhsy/KC2ZMcqjriHGZV2+0p41lP4IaR+ncbswfgnynuBOJRJX2ErrDrI4EEagYAp7awbCodmw4m+hHm/jno3H2qXAxDFevdLLxJffq6XrRKK25xM1wuO6m36/80scz3DnwJpVlijxFR9Oe0L4wIsGqLt4qvMPwOyM6lRWpCTXO++sZPxUFCpmYq+oD6WgNX921TifrfEtLlGDDLvSRXw5Gfd3c+qRsP8mgPQf+xHOsx3ObTCF5WJ/QsUfzLSYxCKg3mhfcsHeNd+nXiLANHatdQfg1+P4pW1DwJIVQd2imjomuywSa7TSWQSvUzXopjvXYS1Z0aoT/BZx/R7zdpmIHw7F+mFlZSmbJn7sVRqHPogdXgj6LlGR1jlEu6hR44uBFScVTCjxw8vHPSi91cJmDMycFvl/BgANu42a 12kpGDsQ LGoNF/qcz2mzKx29WL/jSaRnwIRfcBn2dqEwdggk21ko5Brb6s5C5UGELX2RHfP69XcqCL29/bqfHeozsvo3uT6ErAXWcqPn/5gJ6Gi4ZvHnvo8isDdedYtZjI1JJndSGluP2QJ3TPA1tBcO3wbbLM7AEsISP7/RNuKIvi2IItKFRY0+whICNVjhzzE/qUdNy/2iI2Th1/OX/AJbveDg61fHmX51b0I06H1dAWcJsSyY89Q3NKtFAkR0PeVXToebu0JwBG+F6WLxMxqhzhRgY7U6T5NYV1GQ7teCJ 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_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 8998574da065..f2af4493a878 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1100,7 +1100,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; }