OSDN Git Service

uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT
authorEric Sandeen <sandeen@redhat.com>
Tue, 1 Dec 2020 23:21:40 +0000 (17:21 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Dec 2020 18:03:14 +0000 (10:03 -0800)
commit72d1249e2ffdbc344e465031ec5335fa3489d62e
treeb696a6064a7a568f03a14f017e74131bc9072c18
parent062c9cdf60a1e581b1002d372f1cf8e745fe3c16
uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT

STATX_ATTR_MOUNT_ROOT and STATX_ATTR_DAX got merged with the same value,
so one of them needs fixing.  Move STATX_ATTR_DAX.

While we're in here, clarify the value-matching scheme for some of the
attributes, and explain why the value for DAX does not match.

Fixes: 80340fe3605c ("statx: add mount_root")
Fixes: 712b2698e4c0 ("fs/stat: Define DAX statx attribute")
Link: https://lore.kernel.org/linux-fsdevel/7027520f-7c79-087e-1d00-743bdefa1a1e@redhat.com/
Link: https://lore.kernel.org/lkml/20201202214629.1563760-1-ira.weiny@intel.com/
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Cc: <stable@vger.kernel.org> # 5.8
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/stat.h