Message ID | 20231013085603.1227349-8-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 9EF3CCDB47E for <linux-mm@archiver.kernel.org>; Fri, 13 Oct 2023 08:59:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3E57E8E001E; Fri, 13 Oct 2023 04:59:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 36E028E0018; Fri, 13 Oct 2023 04:59:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1C0458E001E; Fri, 13 Oct 2023 04:59:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E914A8E0018 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 04:59:02 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id B5EDF1A01B0 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:59:02 +0000 (UTC) X-FDA: 81339838524.17.DD3B0A5 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf02.hostedemail.com (Postfix) with ESMTP id 7CCB280003 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:59 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 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=1697187541; 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=MKSp5EBF6+Ov7gSZHW50N+nAf20gVCjFGTQvZhuqW6o=; b=glvfhb8FR1xm9N4oBFwtEzO3G5EmtM8ppqtGArvDiDqOu67/eNMMsXoar5Nqr6P2t7JHV7 KSTBpxm1TZgA2dsZThPt2o8jYQtlCBn4EAdeQmQpk06baGFHp/Y1iNvgkNnrAfHF5gpZRv C1y2oT1PcWmd2HZq06rWRZyJKVAs5Lg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697187541; a=rsa-sha256; cv=none; b=ndMIAkTgthRByhKervxSXH6Y8XzpQaKdRqxGs3J+eXcnhpNh3m6qr9QfIWOM770cDI+oB1 w/G1s6TQgjSY+AVFO64NDV+aH9iLNEAdjHkj2IuD4EYPYEfjHIVgIrS9qGEAZCixqsmQ/c +5fzJWYof0mIyh6C0ZIz5RTbfzpmejA= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; spf=pass (imf02.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.189 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.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4S6L0d3JBcz1kv2B; Fri, 13 Oct 2023 16:54:25 +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:24 +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 07/19] mm: add folio_xchg_access_time() Date: Fri, 13 Oct 2023 16:55:51 +0800 Message-ID: <20231013085603.1227349-8-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-Rspamd-Queue-Id: 7CCB280003 X-Rspam-User: X-Stat-Signature: eaoncxica36w97hm354rf9gi7moo9ec1 X-Rspamd-Server: rspam03 X-HE-Tag: 1697187539-377230 X-HE-Meta: U2FsdGVkX183TJeQOnxMi6B8TM33DmluUYnCtWTZ/POUA/ejYsBBTsNCUmjf+B5W9vf66lTjNxXBtmIy3lszvbRB8HIDRPpVHzwg2iH7Ft+ODZ4Jqb2+psp8L2eRB7kUjY2tNnREfe2rXuOtKK8A/5iZzHGE36WVwU8Pa6pK+66HR+fJTx9agZp1e1HLgDQYmcbuyXnTYoUwq/1iG0GcLKPEeEcKsR4aE1XxQ7OHNlrKeLebBZlTZPFD45p6y6XYhSdX5u3kIylkEb3NzDUD81iLxp8dQAyMEucSMeHqFyXiYzA0gbG+nIWgxL4etsp37QPhgCbMEup7GJJsJwG67ghCCybZifihW4YPpLMqPjcANhZSBx5wl5lw7riXEllJY6INjjr6KRq62MayCDhV1FKlc9Kyn/cNobAB3SFzQniz3v0Fzjos8ltYy1e+1vdNdgeHh9K6ZrKuOUXbSmTvxeX68kpCBmFAnJT0C0jG+RLW4RvRmvhvr7zYRv+nt/3w67/1YTuZMIoqpL8hEvTWyB/U75g8rrQPVkUPTi+L7qdStO/Pl2m6ndD99bblOqe5TE4cPFfsIGKskmq8DW3CuupFZsx20bed0ugV2qDejCCQ1HhZpuxMY1t3mPbL59AhFGzgbu96CXWgHpUugTXJMO/I4CgPEJptjZJEVClvgGRUk/+IzR4BWTGxG5flud4fOQ1CvZgHeznXdJ7agjwlBoOQMJ3OksGZnfV9Dh3OMTfKFALEMLbkzZiYz/9XkkCtmbY9Ji0haTHitKeYrJPpFJ28ohLu7rebjMHyOTK3en2ZTMiILvIsoR9HoCChVCUSn7V8sBaV0tyzF8BAjFyod7nXkAUOa3/ZJddM96Dwqohxpb8OiVO8Kqm+7h/Pj06fst7YhhchevmqN6/NJmFyGqrxlNNOt5hzpef2AEguVi4Zwnh//GIIuldebgsZEPkndHlGTTAEopLBWhQgZ01 o5pmRQhJ kgH8v8GakpsiFamCsVKJ8HY9PmbNRfdGQQCiOGP7/piL7aD4xdMU6BG0IHMWfoz7hIFXJiaSh/0jR1w2a7uNO9EWfRTPCyWVrC+P4u5iTrIgylatqW6MyRjpU0Y42nFoOYDUPZ3ngrnyYNIJtD98KZo8Bjz3vBDLPESTkOKZCdbI9VmTjsizGAy0KlEejqjGUbzGhhhtgbjwqw4WD+N5+6OCxKyvbVV6a6ttx 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 1d56a818b212..1238ab784d8b 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_xchg_access_time(struct folio *folio, int time) +{ + return xchg_page_access_time(&folio->page, time); +} + #if defined(CONFIG_KASAN_SW_TAGS) || defined(CONFIG_KASAN_HW_TAGS) /*
Add folio_xchg_access_time() wrapper, which is required to convert xchg_page_access_time() 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(+)