From patchwork Fri Oct 13 08:55:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13420522 Return-Path: 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 E6BE9CDB483 for ; Fri, 13 Oct 2023 08:58:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4E28D8E000E; Fri, 13 Oct 2023 04:58:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 177F68E0011; Fri, 13 Oct 2023 04:58:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CE3638E000E; Fri, 13 Oct 2023 04:58:31 -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 AEEA38E0006 for ; Fri, 13 Oct 2023 04:58:31 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 861131CA7EF for ; Fri, 13 Oct 2023 08:58:31 +0000 (UTC) X-FDA: 81339837222.27.8A05FB9 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf08.hostedemail.com (Postfix) with ESMTP id 50BBE16000D for ; Fri, 13 Oct 2023 08:58:28 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.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=1697187509; 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=0YHxzJua+p5mlcs/k2mq03WYuq2lzIWkVKq0L7/b+fw=; b=qEJYAYL/YRdqOSHi/b5XQB0w3coCJHmFa2gBTIOVsW+cdTT9AQR9mrtm5TyA7qwpJSACjR 1OsBYrSGF/+4zGa95w3whdvSbB1NEn3Ybj9C0Pt5cB0+hON5/9w/Y7gvcbGLAaarwikdAe 09dhQd84qcPKBAgqKsRZoTDIGf4evb0= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf08.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=1697187509; a=rsa-sha256; cv=none; b=l9qppCdE1YcsK4Yl12QnB5t1AHuzBT+MUH2lgwy4HNh2HGjYUUvlaYvuJz5ZMkQ5uspLYw 2djhq+HOuzJh8ziN2Q0TujUVBDa10NnNCgjebAJWEygYlPybv4ebYD9hA+ra3qirSh1c8t eTcnZkqV4Hh3GmdQrFX2q6IrMkPW1Rs= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4S6Kzs0xdxzvPxp; Fri, 13 Oct 2023 16:53:45 +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:23 +0800 From: Kefeng Wang To: Andrew Morton CC: , , , , , Zi Yan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Kefeng Wang Subject: [PATCH -next v2 05/19] mm: huge_memory: use folio_last_cpupid() in __split_huge_page_tail() Date: Fri, 13 Oct 2023 16:55:49 +0800 Message-ID: <20231013085603.1227349-6-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 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: 50BBE16000D X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: ugt1wefsxr1npcq4f9bng9pkc55dj99o X-HE-Tag: 1697187508-514208 X-HE-Meta: U2FsdGVkX189FR599gZv/5jE6ClpuuNK2tLEqjBzJKH2+zplGsQYPwln7EAXdQGhs1LuIvnc0luG5CNDpaCATwC0EbI64PkbpLSQnT0XOUDTPJfyp5gCp7wsKT7h3ZKuu0I6G4tessbUAcLN27ONJqk39eqQ/K8V1DTV2WKs52jPSKsL87q4Dw353HgBSgMdG85PQu/sO9RcdNMR3hY5ZgzXJhQO0xkMilJnQ9CE9GEh82V+Ehh/Mr+JMb+Y8s2FCzwxvo3gHCqA1eMl8m2RAFvd/vL1k1R36hSiwOBEnAOm8rm24e6avUFuTddKbZIpyOWYI+IXKabplBM6fSSa48c6crjT1LcHKm3BWcDA5cBkmSBNEeKBXOWUWNmqKqOQ6TQIc9PpNSJTJqIkZ3hIo56+sqIJybvmQiy7BNaYlToB4eGVypdM6XLEHhPE9KOHMu3WRF1HpYx8/FB5qUv4sNe3jYWVGfPrNvQCs11bQRAdCem0wEWdrmoO/OpPZTpj9ntEutjDnykrlSh+H57ZNe089IVLsfPXO93JLP9kdo+7LaIyImMCcx10aAzeOMSCa7ubkcABQ6KN55i9ZNt2kLwKF1SUW7zWM4oYhjAUgwL1NTVVREX8lFKbaXlrlXy06SANUQm1KhBl6fLoODno0DHpuLWkjN/zdJABl6cSOL5iWfENqyCe1viQISPcA4q1he50U+FnMJ36igcr8TgW+KCwhcQghscTSc64Bvid64PNBeslF8gOdvi60EPQs8pIoc9L2Un1q3mhjXckm3Oop4hRM41GkFqHifXt0pM3PCZ0ZDsj9bDimnoLnK2foxNShLJYiZ5XON6vMWgV1lklegC9pguDD4RO8cFghWbuJVmRiB+8WT8OyAj0AdiaktubBPPQxYwmBVuY3Pq4R4E/bC/L3jl/afSkMkzOaeMd65pGgL+oZCul0qAokgi5up/9pnP4w26dx8DRnVkdLgp +BAOgej5 RkdxKaVE81vpKhetdBItlfxTjp5Fx419Ua7uwZVCLigITKBlDWaqfF/G7UYEw01YHqiyEC1TTc0MPfMpfaK2z12WqkYXOLZN5qy2orJei2IhqEICRiCH4vBRWZmIYmAUPPd0bz2pizBU/cAx9n5qO7tCcOFASN0iq75b7U6fdaxwbmVMqj2+XmACG/UnjM6Cn/cgocn9KSplmge2tOxB1VwH+zfU0vp8C5+Gbx2K9ecRFShrBDrtQ7UV7210QDB5epLrp8KlKesZK5e2+Y3KS4t1TW54QGQymCK6m 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: Convert to use folio_last_cpupid() in __split_huge_page_tail(). Signed-off-by: Kefeng Wang --- 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 f9571bf92603..5455dfe4c3c7 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -2514,7 +2514,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, page_cpupid_last(head)); + page_cpupid_xchg_last(page_tail, folio_last_cpupid(folio)); /* * always add to the tail because some iterators expect new