Message ID | 20231013085603.1227349-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 E3CCCCDB482 for <linux-mm@archiver.kernel.org>; Fri, 13 Oct 2023 08:58:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 67C018D015F; Fri, 13 Oct 2023 04:58:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 605098D0015; Fri, 13 Oct 2023 04:58:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4A5798D015F; Fri, 13 Oct 2023 04:58:30 -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 3747B8D0015 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 04:58:30 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id EE6B91A01BD for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:29 +0000 (UTC) X-FDA: 81339837138.06.34A03E4 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf15.hostedemail.com (Postfix) with ESMTP id 1DDF9A001C for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:26 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697187508; a=rsa-sha256; cv=none; b=BTiJcJcTSq/9DFUrTrkYDjUkODo3lGjjAPHz2UUdvW04PGOQolM5IdKz1afY0DxZywD+OA IHqeAOg9fR4E3DSabyowcVBpwaBLuhN7ImnFFJm0e62Hg5PeFrcPjFgGRdXjov7AfFoXWy Czxx2hBACNgOTxxt4OO5XTbbHXT2yVQ= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.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=1697187508; 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=jzGRu+Ct7mjnKRNFgTrUo2Y8jIii/HHqjWCzS4SdTQgO9pyomayJaaoSaKi+lxyDC78c+/ f2sg1VpT5UvCc1qQr2BB9Jk1JYtCssUpd9dWqHsuq8azNTgCGVySDP+NuIy6yGLWx+th1P /d8D4TdjM9/UzUYS1aH6mjFmsRlFi+o= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S6L295KkrzrTQP; Fri, 13 Oct 2023 16:55:45 +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 <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 -next v2 02/19] mm: add folio_last_cpupid() Date: Fri, 13 Oct 2023 16:55:46 +0800 Message-ID: <20231013085603.1227349-3-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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 1DDF9A001C X-Stat-Signature: 3cksoh8op3nnn7t9w7nckqg6zr3pxabw X-HE-Tag: 1697187506-400291 X-HE-Meta: U2FsdGVkX18pcr7ez3g5JyArUtodI4IEfMwcH9nye89i59KkocHazPEFmDIGn/Yt/nW27YMA7WfoijTtHwGfL15CrtqFrD+e48Wt0EvbAsu7IyJwawQ9nAa7a2Eek5U5yeldtm7JTB34iWfWd30K3xLoMiqM3CgROFuZi+pjWyuVt1B6MxvgWqASYyi5bLJSl/5izl3/jqzMZyRLU9BAtwDz7o9ZGnyoK11kF2Yk9m5uzBS0R7liE7g/iUjUOza4P/zEZgmrTh4rz489pfZfOPE9YWyFvZ60yAk7HzZst9I0ODZRUrs49BHvpfOva2TzNIBzRMKXT74JNbSG2jyibjVFkGSTHKNpHnVN/DpP+q0SzhVnuHEnOeDDt1jEy7HrgZtjruNIgtTR/bWUmodwag/JuI6Pgl5UgOlSnFEFIaJMnfsNG7l1DgBLWTdB3ptRk9cfHVc6Ds7bj16AEfBS+58NSHM7izqXzTp1qDuHB00X0QQf3EQTruV20FEPkFGrA+FVs9BPqTg5p6V5FvuwcaXMIIMSHRqJM0mLx/gxHhzl40Aj2ZbdKkujlU6SBpXF5CY6mjMKJXPfFPrMvN8p9Lf7pCfibpdIl2tMSp4lzeVxtCSkl/0BeCLBA7oOwTLAiF1uAQuRGyKJnrP42W/0xhF67Rxb/ENG90b9ciL/9bxuF3hh8Cx4o+akbWvyOPqCs7gGAPvWQEgXydIqHrbwDDBoOZ7peVwELsGfR7bd00pklfIcQkmv6OvUrrlj5ZYOzmB0cJtlRW/t9y81QjG7SBXRITxB90i95hoQheV8CuGMB6v6yCObBZTszMsetwiYAHGmg5LcO2lespGBJfUY5uMhOK6FPTE77I4+361CufP+meettjsVkWc2XAWBlUeivp0ZyrU/ug9CNcQlNSssTtUcB+FauljqBjpnewWnMbG1+2rshb0SoQZngszayaaN1pIj2vkeByRbP5mqfMG 3m4h5GQH 3i6zAS3+iwDI4EMbYLMBci9jVOv+17DybMytPeNpCKqSQhSD2NLmgY+rE388pHFjU+++g9EOionsRlAx5Nn0nTx59BC1KPtpGaO8V6bXJDJ7hAN6+X1FSGuynz84YdJcEzxEblBZQA8W9AQp2KLnFlAAayWEbu7izl3tyx5LWxr7o+vRLi4q5l1mSpldoiOka5zNwrG/qjObsEyoY7UxGaoUHK7Ra3/K5M3xt+3dIrccAQxUjleXIqo27aeLJk2I4nkGauUwLo05vsbtipxADHMxmBFvh4JEw2HP5hqzUkkzSnlEddJ4jM4vQeQ== 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(+)