Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp114663pxu; Wed, 25 Nov 2020 14:48:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQXHMsyJlTjj6d8pAlLeMTXhvGJbTqmxXOxhGpXlAEn3nVN11pIIue+IdP1BdJTqeoZ77V X-Received: by 2002:a05:6402:1115:: with SMTP id u21mr5627620edv.148.1606344498140; Wed, 25 Nov 2020 14:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606344498; cv=none; d=google.com; s=arc-20160816; b=tlbku4e6ZeodB9K8Iqpqx9ECk2NPetroHRpGxmBz59ofxagDDvGu6LllfEW0C2wtun fXCidhhrLpsXHi/tokcnPAabTBd3Uo44LkGnSsfk71sKc4YOMEExjrH0boWoaa65ZTzB 13HMuk3HrDoZpJ38hcSkVuYm/4cfFAD6ZEFjVRqZOQXWvyMSr/ycthFj9bDrywaWWkWc eNDUmhnbdigK+3qChAVqYfA/OArmRfxetv0VOIQqT58DA2UnJbSJyjQR5ZioUyuwJIoZ Yv+oxtrcFUqyywoiiPM9rxe3gavR0nuFzUBekgGb19IteYCnz8hWYu55qG80bZbiLu03 x+Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2OmJMqccrYipc5YlyjAqjjjE2k4YgF45uxCd/ALBWJw=; b=o5he08bZocNHncaGNsa1MGHNQROmGr4laeVA89ziGd0tCYS52RxM8R4pjw+xddgd8p GPH6Y1Eq+AxK264gKogiw4OM9PkQAi98BOLhjK8Cyv5WEOccrYyVY91vrYqyJ4Jiwr07 4rik829b0DoVO5TwPV59c9T572AoYi36OUP5jE+pRR6s1rkvXkCBRkUHXNpvFPvOLXdc J2dALjiInS5YlWzcu2+kuwCRHSTllAxEcCZ1HRYBMoBaL4LKpl+CR9BDxgPMx7/moSKC 0MqJm145mAcHciQfS1OKWpXwjQXTmhv1oS++h/FjtBEK3K/d1rCXLtqfa9kFnJ3nkphP ExLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="bT0M/uyq"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si2329953edp.106.2020.11.25.14.47.56; Wed, 25 Nov 2020 14:48:18 -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=@redhat.com header.s=mimecast20190719 header.b="bT0M/uyq"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728661AbgKYTcw (ORCPT + 99 others); Wed, 25 Nov 2020 14:32:52 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32087 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728639AbgKYTcv (ORCPT ); Wed, 25 Nov 2020 14:32:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606332770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2OmJMqccrYipc5YlyjAqjjjE2k4YgF45uxCd/ALBWJw=; b=bT0M/uyqT+JKPaprAt71aewN7cPZWUQbXRDc3Yr9oqkMjj+pALtkKvieaB9PzAssFCzh9b Ua2XopKTDTWBmU9X+oB2tBb+ufAVGWxn/Uav6fkYutK9WJ+FH+c2yL+NnhwAMf7qptFttE 0qXCnj8BSsocqc2i14acCURc5K/kHuw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-521-gbp_SDrxMeiC9AYr7l2ygw-1; Wed, 25 Nov 2020 14:32:48 -0500 X-MC-Unique: gbp_SDrxMeiC9AYr7l2ygw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E7BD956C60; Wed, 25 Nov 2020 19:32:46 +0000 (UTC) Received: from liberator.sandeen.net (ovpn04.gateway.prod.ext.phx2.redhat.com [10.5.9.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02C455D6AC; Wed, 25 Nov 2020 19:32:45 +0000 (UTC) Subject: Re: UAPI value collision: STATX_ATTR_MOUNT_ROOT vs STATX_ATTR_DAX To: David Howells , torvalds@linux-foundation.org, Miklos Szeredi , Ira Weiny Cc: linux-fsdevel@vger.kernel.org, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org References: <1927370.1606323014@warthog.procyon.org.uk> From: Eric Sandeen Message-ID: Date: Wed, 25 Nov 2020 13:32:45 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <1927370.1606323014@warthog.procyon.org.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/25/20 10:50 AM, David Howells wrote: > Hi Linus, Miklos, Ira, > > It seems that two patches that got merged in the 5.8 merge window collided and > no one noticed until now: > > 80340fe3605c0 (Miklos Szeredi 2020-05-14 184) #define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ > ... > 712b2698e4c02 (Ira Weiny 2020-04-30 186) #define STATX_ATTR_DAX 0x00002000 /* [I] File is DAX */ > > The question is, what do we do about it? Renumber one or both of the > constants? > > David Related to this, nothing sets STATX_ATTR_DAX into statx->attributes_mask, anywhere in the kernel. The flag is set into statx->attributes in vfs_getattr_nosec(), but that does not know whether the particular filesystem under query supports dax or not. This is related to my other email about exactly what attributes_mask means, so should STATX_ATTR_DAX be set in statx->attributes_mask only in the filesystems that support dax? (And should that be done only if CONFIG_DAX is turned on, etc?) -Eric