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: 154889 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4817845vqb; Wed, 18 Oct 2023 07:09:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfndFojNifvWvYF+QLIKbb8a32uURIxAcTPNwhq3Hvd3R75O8fC0ZJFqHP2LjXlUd7ABwY X-Received: by 2002:a17:90b:4f88:b0:274:99ed:a80c with SMTP id qe8-20020a17090b4f8800b0027499eda80cmr5730985pjb.3.1697638169158; Wed, 18 Oct 2023 07:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697638169; cv=none; d=google.com; s=arc-20160816; b=hZ93S41QkBu69Hg7HVZM05CmxX+O0hU6nUhEDOFLbIIrxlPnvlzeYcahuzvUdZG8Xe 0HAFghNGebQqZTWr1JQO7+SGT89n/sMupKRHl5pe+q/8Qvn1JV9WLtyavcl2WFAiLoW7 tPlJ9bCcOrQqgcu1SlrVmqQSpCCHDqbYU3lsb4c4OwnLmvkQLB3QZxe+U00KO4X8DA8H DELE5frGqvCn0Zkzyr5thIMWLIKt1iCEK9M7XYsNlD8JulJGmSIhpSdjrpwvL0Koz2wi n26yGyZXA624e7IffIZdgOM/Gkxqs/E/2GCl3wo62WpSLa9CFvdDY4oKfJMGdrrCHOZa vK4Q== 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=CXnUonKq8y+vcUdw1/au85alxquWMu9WZTGSC9Nd5bU=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=c/iF8ISvNxVC4ZZRiSLJdAmUVU1OUPoFpEZMSvxM7tSleJIkNA5NR1FJSFP+/xD6Sr Z3KaHT1KezGQeD01OwUMAM0i+bsQN0An3LKI6EEEztLLDkLLTv2T5hOE2bRnqlsE+i9L ZNdy0A2wWj3mxsjhlReakEFPIdPYEWlqppb3xOUJDj14eEYSdt/awxUkgi95fYcwJi6h 8XBCZfO+EWUQiN4tPunq6mukwzR7ohA3pudXctMiPRNOsJMX8EappmQPgNrfchpcBL6w /12hgbxGhireYrCdYAFIqsEWvUwU9e5XcdN4eHURkBf15V3AFcTjB7eUThiCP55nY6jy /AXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id x4-20020a17090a970400b0026816382fdbsi1452495pjo.40.2023.10.18.07.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id D7000817C3E8; Wed, 18 Oct 2023 07:09:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344830AbjJROJG (ORCPT + 23 others); Wed, 18 Oct 2023 10:09:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjJROJF (ORCPT ); Wed, 18 Oct 2023 10:09:05 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4E1FA for ; Wed, 18 Oct 2023 07:09:03 -0700 (PDT) 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-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:09:24 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780102640945839747 X-GMAIL-MSGID: 1780102640945839747 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);