From patchwork Fri Oct 13 08:55:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 152412 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1751684vqb; Fri, 13 Oct 2023 01:59:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCVnTMyKuFnfh50cMTbm0OL0IAweHE3FQk+Y1AriuaPc04MDon4PQRnShf0igy5Q8u6JuH X-Received: by 2002:a05:6a00:2d1b:b0:68e:3eff:e93a with SMTP id fa27-20020a056a002d1b00b0068e3effe93amr28282565pfb.2.1697187549081; Fri, 13 Oct 2023 01:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697187549; cv=none; d=google.com; s=arc-20160816; b=oqe4BaEJsCV3meGKOpSgbXOmkiLDzexHRAJXcpc88gt9S0Z0xxJ+94efNTs+YzXmXn jpB0jsAUeoU/4DBgwRNFahSBdm8M6m0+BJnvKcWJgD9p/2qjpRQpuMFvFiBHhqjtI1S2 JWmRtJw+WDIZGkHwWys5NDqMZF1bpShWXRbl2HNAA2WVaqddAfORcEvI17N0rKNIhmQA KAHEuuDn0Lgj1rYQ818L+AZBk6zxyRXBYaN37ZEs8WCKhVsJeA7XBU9oVJp0PhDQdzcs NsebMGg03Ju09vVK/wRUGnalh412zq2hQj9LOVvdOK0xmScY31r1uUimN2Ssk9aRfTGx ctxw== 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=y9mdiRTkF16A23MSwCD/zcfcV62lDhs7zm5d0Ve5GvQ=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=yVGPXf8wOdhMv8qltz8uZpmh2eLO0uTLs9XJhd8PPPrQZnAggoc0qXXyl5OGdj2cUw 5q/4WWdXTxtM+uOxb2TtK3XogBSmFzVfkncISpN7lj4OWrDfG4/0MrCKmAMYd1NQRXtP FodM2zBeP72V19QIDkp3tcmMeh+q7Ej5nOqq/5Xe+JFOMKgrQlAm2xa/dwxsYCV+nidG DrU+YphIUKMXMSk8bnAcvtF9RsBz1NSonF2Adb597uPACUD90G6k/2opwigCWPRAC75q ztIntsjE91oVxNpifbk5zoJYJfaBsuvBGyp1x1qG83TI1pN9QbfSqzev+8edDt0T+AMg Eceg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id f11-20020a056a00228b00b006b4d80642bbsi375924pfe.182.2023.10.13.01.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 01:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id D3AA581B5AB5; Fri, 13 Oct 2023 01:59:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjJMI6c (ORCPT + 19 others); Fri, 13 Oct 2023 04:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230273AbjJMI60 (ORCPT ); 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 BAFDFC0 for ; Fri, 13 Oct 2023 01:58:24 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S6L163Z56zVlTh; Fri, 13 Oct 2023 16:54:50 +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:22 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH -next v2 03/19] mm: memory: use folio_last_cpupid() in do_numa_page() Date: Fri, 13 Oct 2023 16:55:47 +0800 Message-ID: <20231013085603.1227349-4-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 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 01:59:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779630131383357785 X-GMAIL-MSGID: 1779630131383357785 Convert to use folio_last_cpupid() in do_numa_page(). Signed-off-by: Kefeng Wang --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index c4b4aa4c1180..a1cf25a3ff16 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4861,7 +4861,7 @@ static vm_fault_t do_numa_page(struct vm_fault *vmf) !node_is_toptier(nid)) last_cpupid = (-1 & LAST_CPUPID_MASK); else - last_cpupid = page_cpupid_last(&folio->page); + last_cpupid = folio_last_cpupid(folio); target_nid = numa_migrate_prep(folio, vma, vmf->address, nid, &flags); if (target_nid == NUMA_NO_NODE) { folio_put(folio);