Message ID | 20230921074417.24004-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5075529vqi; Thu, 21 Sep 2023 12:08:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf+gXwzQsbV2lUTqgIXEnyLeGa0rgaBSSwIYvXJlVbtrO+5MSR/AoCljtd5rirwTxqwvgj X-Received: by 2002:a05:6a21:a588:b0:153:a00b:dca0 with SMTP id gd8-20020a056a21a58800b00153a00bdca0mr7660708pzc.11.1695323287971; Thu, 21 Sep 2023 12:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323287; cv=none; d=google.com; s=arc-20160816; b=ZivBuRDqkKAtNulHJABxQvv074J5A+Cyi/5IbilBhM+md9cTG/hv5DsTVdLDBXCJVR bIfmShfki+dtD82OPVebkmipqcnxzBWMzFCqQRo60k0S49QamXxFy5KlOBAilOamuLxA vOzfJfj1+VjlW2gXB8sA3TvscFDGY5iym4Fj/QbRkFcFRZBaixwWjaUxQodysG87/6B7 yE6MI2DlD/YitxMkGlEiTYU4JggZeF5eY66HwtLH6nx2BoibKnyAZpLIlL4PYJ5LOuF2 he456OdY1j1Z3TGPzrwaoas1tTBl8y5kXlHuCRN7wJx2uTVJ/Kbuv0EJH8etAdIv+2d/ NNvQ== 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=ZPOUAX0QDLwLSGZ4x/PDHc/7VKJlI4sH6r1NnuBF7wI=; fh=Je6qNyAM729b1goCtB6PkBk+yQrlQCIjJMRY6BFgKTo=; b=i79vrYI3Dq3LL+cIkwIc/jAu8i2vTQ6L32b1XydG5q+4zkBwmn1XVb3ebDzp4jD1+z TbgkENeBOXO2apEp06sqPL37iu/SKygwb1/8IGicC1o7UXhnQA7U76OEZzwoGNYBf/VG X56TvX6F5jBJGXrL+bqUVPEOxvOctV3drvg0oPaPq0pUgrb+MnOajnCCSqdmp0bTisCI nsv9Hnu0rFtK/sEdz1MXH7BUNh1xqQz1GgPF7inBHLrGu+Cf4xNxsWyrBe0mldcwZ0E8 oBLpeYq3IXpARNJ+EYyk84EP2L+G59OsXJ4QJ6dy0qKrLYYbLZbf7OXs4f187vMEpiwu jX7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id h3-20020a056a00170300b0068fcc67e73asi2039064pfc.18.2023.09.21.12.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:08:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CDF668046BDC; Thu, 21 Sep 2023 11:52:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbjIUSvZ (ORCPT <rfc822;ruipengqi7@gmail.com> + 28 others); Thu, 21 Sep 2023 14:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230289AbjIUSvB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 21 Sep 2023 14:51:01 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10853D5116 for <linux-kernel@vger.kernel.org>; Thu, 21 Sep 2023 11:41:44 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RrnQr4yqDztSw8; Thu, 21 Sep 2023 15:41:40 +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_128_GCM_SHA256) id 15.1.2507.31; Thu, 21 Sep 2023 15:45:55 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <willy@infradead.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <ying.huang@intel.com>, <david@redhat.com>, Zi Yan <ziy@nvidia.com>, Mike Kravetz <mike.kravetz@oracle.com>, <hughd@google.com>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v2 0/6] mm: convert numa balancing functions to use a folio Date: Thu, 21 Sep 2023 15:44:11 +0800 Message-ID: <20230921074417.24004-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:52:11 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777675311780627240 X-GMAIL-MSGID: 1777675311780627240 |
Series |
mm: convert numa balancing functions to use a folio
|
|
Message
Kefeng Wang
Sept. 21, 2023, 7:44 a.m. UTC
The do_numa_pages only handle non-compound page, and only PMD-mapped THP is handled in do_huge_pmd_numa_page(), but large, PTE-mapped folio will be supported, let's convert more numa balancing functions to use/take a folio in preparation for that, no functional change intended for now. v2: - re-order the patch, drop 'extern' and wrap to 80 columns, suggested by Matthew - rename vm_normal_pmd_folio to vm_normal_folio_pmd and fix cpupid, suggested by Huang, Ying Kefeng Wang (6): mm: memory: add vm_normal_folio_pmd() mm: huge_memory: use a folio in do_huge_pmd_numa_page() mm: memory: use a folio in do_numa_page() mm: memory: make numa_migrate_prep() to take a folio mm: mempolicy: make mpol_misplaced() to take a folio sched/numa, mm: make numa migrate functions to take a folio include/linux/mempolicy.h | 5 +-- include/linux/mm.h | 2 ++ include/linux/sched/numa_balancing.h | 6 ++-- kernel/sched/fair.c | 12 +++---- mm/huge_memory.c | 29 ++++++++-------- mm/internal.h | 2 +- mm/memory.c | 49 ++++++++++++++++------------ mm/mempolicy.c | 22 +++++++------ 8 files changed, 69 insertions(+), 58 deletions(-)