Message ID | 20231018140806.2783514-3-wangkefeng.wang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 877FDCDB482 for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 14:09:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 16CCB6B01A4; Wed, 18 Oct 2023 10:09:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0F5A88D015C; Wed, 18 Oct 2023 10:09:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EB4838D0016; Wed, 18 Oct 2023 10:09:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D2EBF6B01A4 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 10:09:08 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 95ABE1A01FD for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:08 +0000 (UTC) X-FDA: 81358763976.07.0BB278B Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf20.hostedemail.com (Postfix) with ESMTP id A32341C0003 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:05 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.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=1697638146; 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=z3XKsRcFGkwnebwYgONpauQeYaDIMFmQ038Pa3oEk3k=; b=4JlmqRaAlOMIWF/q/+okV4iTcGNtwSwGlV3SQjfpXWljdLC1FuwONCnaD0s42Pff3WGaE1 AhgErHIaNUr8cGAZdHBnVoLUnQT/GHlIeT+xOLbLpMAmTwABUDRndSrw9wLOh8dBlXD361 pxZbaMF8uqQBTDl4u1U1HHjvi+BHNsc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638146; a=rsa-sha256; cv=none; b=d0q0EoW/xpB2Gft9enxhjuZDrBJtMdNJaJTnNgrDyyZwuWzbJk5RCMPg6Ni+1wQpvrfPyv CanCXCe742Cxxcpc06YAy9L0Qk6WFKlgkJ4/4pyuvfRibHLzym/2wJbKkO4kQMqqDkoIPF H0of0l3xJXbsEic9CRMpJedEh6FhM6A= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; spf=pass (imf20.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 4S9Xfj0G7qzCrRT; Wed, 18 Oct 2023 22:05:01 +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 <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <willy@infradead.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <ying.huang@intel.com>, <david@redhat.com>, Zi Yan <ziy@nvidia.com>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v3 02/19] mm: add folio_last_cpupid() Date: Wed, 18 Oct 2023 22:07:49 +0800 Message-ID: <20231018140806.2783514-3-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: ws8og9b7p6tseknr1ce9ix6pf9wuj8fz X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: A32341C0003 X-Rspam-User: X-HE-Tag: 1697638145-521274 X-HE-Meta: U2FsdGVkX18pga3D3bqvjU2+9DL8roosvHXR5gaHLpHQrkR4VItSKFcHSi+NRWhw2PIBD5oc+GzfOAV3mrKu5Rgar//5S2BHIaOQVWT8OYwib7vk0oS9+lhK8O7KVClA/Pg0nBmIO6JGMc3u+/qdAFTG8P7SxLvLQADK3Y8bFKGa0SpwLU4Zan7xM5hJkjKS1YqUY/wXYfO4PK0+zzHfWTpDQGnkFTQ6Z5/Rb6Mx01aikALRol/pRRYrNdjUfycbCuotlbGXqooxsxs8y8gJVhsE+O1am1jsptZYZaH7mwO7paRE5piiB6v/88xwHMxBjl6NXVloWA84rGNGuOH1xzTnOubVMjtRdEPcR+x6uRu642uzOJokYE/7D1gFwdx8n7AGqEhzmauvyFmg6qX6WyLqw3VrqmLvi6jK7cBWpCObzVIB4+dfXQuqAMjan06+r5fDMthsLvZSUKoBjNmGqJPrprjkTQfvXm673wnhwsOL1J8j8GYE21BONwsNmhY7SIb0Tnx/6B6is66M1j3lro1lns17cfhsPw3d8768JO/RJsVihLdS2KbgkQnxyHIOONLTH0jr/bv7cvs1Zo+zfgwfOrLpln+1U0rbnw4JYWkX9ud5EEDC9xFVtE/vuz4Jo5pJXWsnPM+VE3ZQx4D5TxieDT27sA0x7157oGWVaCCjiyW6R5bwfunWNnW7QiNDA9y3X5V8wWMtgbZaImDYQkk/9ktHvX6b9hjEmT5Qfso6yQY8xFTF0BetVnZAfiB5maaXYGGxGdKUxJHW7dlYlpmNyFJmCdFmK4sJyb70qwRf4hSUvPHzBdp6jTlEkjuaIB74WWjFbmuuOhCK74gquMpH0aIwXjJFIrTsoPWRW18coEdsUJerCPJWxu9qE8T0RXoauGtRUy9/jXgYf/sWzQ9G5SWlYyhsenD5h+63Qi0l0qHNL7XYaSfI7pwgF7CGLm/xwIsYrQfooZbEgPG QyVtyTvZ AamKlkV8VqWVm9UvIU6cMSBMm66jIaUKpWJCe3QvBtra0pXh1LxkKJUBBhZMAkxty2EeExI/8+/ONFqoSJm0CxApCfas9Hb5e60evZvGDydeXJT3xCe3gZzaM/asUsj/xxy303W+SU7eKY8FnwsZQtNFPqNObS5EL7k3nYlqrCsgH1M8z6dRgEg/3wgs+zNjp32BB 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: <linux-mm.kvack.org> |
Series |
mm: convert page cpupid functions to folios
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index d005beccaa5d..1c393a72037b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1794,6 +1794,11 @@ static inline void vma_set_access_pid_bit(struct vm_area_struct *vma) } #endif /* CONFIG_NUMA_BALANCING */ +static inline int folio_last_cpupid(struct folio *folio) +{ + return page_cpupid_last(&folio->page); +} + #if defined(CONFIG_KASAN_SW_TAGS) || defined(CONFIG_KASAN_HW_TAGS) /*
Add folio_last_cpupid() wrapper, which is required to convert page_cpupid_last() to folio vertion later in the series. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- include/linux/mm.h | 5 +++++ 1 file changed, 5 insertions(+)