Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp311562pxu; Thu, 3 Dec 2020 00:18:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwss5AqA96ua7GgZ5MrtdhQgaCbj+oMBJVGd4tvya6xiHPvf1MUXRlwBj+4SjskyyiVtYfM X-Received: by 2002:a17:907:20f1:: with SMTP id rh17mr1445890ejb.147.1606983512860; Thu, 03 Dec 2020 00:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606983512; cv=none; d=google.com; s=arc-20160816; b=Uuegrh4ZNIFYHdyyVMkRcakbaJDXl4H3e+0ofO7PqrdZPzMsRhNVgCH8KKWQdIOqTZ xuKBRx/WG01zh7temjT6tLA9szPBFjJXT8uSPI7IQgTnxCCdNu1MvfQ0k3i1a3BFNLNP kL/dWhh/O5U5ZPzM7NcrcMlGqsg94Tp3r+Twn/uCbZzvdhOLWPGeL1mlAfGnaJMkcUUI ihZW3YKXSZTiLIGhxb7HDj4ZLvU6oWjKjBvSjrxmNiqh0CKu3ohaAiFO0CCdlFW7wM04 hHXjnFNEP2cqAqlXOiz6s+HiwvDMzraa75f/4xoZAbgwcjPxD7Jo5csqqyffO38RO+nW 0+Pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IaIO/cvKXGKR25QpfnnPUf6gDH7z4rcgWuO1aNGXZ+Q=; b=mbym0UAWxSDCfxeuGLOZXQFJ+M3Wr4+gHMb12+uoHXj1hE8yjdlf8z8LcDu8wCMRYz IWDLbR9tm3b3xpGGuUzaRDJOpplvgB9dNvu1zycRcIvc7uKygGTAAKJgxTlG2AqcaPPp /xRC6L4YqG8QY4ZVUj2Z3mM5dx+5hjMHvNBlymUnxbVtHLimw2+mMSRCV/jbZiBNzxx3 kGJ6lY/BTPdQI4SUcesZGsBYm06icjVoKQwtFrZK4DYjilqpQotgVIuwPcN7UgnkrMcE Sr08AHLB8eXvP1nUaQoJFQoKKCQ8Em/pJFCgh0K9EPIARmpM9DR2GW8qPENPpNJX6CB4 t0CQ== ARC-Authentication-Results: i=1; mx.google.com; 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 df12si459593edb.5.2020.12.03.00.18.09; Thu, 03 Dec 2020 00:18:32 -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; 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 S2388254AbgLCIQk (ORCPT + 99 others); Thu, 3 Dec 2020 03:16:40 -0500 Received: from verein.lst.de ([213.95.11.211]:57534 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728193AbgLCIQk (ORCPT ); Thu, 3 Dec 2020 03:16:40 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 018BA67373; Thu, 3 Dec 2020 09:15:56 +0100 (CET) Date: Thu, 3 Dec 2020 09:15:56 +0100 From: Christoph Hellwig To: ira.weiny@intel.com Cc: fstests@vger.kernel.org, Christoph Hellwig , Eric Sandeen , linux-kernel@vger.kernel.org, "Darrick J. Wong" , Dan Williams , Dave Chinner , "Theodore Y. Ts'o" , Jan Kara , Jeff Moyer , linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, David Howells Subject: Re: [PATCH] common/rc: Fix _check_s_dax() Message-ID: <20201203081556.GA15306@lst.de> References: <20201202214145.1563433-1-ira.weiny@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201202214145.1563433-1-ira.weiny@intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2020 at 01:41:45PM -0800, ira.weiny@intel.com wrote: > From: Ira Weiny > > There is a conflict with the user visible statx bits 'mount root' and > 'dax'. The kernel is changing the dax bit to correct this conflict.[1] > > Adjust _check_s_dax() to use the new bit. Because DAX tests do not run > on root mounts, STATX_ATTR_MOUNT_ROOT should always be 0, therefore we > can allow either bit to indicate DAX and cover any kernel which may be > running. > > [1] https://lore.kernel.org/lkml/3e28d2c7-fbe5-298a-13ba-dcd8fd504666@redhat.com/ > > Signed-off-by: Ira Weiny > --- > > I went ahead and used Christoph's suggestion regarding using both bits. That wasn't my suggestion. I think we should always error out when the bit value shared with STATX_ATTR_MOUNT_ROOT is seen. Because that means the kernel is not using or fixed ABI we agreed to use going forward.