Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp164751pxb; Tue, 24 Aug 2021 23:38:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0xelbZ820/YPa3CPWd6DXlN67wuqozt//MlFmnxz+xdsuTz9phPrwvlsm75clx9+qUjzV X-Received: by 2002:a17:906:e82:: with SMTP id p2mr20669184ejf.50.1629873502182; Tue, 24 Aug 2021 23:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629873502; cv=none; d=google.com; s=arc-20160816; b=qYo1hC5q7yGTQTuPe8HjYo1LmITVDyG981gt47seBjfm13BKDs9jCWrWRU8BpmY6CX vnU8k6lkaCYPV7PS9o//cONtGywvmamsbdZWc8HMQVFkS8pt627+tUn/zH2DUMg+SUtV yEDgPW4JtPh/WbmUZ34m4Mx6ZEYIuL5oS0vMPOz3Y7vFHYBDps7oGlzd6bj0MnSHo3Cr 6OUao7bAIzvG+fQxPZUeqcJB/PMxAL6eRrIxW4Hfim4mtefbQCX03S1qMapdaBK/tSXe kKx9IkHOekNYeRSbOYOkIje/ibku9hr+BmCkzWtHLeYa/jQExVtkwBLwTbbi09I+brOr 1hug== 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=2XLmr3mig5i7hFsrhfybeAZVxu1dPFwBTiqJmo2ZjDs=; b=bYEJdoL91/sDR45HOsvIXc4qjhywlzxh9g44MLabV2ZJEdka+occkfREokbz4YlLI0 LGJq6lB01ER2cwTiesanw/HzEWzwx+SEA+3iIBGzz8mF3izqHcAdadEZd22GMMom66Kz dUO2uW6sdnAl97Mu5t+9UJpkvwgpWECCSgGN97Ik5iE+HiLPm+6eVfzPHeeGd6934dHH u5+7kLTM8gFk21ElFHYbzsM2OhnREHCKrNQhGkLnl8DdmocZk0OfaEPqqbg43jN9yv4Y efNT5Z5qGG1V7LaIdIAn5LcX8feFygLMnYIP/eckAzmiYcOfIsc52K4PdpqXnbWDwWin Bxmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Y/vL5A1X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si19230453ejr.90.2021.08.24.23.37.57; Tue, 24 Aug 2021 23:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Y/vL5A1X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239297AbhHYGgY (ORCPT + 99 others); Wed, 25 Aug 2021 02:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239293AbhHYGgW (ORCPT ); Wed, 25 Aug 2021 02:36:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2228C061757; Tue, 24 Aug 2021 23:35:36 -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=2XLmr3mig5i7hFsrhfybeAZVxu1dPFwBTiqJmo2ZjDs=; b=Y/vL5A1XzYQGjecTWV5ZlubPWZ GTZIZXOm9XJO0Be7zs+Aj9ueGAGEfnmZxexw/PUD7kF5QYnOLhKGqh6ujtUIll2y3crONRFnfjkGn XEu2lb0XgzN21b5//QSf3Sv9zeguPFet/OyzEGBOr15LkzC0jf9WMzGNFJcV1sbUOfakeh/IJIu0t 4vy3wCYV2ew5sq+yeoArOQi4ZTTkE3L1TxQPPwlnCJztnkkQ/YGQhC9FaGF6hdJlYrGnvNWebM0Ii RTsykyka9MLAs4Hll6kzSOxoIXa7sdJc6rVZLftLKAjjpWr85iqzHgOf5apapcyTgtQ7/qrAkuPm+ 4hrxNGVw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mImSq-00ByML-7A; Wed, 25 Aug 2021 06:32:54 +0000 Date: Wed, 25 Aug 2021 07:32:44 +0100 From: Christoph Hellwig To: Theodore Ts'o Cc: Matthew Wilcox , Linus Torvalds , David Howells , Johannes Weiner , Linux-MM , linux-fsdevel , Linux Kernel Mailing List , Andrew Morton Subject: Re: [GIT PULL] Memory folios for v5.15 Message-ID: References: <1957060.1629820467@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 03:44:48PM -0400, Theodore Ts'o wrote: > The problem is whether we use struct head_page, or folio, or mempages, > we're going to be subsystem users' faces. And people who are using it > every day will eventually get used to anything, whether it's "folio" > or "xmoqax", we sould give a thought to newcomers to Linux file system > code. If they see things like "read_folio()", they are going to be > far more confused than "read_pages()" or "read_mempages()". Are they? It's not like page isn't some randomly made up term as well, just one that had a lot more time to spread. > So if someone sees "kmem_cache_alloc()", they can probably make a > guess what it means, and it's memorable once they learn it. > Similarly, something like "head_page", or "mempages" is going to a bit > more obvious to a kernel newbie. So if we can make a tiny gesture > towards comprehensibility, it would be good to do so while it's still > easier to change the name. All this sounds really weird to me. I doubt there is any name that nicely explains "structure used to manage arbitrary power of two units of memory in the kernel" very well. So I agree with willy here, let's pick something short and not clumsy. I initially found the folio name a little strange, but working with it I got used to it quickly. And all the other uggestions I've seen s far are significantly worse, especially all the odd compounds with page in it.