Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2237993pxf; Sat, 13 Mar 2021 12:38:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLt9FRuB9yaAGzfvsEW+49W0sAnglF/vrjjScaYdUybSnCkojn1mjPVYs20KraPEcbR5nx X-Received: by 2002:aa7:d656:: with SMTP id v22mr21408173edr.119.1615667936945; Sat, 13 Mar 2021 12:38:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615667936; cv=none; d=google.com; s=arc-20160816; b=Rmwb0wh0GIgSc9waF26H1aKYb6mfdEOxSIizOYLNwrtGVZKrEniv/amRwGC/GzwG+0 8ZqeR9AswjG60y/s+Wznx5KqmtFDiDOwlR6Y56CJY8QAwDpJz28FENoz+nVaIkL2vcUl UOB/34OZ04vlxtNJ6JSY3xdkzDPIB0YnQNLnEZ8EtpP4wtUpIdIg92qPdUmNrdTpwzdC 8e0KwqWKBi2Gx8AorwtT1nh/A7u+lwUIQiA1IbUs9lpxVEqfm152yP2a+SuHESUOo1yl VMoqSK7oD42CzqUGdgHuzzPVI7JBFnFKvvDMpKTE5YyJRBcl5fpJPq+ufo7B7OeFkSIF R12g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=u8a2KHIjZ+FZVpggTQiLa7LM48hsjyYmpB5lhqqPJq8=; b=rh3Q8n7568DTBh2Oo5nurWYKwfWfSgd0PrAjDeCA3h5TmyxAhi9RuaVKQv/Tw2cb57 trM5jczrgfBrNiGNbwHi/9gEIoNY6Ff1KUeXQMx2jvYE/mjWbP4ctqlCsBvfUqu1Y9lz et8gxOgNCpGRWkAbeHHKFhjLE6GNnKw0exC2YYC8PHBsyAK6rgLjHZkhAd53sqvs8Lwm NmblF0vNq1URQakb+siH2nex5E+ywWRepsPojaDxeZ0su4+0H1Iurz1JOE1QwXH87fSG PokyRaO/vy5cY+61oq9Lm+G81ouCbeIfs6v4meTeAeeSncTSPczsAcvx13yWFaUPJGey RaVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="p/7UxP4+"; 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 i24si7622094ejf.53.2021.03.13.12.38.34; Sat, 13 Mar 2021 12:38:56 -0800 (PST) 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=@linux-foundation.org header.s=korg header.b="p/7UxP4+"; 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 S234573AbhCMUha (ORCPT + 99 others); Sat, 13 Mar 2021 15:37:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:36668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234165AbhCMUg7 (ORCPT ); Sat, 13 Mar 2021 15:36:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D578564ECD; Sat, 13 Mar 2021 20:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1615667819; bh=lrVRSwJF8M5etHaNGCsRwuMHeCP7ip37fuj2Mk8p21o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p/7UxP4+8dasaGAPa7pttK3E/8+FQ8ox9J+WxO7TOfSEWqYTugcp4mcpMevhQ+jis yGIe6zZaUUzVWcTnZdUOyT4W0s7eearabw+2GSU2dOxs+v93bvm9QByXDMFgVPCoiz O/Jh08ZOTkmesvom0o8j0BDmb6zvonJF+Wn6pCO8= Date: Sat, 13 Mar 2021 12:36:58 -0800 From: Andrew Morton To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 00/25] Page folios Message-Id: <20210313123658.ad2dcf79a113a8619c19c33b@linux-foundation.org> In-Reply-To: <20210305041901.2396498-1-willy@infradead.org> References: <20210305041901.2396498-1-willy@infradead.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Mar 2021 04:18:36 +0000 "Matthew Wilcox (Oracle)" wrote: > Our type system does not currently distinguish between tail pages and > head or single pages. This is a problem because we call compound_head() > multiple times (and the compiler cannot optimise it out), bloating the > kernel. It also makes programming hard as it is often unclear whether > a function operates on an individual page, or an entire compound page. > > This patch series introduces the struct folio, which is a type that > represents an entire compound page. This initial set reduces the kernel > size by approximately 6kB, although its real purpose is adding > infrastructure to enable further use of the folio. Geeze it's a lot of noise. More things to remember and we'll forever have a mismash of `page' and `folio' and code everywhere converting from one to the other. Ongoing addition of folio accessors/manipulators to overlay the existing page accessors/manipulators, etc. It's unclear to me that it's all really worth it. What feedback have you seen from others?