Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp223996imw; Mon, 4 Jul 2022 08:06:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usemmm7QzdVA06oqECC/mbLVaPmQuIo9ACiJDBumJT7N8oAFjj8hJpbeB15aZYn9gSSwvT X-Received: by 2002:a05:6402:1104:b0:439:cf4e:5a1b with SMTP id u4-20020a056402110400b00439cf4e5a1bmr17062076edv.261.1656947211456; Mon, 04 Jul 2022 08:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656947211; cv=none; d=google.com; s=arc-20160816; b=HinOFKpIDdGbsk2mAGs9QP02aCJOlUlyBdgZyFqqcT0rSOe9neEhBMM6lksQDHep3F P3FK0hV3BHIfUfkGv16Jd/u8eTr4M03kp8/BfTyWlxUflSFPXYxCRDqNyk2i0Nxh/jXi 6AQ7ISAwId9PRCmZZtazYRsg8j9GGaqfOwpBS6HXZTM1K/vinz4WHvziuBYLqRqsCnZ9 rylxUXno/msq27s7YeA71TnzG+s/e+PJZowqFBZKkMhFyLf+/Y1OvYWXoR3Ibd4tZnNF Wsu3rU4S/O7npg0EC1pfz8UQzotqZ1fQVLI79ajY4uXXXsepSZzkgQc0S0e4v/QMYI0C 1fhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BNvWRWw003hywMuVmvZBynD2U4e1aMJSqur83vbYrqE=; b=dK8jn5v9lwIhqT8un24pd9W9Kf54NgqMWxbk027ZeZBxw7dn6a+pTIumYmVzSCIDCA TarnG161Ged06vi5w1K41ELDeBUDy7r++cpBKeh6PYt9VHjInLgg+E2k5G0CeNsOakcG TsxI8wg30c91GJCxkJYlBjQcz8NFP6+VSICH/Oe0PDRai4SLQdbbUXdDC60cJPhCM9rd antQWbohcatekd+KeIqB8xs4x3qwwXBbk7TsVe5WIeF+hCgdh+CLbiO0pDsVxIHYQYpp Oh8lfulJzXoT9J7IaGghXECvrw+2zcx+WFrWJ77RXJhVkBw6uo7kIbuDgLUzf8duCvYt 2PVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=D6tcueKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a170906241600b0070ebcebf271si18485233eja.268.2022.07.04.08.06.21; Mon, 04 Jul 2022 08:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=D6tcueKT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234409AbiGDO2U (ORCPT + 99 others); Mon, 4 Jul 2022 10:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234392AbiGDO2S (ORCPT ); Mon, 4 Jul 2022 10:28:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A40CE6367 for ; Mon, 4 Jul 2022 07:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BNvWRWw003hywMuVmvZBynD2U4e1aMJSqur83vbYrqE=; b=D6tcueKTPe7HB/QbakEkCppG8L vs2OnJ1O+5QUp18jCp33mtP/Cy7QnfiziCwALkBdd/b6swQ7jZT8iyCmWKaZOXHpQGhSgTasOHNSS KgHAl0WZLVAneVqLhWZBmkp0GX8deWFe7ozlhc8PgXogAwWIghR25lB3WywVvJAtxqQKqpoj2NbeY ed0RzRCfVuPIPNbHqSKChSRxO4o9lHdiaXcKCPcXFFThahGN1JP6k15DZZYMsLShWGqoCGT+qASin bOuOcMCEYoynMy0LO/UmxBNImQL+laL/n6Q6reZkb1A4w211JwYGluvtZ3075/sqJeqQT14lexJHr wihARMTA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8N3X-00HMPh-BQ; Mon, 04 Jul 2022 14:28:07 +0000 Date: Mon, 4 Jul 2022 15:28:07 +0100 From: Matthew Wilcox To: "Russell King (Oracle)" Cc: Andrew Morton , Arnd Bergmann , Mike Rapoport , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 15/14] arm: Rename PMD_ORDER to PMD_BITS Message-ID: References: <20220703141203.147893-1-rppt@kernel.org> <20220703211441.3981873-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 04, 2022 at 12:32:20PM +0100, Russell King (Oracle) wrote: > On Mon, Jul 04, 2022 at 11:48:39AM +0100, Matthew Wilcox wrote: > > On Mon, Jul 04, 2022 at 05:32:33AM +0100, Russell King (Oracle) wrote: > > > On Sun, Jul 03, 2022 at 10:54:49PM +0100, Matthew Wilcox wrote: > > > > On Sun, Jul 03, 2022 at 10:16:45PM +0100, Russell King (Oracle) wrote: > > > > > On Sun, Jul 03, 2022 at 10:14:41PM +0100, Matthew Wilcox (Oracle) wrote: > > > > > > This is the number of bits used by a PMD entry, not the order of a PMD. > > > > > > > > > > No, it's not the number of bits. A PMD entry doesn't fit in 2 or 3 bits. > > > > > This is even more confusing. > > > > > > > > Well, what is it then? The order of something is PAGE_SIZE << n, and > > > > that doesn't seem to be what this is. > > > > > > Where is it defined that "order" means "PAGE_SIZE << n" ? > > > > include/asm-generic/getorder.h: * get_order - Determine the allocation order of a memory size > > I really don't care - "order" is something that is a standard term, The word "order" has many different uses, just in mathematics alone (to say nothing of its uses in biology, business, the military, religion, or signal processing). https://en.wikipedia.org/wiki/Order_(mathematics) > and is entirely appropriate in its use in this case. The fact is, > this use conforms to the standard term usage, not some made up > Linux whim. At the point where you're talking about PMD order, you're in the realm of memory management, and using terms to mean something different from their normal meaning within mm is only going to lead to confusion.