From patchwork Wed Oct 18 14:07:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13427155 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 D77BECDB47E for ; Wed, 18 Oct 2023 14:09:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0F7406B0205; Wed, 18 Oct 2023 10:09:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0A6606B0206; Wed, 18 Oct 2023 10:09:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D78908006D; Wed, 18 Oct 2023 10:09:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id BC3D16B0205 for ; Wed, 18 Oct 2023 10:09:37 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 915E7C01AE for ; Wed, 18 Oct 2023 14:09:37 +0000 (UTC) X-FDA: 81358765194.26.242FAAC Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf06.hostedemail.com (Postfix) with ESMTP id 20872180021 for ; Wed, 18 Oct 2023 14:09:34 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1697638175; 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=UYcONFNgTgZAuOfnwYugwmZt0la3op0tfp8cH9nCtWK9vkyDvK/WVpXA2xJuFoJ63vFtQ0 +4DSEduaDYlSmjpLkq6ndERTotvD7l37G2pEeka1kfrNJbzoUfDiSsV+9fc5W1u325es5S 9/7y4jznayZWU5ciwTgx/F9sI6byKYQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638175; a=rsa-sha256; cv=none; b=QfNXFG4aroHHn0RXd613nnzWMECdOdJeFBwMHaukbLmu0+g/tw76/FVXIyX5lM8Rms6lVS SWW9w1Yz6v7+nJNantFs9twDRMu2OeSw1eL3r0RH0G8q8oGNsNJQj1J9aOf76woDS5Utir SKImcA7wqfx19yFxMKs2pGt9l7X6dVE= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S9XhB0sD5zrTNh; Wed, 18 Oct 2023 22:06:18 +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:01 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH v3 04/19] mm: huge_memory: use folio_last_cpupid() in do_huge_pmd_numa_page() Date: Wed, 18 Oct 2023 22:07:51 +0800 Message-ID: <20231018140806.2783514-5-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-Stat-Signature: ipetwcxsyksudsbxe33f1kpe8yakh3hu X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 20872180021 X-Rspam-User: X-HE-Tag: 1697638174-97827 X-HE-Meta: U2FsdGVkX18aQLsXF/ub8CpXwM9uHBBygamhhkfj+5ksa6IoedbCVvLlaLpFhahl5VF9LHIM7IJDYNAwcPLWIDu1izqVZLxieQaVIhcknmBuoxOp5yzWE3zcRuKkObeK8U8Cs7Jq646+pdh2DELPBX1/kRclTdWZbnq8p0cuJmm/3/beU20Voax5VUvTpyCx4z+vcxR0dCAuiQH45ANPe73790ZXQGOvlXWloyJ42gpMF/REUL3S8pr7bJiHsXzG4WmdSs6ltp4P8TSiyh7GrtsbozAieJ3zHRb08qNvnK6hCDZn1zCzDfnOi+856Kr5N6euMOg4oQpnNiKsqWbGCFk2l5lYrn57KmNnS2FUQfqGhOfZqOl07+aev2u1acuJDzNoB0A4iYef0RyWPOvGd4R9VgyFy0gqDuau4ymZHPOpyZVDkjECZzccx6O24KdHPJQ1JiR9thVxesSA/uoUaJi8SqQA66j321a5FLOJHhA+UpYZB6juPUggwGPMXevRHDgXi9SFBszV0XkELPM9s38D2PwNrOswM4C8jJQhTofGJNGTft6ikkX8dMSxQlBqZXeE4elPZMeQE80cajkgM7LQbSrDrV35CFQT4LCcU5f6q1VL5Br7SJHX1BKQTzWIgHJln9BN68+BEgsHaXCEtpjcS8JCSArcpJgO12Dwhdxywn3iPz8O7HpMvDanSLahUMLB7aiXOyMIKV/ZGuQltn/r0TNpq60cKyaoG9eD9Lfzriev10snFkmDGuFYDpw94eWmLiSWpWnYKSC/TO92JpZfzES1CIVTQqfJXVLHM2q2W1NbIbIRahHtCNCyJXxtz+/ix7mtjjdO1R5j8TG3m/F7f3qK2pz3dTOHwWp+T04TADclpdE7n2hivlNNdjIXf1G9KD4bkje0Kg/x3vTuOGjBemvvHs87ix/RKnusubuE0YHTPFDtYQeONHyMxtMqzPg6wkurNALCEwFetX4 GKpQC5pC lBozaY/ecpLZpfd1ovlfhAVTh9GJ/lyHpxP5GOvGTMD2gG994AUKEkoXKKuq/7KBnvcNPj/BZp4O6YXrrlgUcE6AZt2yPaAQ/M4dONN1qRjxgDUe3cq8QeeRJBmKEGX3Z67X9NSFrZOmvPdsDj6ECHExgy5sWnapzbKA5lvJecf8Ywh4P0F1qUUOwBD3pPo+MTnZWee2kPv8IZ1SCT16FW6dMmIG/2CYwingXR+0spC6RtpLlFKcbsrVBbTEiZEM0uDzhc2t1mLAt/y2mvN52N4fWity6oM3yANdNzcCLCuBzPUIiSf5pysKIrw== 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);