Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp353762pxb; Wed, 25 Aug 2021 05:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4heT2p8ms/AuBo7LX1NtgmRrUVbsRZ0/WOEpOCUrwwkXYyBoSKkA+M8TuOQ1q6oLD9poC X-Received: by 2002:a5d:8b03:: with SMTP id k3mr34749614ion.203.1629893104399; Wed, 25 Aug 2021 05:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629893104; cv=none; d=google.com; s=arc-20160816; b=One87N0h3hZBTeLe5gpVjnE1SoNOBI6sAf63DJLgPB64thVLD89KV9X7u0NJxVB458 Xqii0syUSqmuhYo6ZOA+0UoWAxuloi6QTWcx2rdXW/FSJxTNobFUI43vv4sQnDY1HH17 4X2qKLTsMEBeHFUK+Vk6ShAJ84fsKenHTHRfNkAXqVmG3DRT3yzfdfiqHecSYtoL38JL Jqb3ijAoywPRA6OsduFxOg/6cf07hZH4I4mlkVLs3m3GcmcOQ6gW8jCl2Kw0NixfmXUc SUN507/zki9bmkmr/eRG5ZoXCDQET3xJACYI6ecj6kjmSfIUdJZSLeVv7jtyB3A1k4Wa CY7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=5X3OvDlUzuT6aybZJt6s5QHVjI6EVRi7ade0u8U28v4=; b=k/zB3E9f5hNkqNoQlri/H+7EWd46RPpDdhhc+ewSEoV5azMyVhqiBJskq/uceDTLm+ Zcawt3jLHdE5OmmsPUNQQlle5ixvz5YMhsHFMJEioy3yB5+jXJfo+51KRq6L+h8dCV39 GA8aUcZsWXznIR+RzKbjjktzhT+1VUG6uAW9s7qCU++yWY3k/a8XVEE6p1ZYCJB/6rCw WLP1etKnW9qv90ivZqAbFNepum4jbafPQyeQv4E9vPjBKPeZQhcbrsT4/MP3eCQKpqgP 7ciRNvT6dAiFOSuZfI5ZsxeY2owqKp9gIiFhd+wDcFwEHLdpASlRL11AGPcpoTJWz1fN QGDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NLzUGNiY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si17509729ils.66.2021.08.25.05.04.38; Wed, 25 Aug 2021 05:05:04 -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=@kernel.org header.s=k20201202 header.b=NLzUGNiY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240405AbhHYMEG (ORCPT + 99 others); Wed, 25 Aug 2021 08:04:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232681AbhHYMEF (ORCPT ); Wed, 25 Aug 2021 08:04:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A6516112D; Wed, 25 Aug 2021 12:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629893000; bh=zBJ8+9ku38bfHUh58Fx3TVL+5MVfv6XNhkYjTSMb0cA=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=NLzUGNiYNcL+ekext3l75EV5XpugcrM+fZxM7I8FLeilj3c4UswndH7llwCf+uMJ+ nBIfkMPb97vJrw4aeQFCOUGJx7JyRIGZ9VF+dwAkBYEC1emwoBTwhwKgAwE9P7CWpS 0Rq0pSoLhTHS9WgB6b+kgpd6X3u8PcgDqlnfwZgcgAjVl2Nw+B+5MDRNY4D15xLnlh zcbqm1eRlzTrtXip2Fbp0v5dpgd6yEaRO3z3xiRANCqA5GyEHw2RHjJkqtL2ZISNAR Vykknz1PP13CKjOseJinTl0V02kzRwJ362IqsXdfCO/GLq2xvbXQvFEXLl6GCKaeIz hRIh8fdFefCAw== Message-ID: Subject: Re: [GIT PULL] Memory folios for v5.15 From: Jeff Layton To: Christoph Hellwig , Theodore Ts'o Cc: Matthew Wilcox , Linus Torvalds , David Howells , Johannes Weiner , Linux-MM , linux-fsdevel , Linux Kernel Mailing List , Andrew Morton Date: Wed, 25 Aug 2021 08:03:18 -0400 In-Reply-To: References: <1957060.1629820467@warthog.procyon.org.uk> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-08-25 at 07:32 +0100, Christoph Hellwig wrote: > 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. > Absolutely. "folio" is no worse than "page", we've just had more time to get used to "page". > > 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. Same here. Compound words are especially bad, as newbies will continually have to look at whether it's "page_set" or "pageset". -- Jeff Layton