From patchwork Fri Oct 13 08:55:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13420521 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 B74C3CDB47E for ; Fri, 13 Oct 2023 08:58:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2052D8E0006; Fri, 13 Oct 2023 04:58:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E93248E0010; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BAC508E0011; Fri, 13 Oct 2023 04:58:31 -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 A0B3F8E000E for ; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 724011401BC for ; Fri, 13 Oct 2023 08:58:31 +0000 (UTC) X-FDA: 81339837222.27.2B4FC94 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf23.hostedemail.com (Postfix) with ESMTP id CFA70140026 for ; Fri, 13 Oct 2023 08:58:28 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697187509; a=rsa-sha256; cv=none; b=SgHX6Bqcm8eHRJvUpQm/aaye0/yXWGNuAvbPrvSxmVwvpyfMydf7s7iBuLl3/pWnDkJ40f hYGIaVKK7EcvPsLR+jpxcgNCed6cP4L+owjQHISzcsTTMX/etC4TZSiacS4csLRyGziAPt PHvX4MbUv6uCRRwwUjo+/rxe46K6di4= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none; spf=pass (imf23.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697187509; 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=CXnUonKq8y+vcUdw1/au85alxquWMu9WZTGSC9Nd5bU=; b=yYhL8BlH5IZtZ81ru8sRyJvX7x3l9UVOB4PUbWZqHBJT1ZhzlqxUYmm46lFpcf9OWGrdnP mwJwbvnqbyxo3dVWd7VO8aWLzwrx1DiF7YXfb9ay8K3//Z0ZsSb7+Tp1EnbqTo00ADYtmG G5jf5LtSkGzCnTagtUgQX3AJVxRPcH8= 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 To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang 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 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-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CFA70140026 X-Stat-Signature: ih1statwbkut3aq8ddpbad5uojkbsk7h X-HE-Tag: 1697187508-165599 X-HE-Meta: U2FsdGVkX1+LAU/EKcQC4aR0/tU3tRjZfP6jIyjSN+w8DAnEi0kDh00gEHiCzvrbiWIw3inp3th/uInVdNsTTDhes/Mn6h9BsDWMD/+LIFVr3fEDdtI05wajYnUD13/8svGC6GbNL9J6lwopWGNUGDsGqPfLCnUMY7EiMc36ap1kZKncENLoSyDXmuCE4QT8Asdcy7UdJDNZAxaZpaEZ9PbEmBhfNePokIztKYxYP/O1+U5bj91xTaI9lyPwqpnr7DsEjkhWcAeZB2kXxzP643PzjAwUotH3fanQ0CdlC2R2hVH+Q6Hv1KvdyKBBak2pyKfA9O9XPTvS8vf+WlFpnUbfIIpml4b6I/2tFX65XmVi5reXcy6c3pPrNWpC3jZOQWRwy1Z7nroH3HHYs7sSpog8YQ3xTVgj81UCF2RON0ojoVKjW0L22AbsfEcxTSp2gyUYV/guTCLI1kd3rJxY1LAA85s4dtjzcgtUO6SYf0bZjJz4bddHjkcaS+jokSjS0KF2vFjysTMu02iMTTMZ9oaSk9aLaN8Ru3SmvX9KoYDbRmViGyxeipQqWwo/ZwloKhpcM5kJ6B0E7znBISNYEGVEunAS0vA3XebU7oQyWCHADXBKVQChaskJLwyc05zrW7J/V/oTZp5WN8S8Y9sUEZ3f6mwGbTCWuyOCs9rsjT9vl5/qZMf7RqTZFsAY2SFmvpkMDnXFwbCkvPNdz/Bl+uHt2EEU1ILMe/NAapvJ7voIWOeqaPWUBYXpGwNfSt0TfAu6P7WeBf1lrhr4ZKou976p8rcVIqHaPuH+4kC2m6drLPZRn0C0fCwYNzJn/yLwbhUQQ+B4gFhobcUY6W4TfD5AAhhCA7r3MYSuportzt0MrptEknBRKs80TOMne7N5X6f2thvBkOCWgkla/AXlRm2C0yNkUWNIYhMRy+Ey1T1yqiFjN1AzroJuqxmwQmgmtALy4VbKZq1RAiMBJ1H qcA6J+RL ylXW3itc1piFapeD8dixbcjA+5TSNUAmwdI05TUzc8DxKATyhjxYc04SZpck9zf+11XKrMMXWIU15ayA6L0RgnJSYbhfaxocPkfbklZtayCLW7o2kWDEy0apfmBuGr65+CAW/L9jSy2x3SnnUtajHBUO+NF2rSPBtZacUWK3qgh7pTrdYQzPUuVP+7Y4zP+hxB2E3R0eNeWYHoFBIfgiL3XJNWGvU3zWPnUpv 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_huge_pmd_numa_page(). Signed-off-by: Kefeng Wang --- 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);