Message ID | 20240425084028.3888403-8-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 16AF1C10F15 for <linux-mm@archiver.kernel.org>; Thu, 25 Apr 2024 08:41:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5CE916B008C; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C03B6B0095; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 15E046B0096; Thu, 25 Apr 2024 04:40:57 -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 DDF466B008A for <linux-mm@kvack.org>; Thu, 25 Apr 2024 04:40:56 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9B9A0A04AA for <linux-mm@kvack.org>; Thu, 25 Apr 2024 08:40:56 +0000 (UTC) X-FDA: 82047408912.14.ED84634 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf05.hostedemail.com (Postfix) with ESMTP id A23F8100009 for <linux-mm@kvack.org>; Thu, 25 Apr 2024 08:40:54 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1714034455; 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=XytKMxC84xL9ec+vAK1PF9I1r7EBscCHkISCjMy35m4=; b=hx0Rd48yWh9dBl0PrK/TcVJJW/Ig6LK5RFURkREiMFueUq28DVljRk+H4bcvsA5Uu21EDL 2njzBDZn0FnCGUlqxgqLmIcj5Z5iqIV/xREVdqb5NoEcGsD8WcduOIuJL14rLKq/I69gFZ zFVb1qHTqy1LeZrZKrVptht4UCIkL0U= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; spf=pass (imf05.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1714034455; a=rsa-sha256; cv=none; b=MLzdmnS2o/Oqvy7euuXbRFi0G1VoxI6NIlSSirkeBmMpysxYumQzbvFicttddoNrly5X/W GLQkbauOvDZEmmxAy2Q0VBwbDj+jnsx948Np/NfwfRQ6JR9K6T7aMfHEjsR8b2VNMtaztR Y54S5gYuvuDKL1kUNwK0H5uLSJoaI0M= Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VQ8Rl0hSHzcc0S; Thu, 25 Apr 2024 16:39:47 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 20C941401E9; Thu, 25 Apr 2024 16:40:52 +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:51 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <willy@infradead.org>, David Hildenbrand <david@redhat.com>, Miaohe Lin <linmiaohe@huawei.com>, Naoya Horiguchi <nao.horiguchi@gmail.com>, Oscar Salvador <osalvador@suse.de>, Zi Yan <ziy@nvidia.com>, Hugh Dickins <hughd@google.com>, Jonathan Corbet <corbet@lwn.net>, <linux-mm@kvack.org>, Vishal Moola <vishal.moola@gmail.com>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v2 07/10] mm: migrate: use folio_isolate_movable() Date: Thu, 25 Apr 2024 16:40:25 +0800 Message-ID: <20240425084028.3888403-8-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-Queue-Id: A23F8100009 X-Stat-Signature: zqgq3cnw1xiiniqf86pwb4denhbzw9gf X-Rspam-User: X-Rspamd-Server: rspam07 X-HE-Tag: 1714034454-735726 X-HE-Meta: U2FsdGVkX18kxgs/Suo/0B6jsYnRGd6/od831NNFhQp6itT/yI7FZKbJ9NsO0Ug+8UbDzgXHz3Sdak9O2Jp4CFi/J7t49kbcYg1S9GQz7JGteYUsnU4uS9/0WGzaEfOba3FaPAtG1SpcR1YkftHdIIyXcWWh0Qbgd1UDCgQoLswzpmcETwhqDbtKGW1ntt4MlCLXMaXXaXEGtYcZZDTyI9yBNFFxfd7ox3RQa+i3m6lkAwYjePzzSfPALCsK9T4QT9vIukJMFRiJIr6gpnR9WRBr67oALtyLWNoPDltaMvt2vGSUQjVs0InCtq+D4qS6otTaYIpRmB67BApIPXGrVl4xgEvl4yHgQmcojJMTbAbVpzCUwTn3DOqx8V9wmHWqD96iAldpLqHwWQSJ4dLIDEocyIlslp076KeovXp2LhZqAtZByyQ4bet1YEoklTYYw4fWXYPzdZh1w5o0tu9eRPlW6V4+y/VyTGXBkyMQddGls5M04NW/S0SqsB54oFFMF5H0MSetmLjGgPaQGr079vLNsM2C1TocBL2U7aXg+eBxdu4Nu7aOETsAMkraZb2OI7/Sw6AwPGL0Pwjov4wAI+ff22AfkMg65HX2LjKRhWzXhi/solVyqz0cN/wyOxMBkXeLOG2Xh3ZyrtG3Ys7E6zVNetV7BvQugT4MriOzZja+X8um8j1ITYqLfGV1dfkwuxno2N7gY7qybE2lXqQOnNXPbUddOiTe9mluJ6uBJ3cUr2YISGmfarTOeDAYvVf0IPbid7TvCeuu/UrMb66Q/0ZUgj9E918M8ibPMRMzgz3rtuLuRR4W/egaYaIYM4p6VjwXs0NSnYCmI2+uWYJ2qclPy93PMxtuiZF0xcq9ZmQBOxB2yKu8xuoloD3oLWs7tpq83cnKT/IoaD75QtC1Pu+DjVTpbPczHtI8mgGyM46hrOB4J/RHJaaYM8fsiLipwS8EUAfva/nVJpGNU8l 1Ow== 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: remove isolate_lru_page() and isolate_movable_page()
|
expand
|
diff --git a/mm/migrate.c b/mm/migrate.c index 8041a6acaf01..3d56604594bb 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -197,8 +197,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(-)