From patchwork Wed Oct 18 14:07:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 154887 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4817800vqb; Wed, 18 Oct 2023 07:09:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErUWMdsnwGfZN3gzdU9MZ4S4mx0mxQ/fVGNpH56ybylE9gdlm7glvBjOJ0bS26dPV4hBn9 X-Received: by 2002:a05:6a00:2a41:b0:6bc:67ca:671d with SMTP id cf1-20020a056a002a4100b006bc67ca671dmr5179457pfb.1.1697638166785; Wed, 18 Oct 2023 07:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697638166; cv=none; d=google.com; s=arc-20160816; b=godanv8B4GWmHn9qP6+X3JkCsl1myqkq16GBs4lC2jHf/2u7KTeFLPgBZlEhW4LCNs FCCjwcvomS0+GSa7pfr1a7kc17gLAft7zpC84vb9Kmx5BVk7RcdmVc+s9t2pt5EI16Yy ktohMMyBG1e3Tao94SAoqeFz8uerTalktssaSpmQPjmBOfZKdS2mPtCoj/1kQkdbd4Jv KiWVyCCwe/ir9KUUCn64pvxIZcEmkx+EAWU2pLhzA5unYpm9qxfZiOB0SYUOj3clnc6g WoFlFRER81QcVlxQ4HlY/MddA4za6SXfa9YIUeUG8wqTNn7ERBwIXpyizqfB3LElrHVa BApg== 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=JdQVJrAElfKng+OYmkwm9YRwHbUqwZeyP6t8cnejx4CPjRQUIKvMqEA0B2+hStT759 qCdyeAZ6O6RFKugHZMQ3/ZhELmX206hRnRUNyhl1fFPRO0c+WlkPtv0nPlNotbQuteme /oMjo7CYiJ1JRW0jBtLu6xKi+RiOZYyRWMyTH7b7EtViFrWFPjE+Sjx+Z0YNv462kBNc dxp6A1Ggi6KwBfqGTgENzk1vEA2+9oFn1YZzwJ2VQu6midHp1JIvFvtDSOa8Ys208gCh fV5rJWZnTApARutFSmYzYbfTl8bDin8+GHnCQ/FPOMzraCLqk3cJucN39/IYJFcoDTPC qUrQ== 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 x31-20020a056a00189f00b006b728259b67si4153812pfh.177.2023.10.18.07.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:09:26 -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 E58B180DBAD2; Wed, 18 Oct 2023 07:09:21 -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 S1344854AbjJROJJ (ORCPT + 23 others); Wed, 18 Oct 2023 10:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbjJROJG (ORCPT ); Wed, 18 Oct 2023 10:09:06 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E14C106 for ; Wed, 18 Oct 2023 07:09:04 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S9Xh93L0qzrTNS; Wed, 18 Oct 2023 22:06:17 +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; Wed, 18 Oct 2023 22:09:00 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH v3 03/19] mm: memory: use folio_last_cpupid() in do_numa_page() Date: Wed, 18 Oct 2023 22:07:50 +0800 Message-ID: <20231018140806.2783514-4-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> References: <20231018140806.2783514-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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]); Wed, 18 Oct 2023 07:09:22 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780102638234479000 X-GMAIL-MSGID: 1780102638234479000 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);