Message ID | 20231013085603.1227349-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 93BE2CDB47E for <linux-mm@archiver.kernel.org>; Fri, 13 Oct 2023 08:58:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 62F068E0010; Fri, 13 Oct 2023 04:58:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5696F8E0018; Fri, 13 Oct 2023 04:58:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 25D468E0010; Fri, 13 Oct 2023 04:58:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 0C5A18E0017 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 04:58:36 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id D315A401B1 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:35 +0000 (UTC) X-FDA: 81339837390.29.1E7F3E9 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf28.hostedemail.com (Postfix) with ESMTP id 3DCE8C000C for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:32 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; spf=pass (imf28.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=1697187514; a=rsa-sha256; cv=none; b=LO4VJACJlDCfnBEsevy3ttmKbzKfHHR9X4S02PBxvvqET7qzAiQTBbeN8TGAgrn6QQZ/LJ Qbp4Y5U+JKZV+o1uxuNTBihO+PTJYEvw45nT3xuT1E8DugPAYSmof66b1Zs3PGpuzHKN72 uEqnsy9I2s4JaLYpE98wVZwi3C8VLFQ= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; spf=pass (imf28.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=1697187514; 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=1zLpUnjpBvurR96XU6U560Rf31eHqGYds42Z0gS0iKo=; b=hj9//y+5p6DiYOqaWrBCfjB02wnvRaRO9YbJ15vMhAQEvwjQ8DTswJJ2HD9k79/cwhS5ll MOGfoNO++ckk8MNAfGY1ylN2jve+fZCwV6jnQuzkVQwca98Kcl8Fd4HIrpQCJDquCTJ55o Xa4MdnJv/ixKsrGTjGSlUwe5ydvA1a4= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S6Kzx4wvpzvQ2w; Fri, 13 Oct 2023 16:53:49 +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:25 +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 08/19] sched/fair: use folio_xchg_access_time() in numa_hint_fault_latency() Date: Fri, 13 Oct 2023 16:55:52 +0800 Message-ID: <20231013085603.1227349-9-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: 3DCE8C000C X-Stat-Signature: hk1qiciw7cscq6tjbj9syoagm5y7i4f5 X-HE-Tag: 1697187512-752359 X-HE-Meta: U2FsdGVkX19XjtVd6Kz90RPuMsbXu4AGqkLOwNLZ/G9jJ2gEWsOQ4pYs5Fl3VfeSfgL02FdDmeollFmNFhNbIFFr019lLRGn3WfUsU825gqRe2c5dDSSwg+y8rwvw314CWPJitgAQJ3YeNzGhvOi/AAARAPfa5JB0OjWtNynSqctrRDbrQCVGKiDk85RaWJTSB517f3z7ZfmVLMpN+OT7t20My9cyxfSiJoMJAPczPhzCnjjk9G26RmULr95vlE1RBv+ycY784lwjM8s9haqPzgTlENLIWFuuj1GmTsuq65UvCUl/NDrlXzQZTUkzTprGHkKkYs2ImqG87xlDVy2ZYriyQ0jXFDRZ5hx61zJmsK+QrZtnfN1bpJv09oq1OEgRa6HYjO+oPTp0u40aPStZdQQJVCxtU+a6XfL1BxMKA9Uvln9NS08kMgKpenEFOpmERyWNc4FaTdE97IDGYQZSaulgz2GcNt5t+K0M9/3IeW58tPTMFQwZ8eM7po0bHP29FchuEBzn8WN08vGjeI0KVKyKzMAdF1OfpgD2zBe2AnxkpNPzRtyvour4TiSvf7GBonZU0NdbAz2Ooyf87kaQsPFueATVD7CjORMKOsoqvoySXmD5SN+sT6DUBOvy9iY+wWSOpo5ExjViHqdlAPUgMwMvKewG94bjVxesXuwIOOeEv7K60fbNIe/61kFDn7IrXhGTfWsNrfjgvkoPyvtKQvhPUMpw5O8GzhuwxEE7lP4cpVbsUEYd1nubDKZvADh2/fpqYt36InD6Ti3XE/nbw43bpYKIy8Ul0i4AJ5Et0fKGbPKVuiDQtoqrDDWiMcPLxescUAM2pzdb1tvD+x0poYVUIe76+JPbHoMKoKSu7DRrEKGtpbVQEMnb4xomFABzCWBB2H7oX0mMUUChbGKHt4Cu+ZOQnsFbEAr4Xz92eu7pKRlzQkfBW0Pxwz9weJcGusY0WbJAqCENyL413D OaRXlyR1 jVx4/k4R0JmjyNLSvDup4xLOFhkb4uur8+tZ+NyNyKuUJ8vTsnPm6gFIMn+qbI3r/guXaL0COrPVU5c85gXiMquPWxZcSW6z6A/6HqNxj5DuVj2e7c+/aoAfKtHJTBvNXqID4fsv7BeOXDozkCvnBnclBe3WW2ROb01QEUUxUO6S3b9y0u4CqBxK0W3JURuPlYd17kOpDhGGREgfCnKv9yUrdP8nCcGMiObfXgxp1gzx03faxFiC1y6PYmttV0lKznrrizEZA1HXwHbErlqvFx7SPGMfCwv2/2jKctljAxsruCS72vVpxpq/7hhRMa0R/87J6 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 78ad23fcb7f9..bc07f29a4a42 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(-)