Message ID | 20231018140806.2783514-13-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 2D4B0CDB47E for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 14:09:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A81280018; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0AEC880016; Wed, 18 Oct 2023 10:09:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7B1080017; Wed, 18 Oct 2023 10:09:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id B555D6B01AB for <linux-mm@kvack.org>; Wed, 18 Oct 2023 10:09:28 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 5B4BB40224 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:28 +0000 (UTC) X-FDA: 81358764816.05.94B4555 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf12.hostedemail.com (Postfix) with ESMTP id D0EEB40017 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:25 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638166; a=rsa-sha256; cv=none; b=ZVV4l6aP8QvFDixodnCs16gJsW/sgf6UTWbGE1fBzTEo28jwayhMYSe0MxSgUsDSHKUpRw R9v9kCHx4kgOI4NQ4z1DJz0e4JIV8S0+svPugWcN6coGsh5znqnSaRTG1aXFojn/zYcJUk LyyEg/LDooxm9NQGnRdGwZavcxY2wF4= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697638166; 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=DNlrD185RwWjuMxj0G5WMekXxP2MZsx6AcQ/7SuQlaE=; b=dqoEcz/KJuuvn8Kacdk43l2ysnNQ8VxkulIqlw0VesNGlxzAcxkCgJudI+PnQwqHL0HAyQ BEfPKOUJ/kD2mf6BHp9GTMS0Dnxep/95zyNnPzKa8exxIQZRUnpPVagdof3TwnemMcK3yo yHS3x20GBfLA4nOuHeUau7vmwuLKP+Y= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4S9XhH50l8z15NWq; Wed, 18 Oct 2023 22:06:23 +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:06 +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 12/19] mm: add folio_xchg_last_cpupid() Date: Wed, 18 Oct 2023 22:07:59 +0800 Message-ID: <20231018140806.2783514-13-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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D0EEB40017 X-Stat-Signature: bkshqf6ejbnqwpz793nsenjsttwygz16 X-Rspam-User: X-HE-Tag: 1697638165-280559 X-HE-Meta: U2FsdGVkX19vN2z9hTrja8T9ozfMufJnRu2HAH74FEQNNxqeQvnC80Me5oeGAyEFycC91HzzbBf6Cba65D7sDuwFghj90YuocdWJbgeSpuM2cSHbS9WdpyQuadAE/5S7Xrnh/qd5GTZDtI1sgAtiCaVMzdmTXZtz76tTGMOUGYgQCC43dxOdjKLswhRziFB5aWYC33X7LzCaKBCDxHo+LtkrK6Cjrd+654cNNB6+lSdBKKLs32hg5nnyjemRJupRqkUjSxYY3Z1CJoZP3e5JjNFCgJaxNprCdQyqHz6lmH2WEXs3JAkhJAZkPTnGd9JjwF2yiZADpLDmSvsYFkSKtoe/737MZOyIDRZvNRP+MaT7vj996HJ2twHVm8t+oZZCcFpp3niuWHU7G8be1fFIBmVsYiJe54PyC44unsKwnLLQkcKEWwcYEjOHVldrp+hSZk1ToAvHV4/uQ1XRqQT7LWBq57+6vsZDdjznlA8JeE+EeRRadWdyshCFXeW0gee6lCr3e7OA+RqAtHzLSER6p0bhOm6IDvcHakJJL0PNwjLsimDvXbcvBA2k5MAXCGJRdPtJlMpfQ6rDzSgI1IhHz2YDgtWkuiqXPmxMyxaHPMbOg1ZaIH50r/w4GRdjP2zZONujTX2s1EJv6SIhyYMVIyUtadF8E0vMa+3Kfo3t/D0kTCd6fEtnru8ELjxZpTC+QHiQgibBQS6kr6JbOIE3/dm1/fVdsRuImqlrYGArtjtIpssnGhxFW1QKB0n3hJ3F20F3gzARlNbeT15nwondiIXYktoP8ggXxPM8TC266CeIGpYjYigYUso7jlf/LMyR58cjGMpNuoIc+5FpUWfTBRbChjplfM2BMEpPizthMx/c72jQhAsQ71Bkatt55GislU4NwhqMkODSE+h9L+t55zgwGlBxKvqOmU97TR/zbRYLJGnO9ftbBAwwSsoYZ2eEZTycgnsyCw6RP5ZVFY1 Ndl5j5Us y8oA+nMX0u9sEfBHtIEeX6IaUzLydKVBPT6Er2TY5jWugUHhFczSvnY8TYRig8geWC7B1itq1BhV4Yve9dFTwqq0FW7tO6ByU3pHk+rdjoBo5ZAoZ0VIDmyS1+weyQeskU67gs4B6AnFJ7U7XcAEsTWEibFdde06/sfZQWxlM2gN8FWkng56oxYQ7rLCXoIRzv5WA 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 8a2ff345338b..8229137e093b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1795,6 +1795,11 @@ static inline void vma_set_access_pid_bit(struct vm_area_struct *vma) } #endif /* CONFIG_NUMA_BALANCING */ +static inline int folio_xchg_last_cpupid(struct folio *folio, int cpupid) +{ + return page_cpupid_xchg_last(&folio->page, cpupid); +} + #if defined(CONFIG_KASAN_SW_TAGS) || defined(CONFIG_KASAN_HW_TAGS) /*
Add folio_xchg_last_cpupid() wrapper, which is required to convert page_cpupid_xchg_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(+)