Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6376873rdb; Mon, 1 Jan 2024 22:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9MViYaEcwmdR5p6/SuLytEHTu+UJp4GP80d5oo2r1aQXBN1O1Z8w47Ux28X1/9UfvY9X/ X-Received: by 2002:a05:620a:248b:b0:781:2f54:c658 with SMTP id i11-20020a05620a248b00b007812f54c658mr23438287qkn.65.1704177072053; Mon, 01 Jan 2024 22:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704177072; cv=none; d=google.com; s=arc-20160816; b=NAVKu236rZXZhZ8cQBMr+TpBVtMAthzFMv7NkhduyrDLBowJ9NgDYgm9YP/3Xlk+l3 p8b8FN42eiIdW7QI9woIEqvMT0Ig31SQ3caLmD6PfCkGcx58D32+YrWxeIavRqlTxjjA VgDKSH/PzlXPR11oJD/bzobok/+D9UjvU9LaZQO+sAvaQT8MwjM+3/z76ua5fq/g4wp1 zsIuLDub/KTT88NFRcmqkUzdfUlw4aJvoMzwX2tTTi4hcJGCUdOCaLtPWNQsDQ7f3FgF G/xvEh9UNfRhitQNYTqGRZqWZcyaelx1bL1imS9mj0HNCo3qwSXb8Rd5pikSQHs7BAKw dCBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=xwM83SlsLb1lbvo4JCqZZv0h8wT6KPgcWS/HAwN04/0=; fh=Jnvw8h53QmnzeKD/ARYtGunpqN4ZxxpihlLj0Mot164=; b=T399caEjUMXV/Mnd6er+xbtHxDnwmmEuDaOYOFPwSvzI3D0tbFkKhqzrNIvXJMtLbn cHNI1GwDhzzdxOyP1W4Obk/kyBzkEGVp8FFAA2xjZm/LYU+3BwEUeb8b6EiaYgQ7c93W q5yelRP5HsUQp1hDciGYDRks0YlWoDiLEXzj7IfqArplZ44lJfIw1XHdoXMuT8odT+0J /VwwZx5i5QvBDPQJbKJGdBF0dd2JcHoqSemhesxvy5+z6W2ui+oPdT46FYpEXo8WxNI7 S+GFhzCPLx2tTpCUwwuI3WojTkhTqU9fkHj9fmi9iO53U9UxHhmU6d0Rx4s3slWuI5bA Bcew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=o38+Omru; spf=pass (google.com: domain of linux-kernel+bounces-14083-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v10-20020a0c8e0a000000b0068061330473si12672456qvb.148.2024.01.01.22.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 22:31:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14083-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=o38+Omru; spf=pass (google.com: domain of linux-kernel+bounces-14083-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14083-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C96A51C21258 for ; Tue, 2 Jan 2024 06:31:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6CA946BA; Tue, 2 Jan 2024 06:31:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="o38+Omru" X-Original-To: linux-kernel@vger.kernel.org Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F126468C for ; Tue, 2 Jan 2024 06:31:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704177059; h=from:from: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=xwM83SlsLb1lbvo4JCqZZv0h8wT6KPgcWS/HAwN04/0=; b=o38+Omrur7cm8Q/e0nLnXqBIsWvLMDkbm5ptAnn/ZlZWQiCVmcDjZtwoEs60A94RgcAauv E132opwWBTvCsPeDzfzlh9A4yzPTIVTPtHNC/5L0+b6GA84IBDoYN0L7I27E5LuYL9UL8A OyzbfsSDRORVadxA5D4C39d8zPUzD98= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: Re: [PATCH 03/13] mm: Provide generic pmd_thp_or_huge() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: Date: Tue, 2 Jan 2024 14:30:25 +0800 Cc: LKML , Linux-MM , Matthew Wilcox , Christophe Leroy , Lorenzo Stoakes , David Hildenbrand , Vlastimil Babka , Mike Kravetz , Mike Rapoport , Christoph Hellwig , John Hubbard , Andrew Jones , linux-arm-kernel@lists.infradead.org, Michael Ellerman , "Kirill A . Shutemov" , linuxppc-dev@lists.ozlabs.org, Rik van Riel , linux-riscv@lists.infradead.org, Yang Shi , James Houghton , "Aneesh Kumar K . V" , Andrew Morton , Jason Gunthorpe , Andrea Arcangeli , Axel Rasmussen Content-Transfer-Encoding: quoted-printable Message-Id: <4B38660D-3AC2-4F96-9DD1-2D8CAA55E7E4@linux.dev> References: <20231219075538.414708-1-peterx@redhat.com> <20231219075538.414708-4-peterx@redhat.com> <135b3189-f459-4b57-9861-bb8acb999d91@linux.dev> To: Peter Xu X-Migadu-Flow: FLOW_OUT > On Jan 2, 2024, at 13:37, Peter Xu wrote: >=20 > On Mon, Dec 25, 2023 at 02:29:53PM +0800, Muchun Song wrote: >>> @@ -1355,6 +1355,10 @@ static inline int pmd_write(pmd_t pmd) >>> #endif /* pmd_write */ >>> #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ >>> +#ifndef pmd_thp_or_huge >>=20 >> I think it may be the time to rename to pmd_thp_or_hugetlb, >> the "huge" is really confusing. thp is not huge? Actually, >> it is huge. It is better to make it more specific from now on, like >> "hugetlb". >=20 > The rename will need to touch ARM code, which I wanted to avoid, see: I see. >=20 > arch/arm64/include/asm/pgtable.h:#define pmd_thp_or_huge(pmd) = (pmd_huge(pmd) || pmd_trans_huge(pmd)) >=20 > So far this series only touches generic code. Would you mind I keep = this > patch as-is, and leave renaming to later? OK. THanks. >=20 >>=20 >> BTW, please cc me via the new email (muchun.song@linux.dev) next = edition. >=20 > Sure. Thanks for taking a look. >=20 > --=20 > Peter Xu >=20