Message ID | 20231013085603.1227349-14-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 659D2CDB47E for <linux-mm@archiver.kernel.org>; Fri, 13 Oct 2023 08:58:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AC2028E0016; Fri, 13 Oct 2023 04:58:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A25448E0010; Fri, 13 Oct 2023 04:58:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 84FB68E0016; Fri, 13 Oct 2023 04:58:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 6E1588E0010 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 04:58:35 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 39E251401BD for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:35 +0000 (UTC) X-FDA: 81339837390.03.DDE58D9 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf01.hostedemail.com (Postfix) with ESMTP id 0C55D40013 for <linux-mm@kvack.org>; Fri, 13 Oct 2023 08:58:32 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf01.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1697187513; 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=0k79eWN2qPWQalXNVxOZ5DtGxynTd8wYPB9G+6CYZjA=; b=F1/9U/FKVZVUtQ9q6f8RKYXyQfQJIOsOWqPsnXcdsAH/4e/bII7P/KOJP+g/p5xqGRNe95 NaAhZWZFFbx4I4t2xpY76/yyMQW+RODNpDLux5FKx7r5m37EsDUZimP2RgFd0Qv48Jg1s5 1+tyBfh0sNPZGiflHgW1Wquo8V8EqVU= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf01.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697187513; a=rsa-sha256; cv=none; b=lyS9cYCdZiVEC40KhBd6bTr6ldUjMWJ3fCkiUMtBnzAGG5BcmJBUM8gecNS+xdcYGmpyVF lgt5gIw2mECLnCMM8EYrnBAKaeHpTMNTaR8jnd2UYIMlM45J/9WKtI4Iv2+ncF8G9iifNv 7F5Gg0gZ/M23xdrmykGceNClBqof3YQ= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S6Kzx5LBgzvQ3X; 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:28 +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 13/19] sched/fair: use folio_xchg_last_cpupid() in should_numa_migrate_memory() Date: Fri, 13 Oct 2023 16:55:57 +0800 Message-ID: <20231013085603.1227349-14-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: 0C55D40013 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: ox1cx7tjdhahgojsgjag8hsxwat93h88 X-HE-Tag: 1697187512-489677 X-HE-Meta: U2FsdGVkX1/b1p5R2LlXKVd6TB0xnVUt4h1TnpraZnR2jUXEh9yS0zosBEdmTPmeXkg50Rh5o0+UMMjfaciLIHoy2Qrd+noigkjofHhpmBYr64hCs5+rsPiKOAZYtCarmbuLIAsUJWo29T1CYB3J+JQBoQAhv9PgJ+XoZob6K6I+CYGqKX1HVd/AByPyMFB1WyPcLGeqLRAN/R6pZ61DzSb39eXQMtAJ9HwyQP03ks+DeYSufRMqZigDMBh8FWUaiteqqcHEpCT7Z4Z8ab3vBvzOaoYe32s91yGE6Btm2AtDemuexmM3ffVzVyRBDqj6/lmI5dHQ5a+f5QvYxGCFAQ7IMPA3xF2lxLnntaxidDCROJwHar3bxeuEQFV4LpltCTSPLEzsMdQNr0gWbnLy7Oi/a62WIXjs2EIDFuKwlGJtRe+Gk8nCB7Fhyhzw8qdioAegsyJPUTc/s6JJ1wACOmmnsvSqN90q8sKh+oYsvFJYRKnsfHxUU4tpeC9Dyo/pgoy5rJ4k0Lo4QAePSForg8bSsw1SwuPZJEP9oj+FMBurHR3CjSsGbO3DxOSmRPsp4fHaRrIfujDzdRidXBGTQKUD0kpeuRLLkW15urVIlQVkoO5RRULaLmHkkGA212eGctzhQDshC9+0PqdguUn8pbA1UT0yF/Kf5fZJbTlGUTs/6tt+9ue5dX/A+i9QZyTPZxw3nyUmbx6U3IdyQLz9gk/LN+ZbKbPZhQshtcTFfd83+v08t0mKmQnP6dFa3qhOKCHQBIdeX9qZ+pBdv5bMvurtNHKsWdcdLLOaJkQqD5fXa1xzq6cMA3dV8YHItvJ5x67lHLKsCy5KAXw671/AawXyEgq4po/XtHoo7oymwq/+Ua2JY7Qbr/OPTZQkYZj8qg5uIHxBFMvPyaJhrce7c91gL51Yc86vHpehdg8KivkQOvnFYh1IX24Cd6uIQafmw9pen2VeDBYG/dxVlTd 1zUmWylq NXJ5seZbAh3cw48DzUwRQZ671i7g0PlrqCecUnQbjOI+P8b2K2QPyafgO4NHgFJOCOqCWhV3TFMlofDm5CA91YNVy0ciGyAuWSYKZ5J24PB1Alw7n+CkkfgGuYwqVJI7FPcUcKZyI4qtIJfYGyFg045EGfMSddfGz4vU94bEENC7S3h+EoI/78cs7uP8GU7AXCwi7n4YrOT2hMhQMjKIm6WQeI7oPUKkGWfI8UeTYFCQCtBnrRjHPIU614tgswHFsvag/Axi1JCxhzj3SLvo5aS+v180UMn+R6Gqu 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 bc07f29a4a42..f3cb4c8974c5 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1862,7 +1862,7 @@ bool should_numa_migrate_memory(struct task_struct *p, struct folio *folio, } this_cpupid = cpu_pid_to_cpupid(dst_cpu, current->pid); - last_cpupid = page_cpupid_xchg_last(&folio->page, this_cpupid); + last_cpupid = folio_xchg_last_cpupid(folio, this_cpupid); if (!(sysctl_numa_balancing_mode & NUMA_BALANCING_MEMORY_TIERING) && !node_is_toptier(src_nid) && !cpupid_valid(last_cpupid))
Convert to use folio_xchg_last_cpupid() in should_numa_migrate_memory(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)