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: 13427134 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A659CDB47E for ; Wed, 18 Oct 2023 14:09:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4AAE76B01A9; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A40F80017; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E62E66B01A9; Wed, 18 Oct 2023 10:09:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C215D80016 for ; Wed, 18 Oct 2023 10:09:28 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8350740150 for ; Wed, 18 Oct 2023 14:09:28 +0000 (UTC) X-FDA: 81358764816.03.77A6C2C Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf24.hostedemail.com (Postfix) with ESMTP id C56AF18001E for ; Wed, 18 Oct 2023 14:09:24 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638166; a=rsa-sha256; cv=none; b=sjyfYO8M6f1l5a1xqxd13olEdqyTB4fZd53DfY+HfMODhc39n7opxXZkmpbT7ePIXVtcoh avdbfNTdQrzdm+8HC5zqfDCTAxbNkg6nKQK6mCVeLdxjase1BGQE0JeNw4ZFQYadEhNZYY KMn4R0JDtsxtmMZXVdjMJK/V0zJKcVw= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf24.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697638166; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y9mdiRTkF16A23MSwCD/zcfcV62lDhs7zm5d0Ve5GvQ=; b=HacjNipMVXh84vQVlFu3Gpqdl5fqwTu6/kRB1jIpli1JdaA0bv+UV2Og1fuZCCzKLZQ3CT kV3KsrX+0VwEUCIuvCa2y40WwusmH67j9G9kIaPZRcl9/rAuqwqQGLsL7vr9Ejo6vn/yoK YgxJnOF9pI9Uf1GC2CGgii/W9TlvqnQ= 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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: C56AF18001E X-Stat-Signature: xaryqe1oihtr3yw4qt7d9d16uia39utc X-Rspam-User: X-HE-Tag: 1697638164-183923 X-HE-Meta: U2FsdGVkX1+9nFXPGwtnHbEne3HhGys7I1FSnufOolRwi8+r4tsI9tvWnird+eVRvaBr9fluEDZS0MJg0RfWolt6eOUYuitrmStsknnIujXhpwiqzXIelG0Am+KQRAqEyiSvQB20aI3kzhKq+WGqgz3PTrhUEpnqXd/eDqX0utTFLwAH8+eJO8d2CElhAb8yzn588gMGQTSfBe8Ag9Cx/MLK3h6woL52Ybbv52PB7zhauL3t4GLMGIAQLDM49E2md4Cu/7xGcyjG4cDThejKy4Nr8mdqzxWc+LwBNsoQIaGSKjOmPqce6YXKe5HZ0NWLrPjtTlbRWmr3utN14Dtjq5M2hfldKEXXonIKyx+WzmKF0WgDo5VaI81sARYHUxeiGCZ+xAmTpli02FO7qDAnV1gsfapYxB++1RuC2dG0SoBgm+K4e6yZXM0CmeeCCBCUz1OKGGk6O6436vzq+GTyaZ/mHX3FPXncXxZ+Go/ILZ0IHtWbWjJD7g7WHAr4fs6sj+pNa3GUrCutbn7688Myd3wQZm+wWKpEdcEAOf9N6R9gRf8Xstv6pzIFGsVyHaywVJbzrr8v+Nj8KNS8lXFd8i3h8krPRhYoW/sw0LzRX6m3LULFM31HF5CB07tFSh9vM9iafCF3w4NHJFtV56Wil2dxzgdDyhRI+UsUUY6bBk3oQy8z/Q4NXJzPmu01MxL+WUEW0a14xMByPT1rvR+Nr1Qaqg3a0Z7IMp+W3rFtiQCyQ4BRaf7wM1ewvaLzqz9BDYYrkhkYMFVvJZBHxyqcNJbVhvy2cKebY1h7T4auJHBzrCZ78zHwsXPuvux/FH0dzMrUiSXHXhYZBwR1XZS4e5AZWgRWzpjoQyHMigJpGAGGN//be32kyEHYCIgdDs42GGn95qtvdmJSlwdnUPnUx61sVjfu50t+p4ruNF5Ip1KkDTnUqLpNgnwpc5/MUTgf8tacvXOReEpHd3Vxwri GemGB4Xq xL8Uh5fZj94yo4GMpaYE8N/Cis0WxgpZMcBjJS8p7uipabVQOM0VMSEP3K5MCTkjfaYKLpm0ZkjF5WBWamwLH0sBop78yjvC+whoga2nC4p64OYp6gNlkpitrAeaqXbLcovST0oaQy/EtE9725+ghRHzqq3YJg1sijEeiWrPTbD37fU0HFK4nLvxRPU2FiCj8S8FhHPx2pjedVNXvkPa/ZrqtM4eKDU808bKTOgtKhgMcjiIcxU79JOSY7sdgKzSGD73I8DS/O7bS6E13uSLwb4ct3ebRra4T/+d3 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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);