Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp365104pxu; Thu, 26 Nov 2020 00:07:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpozLAWbDKwhfni2XnKqrJNlGWMi1utGHkBGnCui87JonnN7g0DXLgaUz34kW9NMbHGltw X-Received: by 2002:a05:6402:17b4:: with SMTP id j20mr1433743edy.24.1606378029608; Thu, 26 Nov 2020 00:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606378029; cv=none; d=google.com; s=arc-20160816; b=XbYkDEe54lvHFJiDCZbikE0MYS0gqVjclTvaFgSfDxfY1s8EgLfiG83cYIfbmvDfSA Mboq20grBoNTcpsRdKX/8GEImprhF85inOJMqquv5E/TXH2XkxckG6oU6N9DLLNkH7SR msSs+6rOSRF5A8+OVvYLfZ8PPqM1m61elgDx1N+GDHjNNeWtYjBIv+urP8nKl72N6xDI 4ljFt4gogPpZY/wQU1oUyDOaDlEiP2osjeZNWyu0btV5uVw1wRmhGkXe7U3PYuN/NNNV 3exSwiU0D8u7s00gbpcPrELi7ML5vkaxm3LztMWXqyP9GwqB/2c5YU+lcvsMxFPFtU4V fZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qbHWiqal0hTnnP0+s/LzA+vytzA77Sj1yZGY5laK5Mo=; b=B4a0gPOMr+8E7XeFeCIH5f7M/i+ZoeGhj81zZAJgIVdOjBzOS/VOxHIMTrvDCXcVuW 4WE2qBBEX/Yce6N5KYb57TpZ0LaXaTwS8cOA/WNuNdEerCQkM2GCqwyWTzbT1HA1XlDr JzS3F6yuIF5nX7WxioJfMSinJyO8DdE2y7xLpq0bjZinImYKMM/QKZME3XlO086SuwRF GTdLo0wteCUXKudGtdcSSsN/JCqPciJ4HUhBQJNVV6TfajARLMTIWdr0/wf5BIkoDOFl /INasDemNAoGZRrcRH6duD+zc+/6Kck/yPbxca9z3e2VrkytPrQjezEbM7pvQuuVFSjp 2bjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=bPok7N0l; 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 q23si3401340edb.127.2020.11.26.00.06.46; Thu, 26 Nov 2020 00:07:09 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=bPok7N0l; 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 S1728127AbgKYT1E (ORCPT + 99 others); Wed, 25 Nov 2020 14:27:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727848AbgKYT1E (ORCPT ); Wed, 25 Nov 2020 14:27:04 -0500 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA961C061A4F for ; Wed, 25 Nov 2020 11:27:03 -0800 (PST) Received: by mail-ua1-x92b.google.com with SMTP id r23so1077857uak.0 for ; Wed, 25 Nov 2020 11:27:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qbHWiqal0hTnnP0+s/LzA+vytzA77Sj1yZGY5laK5Mo=; b=bPok7N0lQn8HawChGhsoakYuwCJGVv+1qvsPy3DCBQinvN9qAKU6rmDN2+UTxrdqpS 7R08fQSZZT1oEwe16U/Rzis1FttPkr5y6H0xH1uC5YpiC3EjKKhYDMCL+WqYQIU+/vVb oxBMRoPt5NBNwOZXcirj0UkHLdmnZZu8RpCNU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qbHWiqal0hTnnP0+s/LzA+vytzA77Sj1yZGY5laK5Mo=; b=IRw7krgn4oo+VEwf40+6J4MFGgqd9oKbEeTmn16OLR7IvsBXWiCWhGSJorRqb+aL0W qE4tqFHcSXYdkIY+AVbQC1wsmgZUNmm7Pwp7+IoAb5Q2apVKZCULbsEhTo2PgshKFJOn QwpMiqH/NlqHL8QOT0e6MVkG8ZQU166p4mQRB6aw8M2PQEShhvXOWxGwZ+1GzemxrIi2 PEh8/J2Qukz48PmNhiZNqxfYw9Nx787h6AqXzof5ejT4YjLyU0EOmKDL7kYxfFatWq+/ mmOPq7jheakLPLTLoUeUY6Y18F8+DGKnbsdcf+hMcIr2dQnMt2FfLo3hgaLElF9mglAk 0oCA== X-Gm-Message-State: AOAM533Hjgyo2WOtG8VjKRqLtGL5D+84g5L1wtWoYcKktRj7hvP2WBrZ /bmj2nxSeZ4eyy2QCvh92LbGdAqFSy6czDLLgicNHw== X-Received: by 2002:ab0:35c8:: with SMTP id x8mr3968146uat.72.1606332422949; Wed, 25 Nov 2020 11:27:02 -0800 (PST) MIME-Version: 1.0 References: <1927370.1606323014@warthog.procyon.org.uk> In-Reply-To: <1927370.1606323014@warthog.procyon.org.uk> From: Miklos Szeredi Date: Wed, 25 Nov 2020 20:26:52 +0100 Message-ID: Subject: Re: UAPI value collision: STATX_ATTR_MOUNT_ROOT vs STATX_ATTR_DAX To: David Howells Cc: Linus Torvalds , Miklos Szeredi , Ira Weiny , sandeen@redhat.com, linux-fsdevel@vger.kernel.org, linux-man , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 25, 2020 at 5:57 PM 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? : * Note that the flags marked [I] correspond to generic FS_IOC_FLAGS * semantically. Where possible, the numerical value is picked to correspond * also. : #define FS_DAX_FL 0x02000000 /* Inode is DAX */ The DAX one can be the same value as FS_DAX_FL, the placement (after STATX_ATTR_VERITY, instead of before) seems to confirm this intention. Not that I care too much, the important thing is to have distinct values. Thanks, Miklos