[v3,15/19] mm: huge_memory: use folio_xchg_last_cpupid() in __split_huge_page_tail()
Message ID | 20231018140806.2783514-16-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 ib8csp4819150vqb; Wed, 18 Oct 2023 07:11:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxV5KdNd3giGnzph7+AUT1H8wQh6lRH9xbH8etEWK1JL9bi3DX2oIk+CWWgUUiunKc1WfE X-Received: by 2002:a05:6a21:a5a0:b0:17a:e03f:38b7 with SMTP id gd32-20020a056a21a5a000b0017ae03f38b7mr5713359pzc.6.1697638269799; Wed, 18 Oct 2023 07:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697638269; cv=none; d=google.com; s=arc-20160816; b=x8mhSmxeYSXYXP4rMqrGVuhiH3DNWBXwcF++idkJheQoTSE3n8Q4Jl5OQe85Eopecy 7McMkkAOE3OkAreF2yKcA50y97GfBOYE43Wo7RcHe15ahdEZkaJyXfIi3ktE2XRIPYgq r8sIk6QCffTF1llBNBvOgMu4FkChEGTQfTDDl/73XdOJeygWSsVjt3B1L7SLiRMBepp2 w/7SxzxMz3ql2KYYlRaX1o+gXgtfQhhjDJcwESpLWjzSFK1vnOOhOgdwLfFs29iI5V/L xRYFQe0MEDIO+HawzPOxY8XiqZhJShFnJjaj0gkiZGnUJFhl1jKOHlyj1h0UKQdxhn5f iwFw== 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=J7hLCzxP+vfH5k3zHwo4He37UOBmYzrfi4mtBVqDm2w=; fh=Q+Hibf2y+6rOlBpt37Lm5i0wTMmcQsnxMBqJTtvbZCs=; b=WgFvsDCvqt77llje/mbg0ZZEQ6iXtAtt/vyC8+gDa1fJzcqMhiOdR80u/7PTpvMWGY S2TrXpnM1aBQ8ZiEJnlaqa7hMlRDLE8yHkPJnKALNVX7B28fs3ntREq7STMrzCLk1+BL aBmTEtAegjUdef16mRKTOakfN/zE5BZJ2Vocd96tqY9P6sueJRGD4eBlzv55yPQKGPuI bKV4l1XRU51hcsLET//3bKT7nzfzqPKnCnyZRTuCGWBjQ7syvwwfN7df6hxM2WgInrlM URKRTptnUaG7OVhyC8V5LHKA4tj1trMLpphGTEub7otD+n7/ZsfbJECpU2i/fIcpFLJW wInw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i5-20020a633c45000000b00578daf0f3a5si2264740pgn.873.2023.10.18.07.11.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:11:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 0B0658075B19; Wed, 18 Oct 2023 07:10:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344812AbjJROJr (ORCPT <rfc822;zwp10758@gmail.com> + 23 others); Wed, 18 Oct 2023 10:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344867AbjJROJN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 18 Oct 2023 10:09:13 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC2CFA for <linux-kernel@vger.kernel.org>; Wed, 18 Oct 2023 07:09:11 -0700 (PDT) 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: 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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:10:08 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780102746356338953 X-GMAIL-MSGID: 1780102746356338953 |
Series |
mm: convert page cpupid functions to folios
|
|
Commit Message
Kefeng Wang
Oct. 18, 2023, 2:08 p.m. UTC
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(-)
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