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 4EFEEC433EF for ; Mon, 4 Jul 2022 10:48:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 82E876B0072; Mon, 4 Jul 2022 06:48:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7DF296B0073; Mon, 4 Jul 2022 06:48:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6FF716B0074; Mon, 4 Jul 2022 06:48:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 602936B0072 for ; Mon, 4 Jul 2022 06:48:46 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 0FBB634622 for ; Mon, 4 Jul 2022 10:48:46 +0000 (UTC) X-FDA: 79649094252.26.891AC3A Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf20.hostedemail.com (Postfix) with ESMTP id A14C31C004C for ; Mon, 4 Jul 2022 10:48:45 +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=R065WUthmqEzgKWBrKAm5cYHdmg6DG4yvVjf9aretus=; b=vIRAshX83ml6lhx5YzTLRFSdLx +/XlOOmPWFLIb8vohBG+auYtcUzx49+jp/UVKIKc1b+q+4TRRpi9MFRJpCp8ebYN0Et8QZHy7LUoH v1hXcq2aLAEcKEHtFD9x9Ef5CHAVH2Q/xVa6xKiTnDjCgzkZzLwcDj/HHblGh7e9Zzd3w9H59yu7V 1g0If6WEv5JgyNbKNzfX/x5SJQ9Rw4eIwxjLa2zd7f3ryUfy/bm79K7eJfrnNg8MT58BGR8t7eQO1 3YUW94KTxi/q/QYCE8C29s4V4ewUg75zmGTi7n0WCD3iTO3AnDRRcsG1rEyPkClQqvEvCvbxMvR77 ty9vwmUQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8Jd9-00HBz8-Pt; Mon, 04 Jul 2022 10:48:39 +0000 Date: Mon, 4 Jul 2022 11:48:39 +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=1656931725; 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=R065WUthmqEzgKWBrKAm5cYHdmg6DG4yvVjf9aretus=; b=UcuSoSUX5f8YhwWWYmm0Mx+4N0moyyg5VCLqXzLLQECLn+VBnr/VenFZTjSdowP1fNi7qi tQZYnSvWq50O5+hmPa09NHqYQs87/nJESpQebG/fGDmCzNRvC0B5L3PHJG3QXRVwk8Nv0t QGLUudkAbQtF3kkYfZicfwb5hGfiIKo= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vIRAshX8; dmarc=none; spf=none (imf20.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656931725; a=rsa-sha256; cv=none; b=Q78F+/0mFQZjKsu6jd+xLfnI3FtcZ2CBQ2asZnf1AU9pDbiRqMXshkytakWmXlKLtE4vZh 0ge5B+IKYFHKWwi1iUWjmLGZG9fs/V0vAO1vmJBMei9Z8W8GLX9f0927RtQMwi83o7x1Od OVy92qQr1cUFrHe/We5ENm2zG0BBxyA= Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=vIRAshX8; dmarc=none; spf=none (imf20.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: rspam10 X-Rspamd-Queue-Id: A14C31C004C X-Stat-Signature: s4xi7u9xbfrxeqzan4bxpchs1qo1xwgc X-Rspam-User: X-HE-Tag: 1656931725-989202 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 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 > "order" here is "order of magnitude" and in this case, it is 2^n, just > like order of magnitude in base 10 is 10^n. So strictly, the usage > here is completely correct, but if you describe "order" as "PAGE_SIZE << > n" that is no longer an order of magnitude, because it doesn't increase > in an order of magnitude (iow, n = 2 isn't PAGE_SIZE * PAGE_SIZE). > > Now, if you're trying to tell me that Linux has decided to define > "order" to be something non-standard, I'll accept that, but then we > shouldn't be renaming stuff that is using it in a standard way. > > -- > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!