Message ID | 20231018140806.2783514-16-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 1094ACDB483 for <linux-mm@archiver.kernel.org>; Wed, 18 Oct 2023 14:09:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9340380016; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8E5DC6B0203; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7B1F280017; Wed, 18 Oct 2023 10:09:29 -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 5F0EF6B0203 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 10:09:29 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 3E9C81601FB for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:29 +0000 (UTC) X-FDA: 81358764858.25.0E70648 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf30.hostedemail.com (Postfix) with ESMTP id C624A80017 for <linux-mm@kvack.org>; Wed, 18 Oct 2023 14:09:26 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697638167; a=rsa-sha256; cv=none; b=DikffGrJQBscZN09ak+yfPSEd9HCthor3KEn2SveDLwKGVnMYaUgqxgrNJH4dPGq1vjKjq bGJIaHKD/1d979KBu0cNGcUPgycsSs4rfpmySRUmyOuQYSdvMm9+1rCABZC6uNkZtkB51G 9F3xTNE1jci5w7SjR33X90qnW5vxxgY= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf30.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1697638167; 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=J7hLCzxP+vfH5k3zHwo4He37UOBmYzrfi4mtBVqDm2w=; b=wbVwmCijcs+7E1FwE+van7TtPM5AfMercDrb8BCL4gXQuVbWYMjoUzxEhxubj2ww9hil73 hvwaC0jzafqj0OwtJtbDqW46UK0+PpbN1oGEmmCdVzUNpnptL3QMqOeJ18/64KeoE4U4eu BeL8kzPKsy2zi7eLgALyC7tiF2g9naM= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4S9Xfr71CvzCrSJ; Wed, 18 Oct 2023 22:05:08 +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:07 +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 15/19] mm: huge_memory: use folio_xchg_last_cpupid() in __split_huge_page_tail() Date: Wed, 18 Oct 2023 22:08:02 +0800 Message-ID: <20231018140806.2783514-16-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-Server: rspam08 X-Rspamd-Queue-Id: C624A80017 X-Stat-Signature: tceehhx6cgf1gdp54wtwmbofyt5q3csn X-Rspam-User: X-HE-Tag: 1697638166-167882 X-HE-Meta: U2FsdGVkX186e9hioEkaO3TWEuRA63wAwP5jks/ep4YmAG0e4weGHb7K8uBOW9Uxb/zqbmw0exzkwsdbyahFZfO37qkItyGK8mNzGOstpiTVUhmIlPBE9an1NGfJmrVdQH+nvdoQ3maDhs/hTsi6S2ppfir8XUqjIPEbLfiAVM50Smb8oDqjt8SxszVbB8sNflcIKviGpbdZHdwFWI6LM7vGSODX5igOaVjjBvO9alOiSZx4xkHub67jgGMf8xP1qsemxoSBFMcaxCW8k6Lcm0yEvcGs46vM8kFQhQVFNsqx3MycUFhYK9B8wzYvbPGISWaKeQWWb8J9NNxHbusHfzmcEGewB9QgYV8RQzCgXjoTsNqP/dqOStW6QQ0I+hdwV9qqyEC9RrIfivTqJpBFytoCfWD5ERkTJl+R1Xj+a1Py3EZdqvZjGoJzv8byLAnS3i4Y/TtBz/VeC2+XT8OzT9vnlzVekrkDi4TnMSLIXfpDms6KDMiHW1oxNkdcTA5/Gk6bY4ipQNYNLFc9LvdJpRNdwBcvHix1wn+YCz0ARZz+Tyfi5zajuvgXHLAppAOVeIMF223FrrhWov+EDCpCikGtxVRCFuh1uFeK1HjC8Xt6Mzyv9ngODtHE0oqEbh+fFG/VzE66MBf65E8XUAyCRGJB7lTRcrsREN6aBoF7vpL4pVhXwmYK9rj65p3GLWo9emiP6lZ+zH12mlLihHNVa7eIBBtUuDPkUydRbxbD8dfozf7YducqELrSuJTMN7CYcI294YFA8kGFL0BYo5f6BmgdNndBcLQgZq7pCyqpwmx6RBIhd9EtfLNisnSgV6tG2kQtrUXVmjNK8PEZ4KixgNm56I/F6a8FH1hEu5mkZYY99A50JzDc+HQLthCCkGTuD35SrGtaBykzCOdejjxACtKYdwF7q8eFR+xmCF7UeO0mjAGi6oKmaBNd5qwvNVaGqYGk1xiEKxd2nC1J1BR HlDU2k++ I99S6rspG9gZHXgWMnUvgW1xiZpwsa4t/XpYJZONxFA+Ml77Xq2qU7PvqGqwHdFdwvImL4jM3aFWo0kA/p2538lqondzkb1yUOGEiJf9NlcZuyDxsCc2jtCU5zq6W3jUEAmGkrxUGTkHHq0Dhlxch8SVJiwQGVaS6/vjW8xN+5tFt0MJvstgB+p4mum4GHdqNzrQb73A241aznmM= 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/mm/huge_memory.c b/mm/huge_memory.c index f01f345141da..f31f02472396 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2515,7 +2515,7 @@ static void __split_huge_page_tail(struct folio *folio, int tail, if (page_is_idle(head)) set_page_idle(page_tail); - page_cpupid_xchg_last(page_tail, folio_last_cpupid(folio)); + folio_xchg_last_cpupid(new_folio, folio_last_cpupid(folio)); /* * always add to the tail because some iterators expect new
Convert to use folio_xchg_last_cpupid() in __split_huge_page_tail(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)