Message ID | 20231018140806.2783514-9-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 D6EB0CDB47E for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 14:28:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5E43E8D015C; Wed, 18 Oct 2023 10:28:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 593FC8D0016; Wed, 18 Oct 2023 10:28:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4837F8D015C; Wed, 18 Oct 2023 10:28:33 -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 36C6C8D0016 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 10:28:33 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D9821C04EF for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:28:32 +0000 (UTC) X-FDA: 81358812864.05.E656F8E Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf23.hostedemail.com (Postfix) with ESMTP id 7832914000A for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:28:29 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=none; spf=pass (imf23.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=1697639311; 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=MSt120ujaCbI5iqH61p99iQMj5WX9vWzUelkG1NabO0=; b=cd3f7FguKvw3X860xmcoHSC1WSFG6K118AKre6WAfACdWfqurSsvmT2bVJUO5z6D6gEfpg gEQ8lPPZzl4C+yJ4ML58YwXqpDhIRWA1M0mzHm3Da9pOjo7KMawGoDEFUPkenaEc69YudW 05QqRlUaiG72shK4BBfSzen9Ol0D3og= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697639311; a=rsa-sha256; cv=none; b=TyXbwJlVXrqsQm/qsbFOAowXzDa+vCi4+zCyAuux40kO1boLVClv4NUHdVrEjCNbsf2Brd 8TRc6ouokzc7/jW+P2nNCCf5l6kK2w3jH1pHq7lFoRInP8vmeb5yIN0oKjKhZ0GB7l68+M MQsoDPMxGUSX9KLhbIkIM6T7E0b6Wmw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none; spf=pass (imf23.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.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S9Xfm5FCJzCrSB; Wed, 18 Oct 2023 22:05:04 +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 08/19] sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency() Date: Wed, 18 Oct 2023 22:07:55 +0800 Message-ID: <20231018140806.2783514-9-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-Queue-Id: 7832914000A X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: pcxf9cywz58xriph7g8gbyjrkdj4idtz X-HE-Tag: 1697639309-118937 X-HE-Meta: U2FsdGVkX199kiU+GlUj1Nuy6rqa/aZTNdY6lh4y4d397PFid4se7gevb9BQr1vZkvK/o1FcfklFO8xwRG35GrNuz3Or8misQxAgmht+qICxzYWh8oUPiibKnt6LqbUD4xa4zWvXbKBhjepW6Uq/rKBaVFS04je5x+WOmPec8UL0/9zYlOQdRwikaoU1Rmi2hqOExlN0K2YaSxuNG0JdKhY8wt5hNNnhjYqc7fRh1o3gp6EvlaAU3eS+xzFgRPPVkEEm+VLWtrZ8+xeyVTGBRcwW1ICxHlGb+FRoGod7Olj3ESqfYlKTW8GOAYcuOOP2pEEDAnEjbNu1tZn8+Cyq/iKd4fMAZQ6UoCmK3Vr5rvxZfgU6NurhLdekbeVY6LVYS3atX87y+Ly9Fo73ZH4XpGfgV5SlJP7oIVRoFphFAMjPV6tx6VP58KKVQvbME/pddIoWyMjfPwrIG10QYyBrzqL/rfA1TQSs7L+/CygxGHxPTfvct6ZWkTuiEV58XoSG8tXKVjsK1UAyWZ8lMS6Tv4GzDBgFS9L3kSrMRFjAk800BR+IhM0m5wj+BGRrjUC4pR3yKBzOT45yjpEZiq0gCbhEyFac/NDYgKthufBAxBQPbrufbLyMbgq6+QZmcxbQOvLbFfpJvkWxDrQFsaATdgM4pW8xXuibq9mkdq5h4JKPDQLn1uvbeQdBWghG0r5paPfBKTCTc83rlicDHdN2abXYh233VSDnrWD2ka+ZBt+FMbZs1nUHcm8jqb7gQq4cdWS79chNvVun0RY7/Yyzt+oImeWKxOOAjB53Ad6cc2KYrm+bN+VVg6vz1XtQyT8nTSeepoOUuE82RYwoudVF4LyiYcmnVd8essgXCci2u3xnRczB0tfHhL0IETo4Ynm/r+ASv4+Q/dyZun2+28847RY97QdMkznOszjm8H/kq54PS/4dSTT0XDjc9m4ID5Rkcp/Zf4bzjYdBPIxGQAH pb99JMXP 4LIIVC9+5YmbCvhnEm/vrsplTiNY2SV3ccf0yuadx7KfwFN527yf2lH7EgmngzFD9T7hWrqx0+nElZ7sUGIEmpyzM/N7jg/imX9clI27l2gRWr6bWSP66qcIqR7kfQHg8fDlB0x+fuMeaQ9M2NR9Vg3Tu3+YssP6tAWx/3i3tyGNNp4+dGkfmFzpqkmJuNl7Hch1u2Re/R3/9PQbDgssawRIOYIrAIx6n19rx 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/kernel/sched/fair.c b/kernel/sched/fair.c index c50271f39d91..b8c52893b3d9 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1766,7 +1766,7 @@ static int numa_hint_fault_latency(struct folio *folio) int last_time, time; time = jiffies_to_msecs(jiffies); - last_time = xchg_page_access_time(&folio->page, time); + last_time = folio_xchg_access_time(folio, time); return (time - last_time) & PAGE_ACCESS_TIME_MASK; }
Convert to use folio_xchg_access_time() in numa_hint_fault_latency(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)