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: 12990 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp338947vqx; Wed, 2 Aug 2023 02:59:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJkONZ8wvpaMLQ3AXMCKLqF6MKOPxvGDehGD3H0WN+i30ken4BjVmFtEtOzZUxQ8EM/XSJ X-Received: by 2002:a05:6a00:1827:b0:687:596e:fa72 with SMTP id y39-20020a056a00182700b00687596efa72mr3944183pfa.5.1690970369810; Wed, 02 Aug 2023 02:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690970369; cv=none; d=google.com; s=arc-20160816; b=BFXnYUo4dD6+qHttOg0IbsHt3+Cu1+EYJuSY7F3AhFIOuaeKS4EggzS2R5AxEABHad Pc0UxDAqaPp2BLSJshxFcslBNYHOVr5P/ruLvJn0GRr7kDF0/31e+ylQxqDLI2MjxxYs VuN4qx3F494ysrFG9QumZZ535KXYfQ9/weT4pdoR6M2mE10dPv43LKvUo/1Ve6xI7juz CKnsnhNlifbOxXrsFaOIisDb1kK5nF5IEKmHH/CJNDJrbaJ4cQ2HICZtZw0HHRc0y4Ey PWcQpG4NEGpQ5AvG2HjJGVj2fVRXr29qAnh3lbHeoxm4PVc489AZBphUev0FuRomELm6 qagw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AoDsahcJfa/0h2BvOLDizPDT6BiVsqiQgJ9OynzJVXY=; fh=frTJ5b0OruHscvMLDfKfibXYJSJ4/6aFlw/4ZMUelj0=; b=ZpxzczOowq4oOD9ADWBFoYn9R6slC2aoIaZKdPcHCYoss3LNzXsQN+ixeu+2Ywign1 CygBcLmFFuGGmumGV4ogbvgR+va/hou/e9OOoHr5qxZtFVqKSJKahI4oaZFTy5KZy6L1 D9yesBfb8R3OFe1so8pTvO4/Vn7U0HrMcZ1wKNaKvKDeWTtVsE/JPjYsxg8HfW1KQz8n XgnngcfNyKCD+xn7J12jWNEijzU3+gra8526y+PdQ82pFWIPMidcJrr+Um6Gd6g5P/Ok r5fcgKMUbif52TYC9I2pj52f5+/9L+RPicCneJAOTUesq9I/7qx60tA2W9NHsWNNxrpm Ruvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b005641af57bfdsi8761993pgh.144.2023.08.02.02.59.15; Wed, 02 Aug 2023 02:59:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234105AbjHBJpj (ORCPT + 99 others); Wed, 2 Aug 2023 05:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232126AbjHBJpd (ORCPT ); Wed, 2 Aug 2023 05:45:33 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEDC2D52 for ; Wed, 2 Aug 2023 02:45:21 -0700 (PDT) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773110946561030723 X-GMAIL-MSGID: 1773110946561030723 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(-)