[-next,v2,04/19] mm: huge_memory: use folio_last_cpupid() in do_huge_pmd_numa_page()
Message ID | 20231013085603.1227349-5-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1751564vqb; Fri, 13 Oct 2023 01:58:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBfHy0smug3Rx1qK58lukMabWcC0+QIhgmnMTg5VG3vIQklz3a1pmOSQCNWVgTesMi5HkW X-Received: by 2002:a25:3002:0:b0:d9a:fdc8:a0ca with SMTP id w2-20020a253002000000b00d9afdc8a0camr1643430ybw.1.1697187528600; Fri, 13 Oct 2023 01:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697187528; cv=none; d=google.com; s=arc-20160816; b=sI2dAmkVzJPpZ0UNMV1Dj3SAT038+/o00mkqwACu0GG7y+AMOEI8pXFjhrUhPBLiCy +StREDa9fEOtffqzz53D6G+UVDkTZf4jC/PQQhHJdFZk6MfeLNLfym5E6HUPyW3c8IGz 9Q8jxzmAbIPfa1uBbMECu2rpIVIIkMQ6ZBxHeALTc0Ggn0kmFkJMREfyhkihyUe/ZlbD htNvVU8LaBSiYvOvzkM/dJrG5VuRruhucYaUAZfXY5h8FuBJG2SVGVKmz2TJ44BKaUrl RqKO0jKLVfDwPOMWrz7f11R80wG4LG0KHhF46yMLG/H1RuEpt7jClp6VVJt7p9EHGjEM 44OQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CXnUonKq8y+vcUdw1/au85alxquWMu9WZTGSC9Nd5bU=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=Hv5KQLQ2UwLZXPr3d4NXReb2U0SJwO+LFVJo2GWwniuztxszng+pTNo2o3uycl5XS8 GPUlWH3dAS0perTtnJMJXeN69BLPoncPLfwV79EMd3ye3JEVsWSkRvVJvvrcP7TE4Mk3 eHb0rD1FmGMULO86Xp7YfJuORAQ57oN8UZ6izNYe7Yl1vzsANG++iAExjWD+dF2RJo8K WIq5t8BYmxTQvN9Q/GpHa7ovxNaAhXzRFB3MIWohxkmPCx1xi2rCA/vjXrynKXeOCELL rM/8MvJrpktHvwtWLUpxSqAjAC2BDNDVsIy1yoKMb7C4631iJtJ5On1iqj237C3thgCf qCGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id i8-20020a635408000000b00573ffd25b44si4092628pgb.182.2023.10.13.01.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:58:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 44C8882B90E2; Fri, 13 Oct 2023 01:58:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230369AbjJMI6e (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 04:58:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbjJMI60 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 04:58:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CA7A95 for <linux-kernel@vger.kernel.org>; Fri, 13 Oct 2023 01:58:25 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S6L0f4bp5zLqP4; Fri, 13 Oct 2023 16:54:26 +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; Fri, 13 Oct 2023 16:58:23 +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>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH -next v2 04/19] mm: huge_memory: use folio_last_cpupid() in do_huge_pmd_numa_page() Date: Fri, 13 Oct 2023 16:55:48 +0800 Message-ID: <20231013085603.1227349-5-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231013085603.1227349-1-wangkefeng.wang@huawei.com> References: <20231013085603.1227349-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) 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 morse.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 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:58:43 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779630109676666308 X-GMAIL-MSGID: 1779630109676666308 |
Series |
mm: convert page cpupid functions to folios
|
|
Commit Message
Kefeng Wang
Oct. 13, 2023, 8:55 a.m. UTC
Convert to use folio_last_cpupid() in do_huge_pmd_numa_page().
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
mm/huge_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index c9cbcbf6697e..f9571bf92603 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1562,7 +1562,7 @@ vm_fault_t do_huge_pmd_numa_page(struct vm_fault *vmf) * to record page access time. So use default value. */ if (node_is_toptier(nid)) - last_cpupid = page_cpupid_last(&folio->page); + last_cpupid = folio_last_cpupid(folio); target_nid = numa_migrate_prep(folio, vma, haddr, nid, &flags); if (target_nid == NUMA_NO_NODE) { folio_put(folio);