Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3306555pxf; Mon, 15 Mar 2021 06:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrwol5odFsG3C4kpCgusYVCU9aIbrqng5p1NvMo6vcG979SbrPSLYl9/dWF+v1IBBby8Vv X-Received: by 2002:aa7:cdcf:: with SMTP id h15mr29792104edw.28.1615816076706; Mon, 15 Mar 2021 06:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615816076; cv=none; d=google.com; s=arc-20160816; b=n64BWUGgOacUvkFGBalws9Cup+cPSlhPTCeQY14sN02byQCYgkzPvDHEUs6F6mJAIa em+O/2+ZU4YDxCzdJt4hE7u32HWz8v2cduBhk7w7kAR/mJkcf4DC3aHsaw4nt8l3TKpx zU5eZlrd81Ir2u/DUk5Ye8HKbL0XHSSiVHupn/wOTQM1iS990NgHYitNU3pDlXyFa9C/ LXdMSpyDqgqC3TN5MfTtUpjIf4WVQRUO5GAM4T2QijMhZhlMHWfd+ktizPIYakIESO1i HI4qJGpDRbVyGJYIEhgOCChfqG0deBy69NPYQ7vCOzp7OJNNX4GUpNMl9Fl26kLUUJcI c7uQ== 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=vX11bsGcJE0CRePOS5HuSnKaopIkgIWxWo8E8FVQGL8=; b=giICKS4ehh10k0tuCXj+IrLLFNhoZDciBRx5DCXpSQKkymRzH+cv40cztJ5EOGMgu8 dl7i8WYDdzk8RvfwtJmZcwzU9+NGenDczdgtK+g4BXv3/9J5xvZGAjfUxFWHcm3SPF0X FR6jopROlLapXzky5ZQoFLxXCv/HBNOPngDG2MvtsjHIAIcTsiesgMYFnWRD/gsynFel AO1gFi+v1OO4xp5hDXpGVrld1XX8TP6V+/upB93YnNqxd67WBBZLJ7VlFOEhH4QVCzxE XOR/aE7u5t4h9CBQBoGaz4BZZKJ78GEntcwVYi+WTUXFgfiVI4t9muURICRoyuB5qoxp 9JBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=oQ69t1xb; 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 a22si11501914ejp.696.2021.03.15.06.47.34; Mon, 15 Mar 2021 06:47:56 -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=oQ69t1xb; 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 S229518AbhCONqA (ORCPT + 99 others); Mon, 15 Mar 2021 09:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbhCONpj (ORCPT ); Mon, 15 Mar 2021 09:45:39 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20616C06174A; Mon, 15 Mar 2021 06:45:37 -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=vX11bsGcJE0CRePOS5HuSnKaopIkgIWxWo8E8FVQGL8=; b=oQ69t1xbTPN6zyN+S04ZNJkw+1 NHEq0XYigCUv7yk6ZSAuVHwDlAK7Y6Doa2HYx1gTelmAJcpuvZf5R7Esrm2Fkc3v8923U3B5YIf3a +WP6njTaJgADtltqncxuHYiEHjoJQHnoQMeqq7qzrd/TrOdVRTVx5gdVykRS4nzW5hgA8wkALDaJ1 QOeAca+77u8HF9PRx/8d66M2YZut228mYetTSnOL3tHYHD55D3f8/QoPRLr5NzX16+KJKJ1+l2U7h V8f4fJ0tZAkO0I/GGeHWAOeuaIzH3+K94n9N8v+CY5hKgvOMZTAAm8zMR5TiQtRyewS9sIy/Q6DhV xaOi0Usw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lLnWu-000Fop-2q; Mon, 15 Mar 2021 13:45:14 +0000 Date: Mon, 15 Mar 2021 13:45:08 +0000 From: Matthew Wilcox To: "Kirill A. Shutemov" Cc: Hugh Dickins , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 00/25] Page folios Message-ID: <20210315134508.GX2577561@casper.infradead.org> References: <20210305041901.2396498-1-willy@infradead.org> <20210313123658.ad2dcf79a113a8619c19c33b@linux-foundation.org> <20210315115501.7rmzaan2hxsqowgq@box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210315115501.7rmzaan2hxsqowgq@box> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 02:55:01PM +0300, Kirill A. Shutemov wrote: > I'm with Matthew on this. I would really want to drop the number of places > where we call compoud_head(). I hope we can get rid of the page flag > policy hack I made. I can't see that far ahead too clearly, but I do think that at some point we'll actually distinguish between folio flags and page flags. For example, we won't have a FolioHWPoison, because we won't keep a folio together if one page in it has become defective. Nor will we have a PageUptodate because we'll only care about whether a folio is uptodate. And at that point, we won't want page flag policies.