Message ID | 20231018140806.2783514-8-wangkefeng.wang@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4818038vqb; Wed, 18 Oct 2023 07:09:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEc4yspsHq+l5cTiaXSokiRo8+KkjjuE+nTvSg80PMgSj6yrg+eVwkSEPM123PS7Pd7YL+Q X-Received: by 2002:a17:902:fb45:b0:1bb:83ec:832 with SMTP id lf5-20020a170902fb4500b001bb83ec0832mr5158112plb.2.1697638183874; Wed, 18 Oct 2023 07:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697638183; cv=none; d=google.com; s=arc-20160816; b=fNeLUCiCXD/OG70r7r9vJFBtwxoloBh4nZMGWmdciwSJQjaUOYFDI2B4TerEyQHfOd 87vSzu+EMQO0rGT5WBsyIJpJAsnF5pSUfeLh5tPkJ9P7nCDf6dN5hkDPRBM7Ql8WRomD TwQFZzWCLfnL36Z8tG1u2G7NCO9L2YbZqK3pfT/UOFDQMMBMgPm97FJ0GX/yIKMzTF/s MgAAuVwNeOmcbpsqiYEXOZdgKHhuDV91zWlxEYu7J1urz6GtPB+dtx0DnbeSAyJVfy/E PFPFJ5U4DWjMpVaiN96xMu5vIjW7BDRnavlaV6cu3jLeDjK0NpZXW6aopAEcnmDIJKIP +sPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MKSp5EBF6+Ov7gSZHW50N+nAf20gVCjFGTQvZhuqW6o=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=piSjqgO6QkjQxWRdlvU7tdJY/Lp0dCe5jylbbvbAPbgoCTq8UvmH4UOSotF+jowKAy n2bbLoHi4j/F965gNv2QGR9nT4jXScwt9UjttSE7UTemrFqTn0EsfaKaFQ1zwAzYDe/T S6z070JJnnDMt29oNHMwdm4lca8T6a5TpRK85v4eOdRXhiPqVNwjWK8BFwzbmKOGL7Ug Fl6iqHaHn4VPhbfvfugSOD/BXLXesdFN4tEdsE7ORWZ76EWzUxRwTGA3ee8bgHsb7FT9 F5DKwWFsn+5cSkWfwdZtYOcH0l23T0SGUva+rDa6SLM/TnVrFXAJ0rP6kGxvq4Wlzzk9 IPYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i6-20020a170902c94600b001c9c579d28bsi4423834pla.247.2023.10.18.07.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 91B8A8166910; Wed, 18 Oct 2023 07:09:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344908AbjJROJd (ORCPT <rfc822;zwp10758@gmail.com> + 23 others); Wed, 18 Oct 2023 10:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344855AbjJROJK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Oct 2023 10:09:10 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E49E10F for <linux-kernel@vger.kernel.org>; Wed, 18 Oct 2023 07:09:08 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S9Xdt5dLmzvQ8j; Wed, 18 Oct 2023 22:04:18 +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:03 +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 07/19] mm: add folio_xchg_access_time() Date: Wed, 18 Oct 2023 22:07:54 +0800 Message-ID: <20231018140806.2783514-8-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: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:09:36 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780102656225905411 X-GMAIL-MSGID: 1780102656225905411 |
Series |
mm: convert page cpupid functions to folios
|
|
Commit Message
Kefeng Wang
Oct. 18, 2023, 2:07 p.m. UTC
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(+)
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) /*