]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0b397002ff2357a1acd40392338e93e2985b033
treeb696a6064a7a568f03a14f017e74131bc9072c18
parentcbe2d2b6d32a663ce08053ef08e8f963e65e06e6
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: 2219608f58e9 ("statx: add mount_root")
Fixes: 95e740f96e65 ("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