From mboxrd@z Thu Jan 1 00:00:00 1970 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 29706C43334 for ; Mon, 4 Jul 2022 14:28:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7706D6B0072; Mon, 4 Jul 2022 10:28:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 721776B0073; Mon, 4 Jul 2022 10:28:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 611DE6B0074; Mon, 4 Jul 2022 10:28:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 50B646B0072 for ; Mon, 4 Jul 2022 10:28:16 -0400 (EDT) Received: from smtpin31.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 161889DD for ; Mon, 4 Jul 2022 14:28:16 +0000 (UTC) X-FDA: 79649647392.31.C16EEB8 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf21.hostedemail.com (Postfix) with ESMTP id 9D2F41C000C for ; Mon, 4 Jul 2022 14:28:13 +0000 (UTC) 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: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656944893; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BNvWRWw003hywMuVmvZBynD2U4e1aMJSqur83vbYrqE=; b=RV6sDbEopthsO9EJEjbocb8hCE1qEc+yOQnBJG3gf7XaL6hV46SXnQFJOnyoJEHqLvndkE 8Dt7XF+Ul/bnkQXXGXZklyrScMGggUHnXV8dloATFDI8PyJBIB+MQZAn6qI5I0ILgMa8EU Eus9bz6Y1kEeH/a48FsvqqUpz400CII= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656944893; a=rsa-sha256; cv=none; b=7LRt/ztqAoRsgaPZXHfE9KvKh3scib+j2nWEDZ/qwye45oNpUKSUTK8yQr/RPpJtWJX8W5 Pja3ySMUxIwd43rArxoHzg0JAOyc/TZ63+jMhqwrOujEf4r+4+7ycJJW2v7ueqsFT6d+KF T0UQetH6YTjiliwQmunI94a75eh8Jkg= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=D6tcueKT; dmarc=none; spf=none (imf21.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Stat-Signature: n8fsto8yatbqhrzz3dsjg1fp5hoxnywk X-Rspamd-Queue-Id: 9D2F41C000C X-Rspam-User: Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=D6tcueKT; dmarc=none; spf=none (imf21.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Rspamd-Server: rspam06 X-HE-Tag: 1656944893-537457 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: 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.