From patchwork Fri Oct 13 08:55:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13420520 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 7A4D9CDB485 for ; Fri, 13 Oct 2023 08:58:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E95A38E0012; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DAA108E0006; 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 AE76A8E0010; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9D3988E0006 for ; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 6DFE71601D1 for ; Fri, 13 Oct 2023 08:58:31 +0000 (UTC) X-FDA: 81339837222.28.7ED35AC Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf12.hostedemail.com (Postfix) with ESMTP id CA66340017 for ; Fri, 13 Oct 2023 08:58:28 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; spf=pass (imf12.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=y9mdiRTkF16A23MSwCD/zcfcV62lDhs7zm5d0Ve5GvQ=; b=k4jf+NR1IDcxOrC/6k850sIipuRrPnhwnv+pb29nWY4+FLO0vkuq3vQfzx7AePVeM0CmHV eskGjyjXOJzAmdvwhUeREWDTgJ6PqN8hIFJcsWOuCvFh4U12Z46SDqGirXxSdqxQRkkoNr Iakf9v1t75q+pDzf3k9JFpSIJI+Rsbc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697187509; a=rsa-sha256; cv=none; b=XrXx4TZqsX5MvYeceSmBcZhjaZGt3mXkLmqr/ZAsiEebFAeOXO4pc7uE7PA4KTiB1u8Ug8 ymDBsG9MjPoIqdS9t/Dp0IlhqOr3NDV1+ArQU/HR8C+5PSPabOU7rM/xQuqssfrQMsswy1 8kvRCZdELrr735PkPqTVV7HDoXB4zlM= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; spf=pass (imf12.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 Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S6L163Z56zVlTh; Fri, 13 Oct 2023 16:54:50 +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:22 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH -next v2 03/19] mm: memory: use folio_last_cpupid() in do_numa_page() Date: Fri, 13 Oct 2023 16:55:47 +0800 Message-ID: <20231013085603.1227349-4-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-Rspamd-Queue-Id: CA66340017 X-Rspam-User: X-Stat-Signature: x9be8oouuu3mqypyqwbb5ef5iuuwa9zm X-Rspamd-Server: rspam03 X-HE-Tag: 1697187508-743301 X-HE-Meta: U2FsdGVkX1+V/7GEa03PNYF7+8RJcpW5eczHTrWt8LMEZUhst36bh3rCW8uwsE9OQGxcHoZYWaJwbpSUKg0KwPaOsFxEGXwMxK7o62Iv73q22+1G8vSIDnck1ma4MVxT//gtYV+h9a0kRTArDji+NSBF5MEJlXW/qJUKGH7Hguy8hcIO+kbOnmhxawKPPXR7PEvFp5Q4apifc2U5XWu3AimwnKnwY02SBZnpHWwSfg79fDHh6niDUeWkjtadkfYXMLW+/4Eg/Ixyiurc3UdA7Lu8xs+Z//Iwp6K8+kEJz9P5iIsi8uttPJAJ4VSFpm0sn0AI9U4PlvU5i4Hvv6dU1wptbccFRY/ipzxvECDbUxRWHps2JvODgI4fKBDFK+5y2mf+cb4a05L9tB/yJ0qxfJVsiTKaVe8J+MCgS38wDax1hTvEa34kQlDlPnAP3tWXjwylwSC2nwLMacMNSipuVt6/5qDOMlOMR0T5o3WuQFZfnj1Yx9E289W8Js2z6qdTq2chrACtqnVdKHIQBtfteC5ygfkejmgSqu0GAeQ7P6ciba2yOkfePMCcGZKPPcqBtvJNAWI3zP+ohOaDuMWOeGqGwnSxJhnZ20iFEufyHWcZ7+ZAubUZnqP0utBZgerUeUzuNFVvoPpa7jGMaxrQtGKx/pSrUh9hgDQLP3uJj04OzPoZLkLgCvlMmMOR9pZ2OJx6HpCK31jE8CVUv/8Z6VBHTgy2rasaSYceBcDDc36As03fPtYQQQozNNsT2O+5Hs/TWcdCiivcdBojQwKYYPSF0gMpLDP20UC4lMS3gJZpAfoUPOSU5ef7VdBVEoCLJaTV/OYy/QJ8W2SAMLbogdLH1pkvtHlQR3YrnAS835RM30yg+rPOmVkygYjoiejbfbRBkYmh+F3q9BzuvnY/Hgq/ECTpfXwHM+BvYj8E6q9OqHvOA8dp4lNqhsAqMZaZOPBORmnyRWgSq37b1CK OkQPCNoh dFRQ+iCUFT8wXg/D8lfVkdYvchRcHlropb9i3raQvc/PbDZTFf9rNhO5GMacWdTOE1lap92U/sKVfNtPep4aIAW8wv/VUcFsMbx9hPbQuBYBWCC+o3Wl9JHozfttAFrIky+8l1n/c74X9MHpSToQ1YTgaGUvrDw7CGLiJjDvETDCSo7ClVtXtO0fy+Gi5eqRBZdh5 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);