Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp682220pxu; Wed, 2 Dec 2020 00:07:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxThyTMsohdaqyYAZLNNFuTXZo0Q1l3eRieNxEl+ros6ydnZScqREbgm9aARODEpJA1zzQU X-Received: by 2002:a17:906:b143:: with SMTP id bt3mr1219633ejb.318.1606896428465; Wed, 02 Dec 2020 00:07:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606896428; cv=none; d=google.com; s=arc-20160816; b=PHma5dd1s0ZNBHe+E3KhHc9a3uL4L15gUMP4HvdpWjcg5nl8Ul9r59QeIGX7BxbJ8g GhGRwdHHlN6jMEg9u0Igb7O1OBJd+KEdM2CPo8yxwb3mrh7sXC3G7K5EQy21hFbCJBvb DBBlkD61JKcHA9EETJfA/RBt7JjLlCsXNUEdy2D5ScEDZj1XNztl+oeT8XfqSdhmHWD9 Dm7Z+18mgtt4Tr9dFnII4Q07sBVbvxHvv/r71j3/JLfBmII0OlZR5ClRA3/FiMMU/hKE A2w/I/Vlb28GOu+YsnFQcX84ic7QrZM7FliYLZtL+G3/n1ZNGiVJ7qpzOYuWPAPsYFn9 p5iw== 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=uDBxn7MSIWHkb+0YhIz9IAuuaks9YFfm8h/fjLDE0Gg=; b=F2MfqlKy889XoZob/2V+xfUdnl9DhqZwc0JHdA04jv7UiJuOZlGzMc2fssnnhGZdCz WndNSXbyCY+/gcK95scrfoaXUBwcOoW6oyyNkBY0TS0KO6YqoVM2YRFkvDykpeTdUpUS rJ7NTHw2KNakfC3KiDJSKDSL2951M5pv9yXCNmXQKk/xn7eu89d95jFFDPEXR7I/R9j8 AG/8CaHV4ncN4p41AGV2XNftri/PKoyjq8ep1WF3Aq0F9Ula6PDk8EViAcZGITB4XNvh t3D5PenB5qxXDW38Ll44ECGrTYTnIknuaGA8RKSASlDKvhATbH3yjFUJZg9Hor6XgGXD OpDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DyLJfLwo; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 e9si411608ejk.493.2020.12.02.00.06.38; Wed, 02 Dec 2020 00:07:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=DyLJfLwo; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387727AbgLBIEi (ORCPT + 99 others); Wed, 2 Dec 2020 03:04:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387539AbgLBIEh (ORCPT ); Wed, 2 Dec 2020 03:04:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 627A0C0613CF; Wed, 2 Dec 2020 00:03:57 -0800 (PST) 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=uDBxn7MSIWHkb+0YhIz9IAuuaks9YFfm8h/fjLDE0Gg=; b=DyLJfLwoYd7AJsMsJ639+D7rFC Sv0fi5GI4grXGVtC7zThS3idLOU7j3eFG72t5458yA/ypko/CVOG9EQItQ3aTWtAnaVjpAL0XMBFc RVtS8VFzkZzU3vlIDnAWIEjmz2zBRrOvSSYWjAAdnF6YsCwV/kyyIks3+xXDTS5rIviQupaKv97yT BSZ5/jVWJmUOyFshZNHwobY6eYHKamM7Wrj2m7vdE1lrNEeo5LzhRd4xL6BkcF2tRqk8EQpwCjrB/ jxhn7CbHD1jY3FYNnP7CqomcGEvAuFc4bJ929jRjgb7kd0aNwH2Ax+ylhqS4e0yPsNZZeopdj3+7J v1AbBNiA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkN70-0004Jt-2u; Wed, 02 Dec 2020 08:03:42 +0000 Date: Wed, 2 Dec 2020 08:03:42 +0000 From: Christoph Hellwig To: Linus Torvalds Cc: Eric Sandeen , Dave Chinner , "Darrick J. Wong" , Eric Sandeen , Miklos Szeredi , Ira Weiny , David Howells , linux-fsdevel , linux-man , Linux Kernel Mailing List , xfs , Ext4 Developers List , Xiaoli Feng Subject: Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems Message-ID: <20201202080342.GB15726@infradead.org> References: <05a0f4fd-7f62-8fbc-378d-886ccd5b3f11@redhat.com> <20201201173905.GI143045@magnolia> <20201201205243.GK2842436@dread.disaster.area> <9ab51770-1917-fc05-ff57-7677f17b6e44@sandeen.net> 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-ext4@vger.kernel.org On Tue, Dec 01, 2020 at 02:12:19PM -0800, Linus Torvalds wrote: > On Tue, Dec 1, 2020 at 2:03 PM Eric Sandeen wrote: > > > > That's why I was keen to just add DAX unconditionally at this point, and if we want > > to invent/refine meanings for the mask, we can still try to do that? > > Oh Gods. Let's *not* make this some "random filesystem choice" where > now semantics depends on what some filesystem decided to do, and > different filesystems have very subtly different semantics. > > This all screams "please keep this in the VFS layer" so that we at > least have _one_ place where these kinds of decisions are made. > > I suspect very very few people actually end up caring about any of the > STATX flags at all, of course. The fact that the DAX one was > apparently entirely the wrong bit argues that this isn't all that > important. Agreed. That whole support interface is just weird. But the only thing that remotely makes (a little bit of) sense is to just set all bits known about by this particular kernel in the VFS. Everything else is going to be a complete mess.