Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp30222pxf; Wed, 17 Mar 2021 14:27:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv+mk//eYzEijxwViW0zhwGi1osi7N4QzMy7i1Uuyl6RqmUOW0mLUuCM+NaxXglIkCgemA X-Received: by 2002:a17:906:8583:: with SMTP id v3mr38081536ejx.361.1616016427448; Wed, 17 Mar 2021 14:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616016427; cv=none; d=google.com; s=arc-20160816; b=XtS0DxTfvJUZngDu73lcv5r/YgpbtOxuC7i0C22zkyWa0odKnbnP4dG96EfLJWXa7E F7ESf1JE7rKQ2iHw5t8/bxfSnHGhYVDIZn+iOm1teC/iGQgzV18wClbyvfnpMkxnoZ3f j/NqUrVN5DLrxt7BGfCWbMNErfEFJR3rU/OEgtQlTeRC15juCvEk3ZdGs7kZBoE3kr2p WSTgTj5y1ckrMnbAskgMqpHntJhf81P3eav/TuXc2mp4lofeVJ5LqQxF0jHc9RbH26HI jXYOoTOrWC94jc0JmrODdcO5bdGtPHCtgsxhszbowCuqypcS3CbZnA7oOMcIHM0BQP43 bOWQ== 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=yo6Fi9VPbozhR4/XkrldehgVPuWGAklwU7qbAjO38qQ=; b=SCDtbfxYEyaxTia3drNh/DdCbkFugqYROcyvV6Z7ZK9R44EQg8u2ePcxQCoPNxb3iL 2FokieFRXisITN2nnseUeN3PE7yTqC/6vUGkr0Bd6fmBVz3f7CyUdrzpbCdQQTkRc6yj Rl7QW4o5KtPuRNFgLtzD778t4m+sARpG7Z5DNn4vBGyW8J07T5fO9HUh2ZmDjDFfMptu KQiKr94OiP1q1IiiF4/3LAcTt0Ozuvd14xBXQtaYOhQTHl0InsPcLONlCh+YshAFf9UQ iCG50B6dOLfLdUdvFM3FtyE+2FMb4M4luhH3C4LbCxvMVY7Dwr11fD15i2wSrJwbPaNO pYMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Ztpw7xml; 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 ca3si14035ejb.561.2021.03.17.14.26.44; Wed, 17 Mar 2021 14:27:07 -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=Ztpw7xml; 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 S231354AbhCQROx (ORCPT + 99 others); Wed, 17 Mar 2021 13:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbhCQROm (ORCPT ); Wed, 17 Mar 2021 13:14:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68CD8C06174A; Wed, 17 Mar 2021 10:14:41 -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=yo6Fi9VPbozhR4/XkrldehgVPuWGAklwU7qbAjO38qQ=; b=Ztpw7xml643pqS6iyfntpjWSUP XSi+NpT+KK5byJXLPP5aI9TfIlIs470+JZq3+fiEQqeH/nsZ6d+0VW4G3tA1Zs2MWzN8g6bDG4Edh Ej9D8VUkAS/U5KNj1cHLYsX5+Ra8VVIln34KFq4as8vjAw3WLHplU+Nt2DBSgWPJKv/5PflBzaJFs KrR7w4iSeNYy/11SyHouk+QdY/MJSEB6AapmzCyWRzrSs8UXUgM+BT5GMLUoeKoqF4GhhNECd0k7a p3ZxqILzaZ7vz5EiWYFj8jHWE+MojeTiK/lmWv4E7rCVrP7GXweqLdYQNSasdkeGysVIdrg+A2aR7 U9pd9/Sw==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lMZkK-001tiT-NJ; Wed, 17 Mar 2021 17:14:17 +0000 Date: Wed, 17 Mar 2021 17:14:12 +0000 From: Christoph Hellwig To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 01/25] mm: Introduce struct folio Message-ID: <20210317171412.GA451661@infradead.org> References: <20210305041901.2396498-1-willy@infradead.org> <20210305041901.2396498-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210305041901.2396498-2-willy@infradead.org> 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 Fri, Mar 05, 2021 at 04:18:37AM +0000, Matthew Wilcox (Oracle) wrote: > +/* > + * A struct folio is either a base (order-0) page or the head page of > + * a compound page. > + */ Hmm. While that comment seems to be true I'm not sure it is the essence. Maybe it should be more framed in terms of "A folio represents a contigously allocated chunk of memory.." and then extend it with the categories of state and operations performed on the folio while those get added. The above statement can still remain as a low-level explanation, maybe moved to the page member instead of the type itself.