From patchwork Wed Aug 2 09:53:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13337928 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 DE7BCC001DE for ; Wed, 2 Aug 2023 09:45:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 32F4A280142; Wed, 2 Aug 2023 05:45:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25CD8280112; Wed, 2 Aug 2023 05:45:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1255E280141; Wed, 2 Aug 2023 05:45:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id F3BB4280112 for ; Wed, 2 Aug 2023 05:45:27 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id BB8BD40DC6 for ; Wed, 2 Aug 2023 09:45:27 +0000 (UTC) X-FDA: 81078681894.05.F11DBD2 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf30.hostedemail.com (Postfix) with ESMTP id 439DD80007 for ; Wed, 2 Aug 2023 09:45:24 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; spf=pass (imf30.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=1690969526; 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: references; bh=AoDsahcJfa/0h2BvOLDizPDT6BiVsqiQgJ9OynzJVXY=; b=5+iD85m+numKcStNWRo3Iq7I4bi7Uwdj3dPjiQJyp8s0FqxryeTE98LBgoozi8eMfc1G5Y dE4QzUoYC0TsM2P57J4ASYeDsrYpd3x+loUZXjfoXlaXaevgyzpgk3k+WtVnqaL/+ui6+x Ly2Ch9wLscTX9CTxqfQg+fPSQa25r/0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690969526; a=rsa-sha256; cv=none; b=k33/feQx8e2FsrwuxmMuqM4ETwZzR+2DdSCl9tZkNbnP9Z5c6PJJ5lu553ZvWXbMUKlN+x ZJsPBxJ+Y+AYF0HZ8PyUyC3MmYT2+/MCQU/at25CMgnpl+huDQYXP+0sWTKyw9GYFLwDw+ ExDGcFTc+TGs2bnDUQGBrz6o7Gu5MN8= 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.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RG6WN4LxvzrS5N; Wed, 2 Aug 2023 17:44:16 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 2 Aug 2023 17:45:18 +0800 From: Kefeng Wang To: Andrew Morton , , CC: Huang Ying , David Hildenbrand , Matthew Wilcox , Kefeng Wang Subject: [PATCH 0/4] mm: migrate: more folio conversion Date: Wed, 2 Aug 2023 17:53:42 +0800 Message-ID: <20230802095346.87449-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 439DD80007 X-Rspam-User: X-Stat-Signature: drj4xg1jmfn5cxfq7bturas3ty9gpwgp X-Rspamd-Server: rspam03 X-HE-Tag: 1690969524-991590 X-HE-Meta: U2FsdGVkX1/Ce3+xG5kkJxLTuqLerJGo0M13Qpu3BDwRjv4l9zmnCoVoV15hbOR5l0piE8t7XDmCom562xk4cfODPiW493jyU0a7wU6frKHMi6gaaIu6lVAmAzcX2qHlhEKfzlumPErfcU2GeU6fZQCfhDZ/79jhC07LvAyIJB/A4Hp+Lg21mp8wRfvzodO2tbEFYjUXFWes7ef0tiIavw3GcEDj7M5HRXpFibnmxmiSPjF329XGLGHBRbY5H7utlGJmcdo6ImSaCOnympkiyMINhQt3mXywGP6sFtP5I5MASEoBG7MdJC3kub+ENlQ+JTHMxGqtRmPKuHQozf/qikrkyleecQShaL7ECXaMDq6E0WlDX4MNkvNoA8HXU1PI93STWB7pLpBAw2Xxl8Ss+fq6yeJ8nmnIoyLfNA1ZOR+5xDrdnLIRc0OBJNmr09DT65pOsgITVwKNCkJPqjAinuf0Wfo9NFredGZ25oLGcMobHolovXVTux9EwDovedk6YrVmba2KSK6qvQmjVQAR2lBigJthjEaUjoe6CcNbqT2BXSOWQcsnA54QkiXZZfjj4D53lgIUb6ZzRGNHylotVKaKyH9EwURw7egMdmjvgZfJPazKA19/zR5mNNoxchBjiMSA5gkzK51TfSO1wGF6ExiifTK/s+Xgr7XYlhNkILdI1mC5vJwRPOsYqPDMQw9SsBNd4Qj4dDnLLMVkcXXTAxg9J0Rc5tHqAdKM6RoHg7ttYlZvb+kub9aNWuOz/kcuk8f2fKSEIEuBsAlDR0eU4R3JsoVAsV7uiXM8YhXvA16+dHk5zP1/sMft9RIUPoELpIIIJ3dooYJOIc2o4TVlYzvewQrvi5QysgfxDqX/k4BDrVOtmmfYDzQHTmwX1bjqvdxaRTnaFRNh2ciJBfZEAWE3Y54g46QNoQeY8fBdBvdIYjBNxxdmLB3SewFTn6upr2U1dYPwSpC4zKi1TmF mSYmARLb t3ngRhYolkmYR/AZvrD7HTapQOpL4EALWv1Nm40hZQmZi8+evWheVhNC7t3coBwvZkGdIi1W7yhi5sRPlv1kSudvtYYe6E/KfKeGEYEKYrZGr/pLnknHzunBeHQ== 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: This patch series converts several functions to use folio in migrate.c. Kefeng Wang (4): mm: migrate: use a folio in add_page_for_migration() mm: migrate: convert numamigrate_isolate_page() to numamigrate_isolate_folio() mm: migrate: make migrate_misplaced_page() to take a folio mm: migrate: use __folio_test_movable() mm/migrate.c | 101 +++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 51 deletions(-)