Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools headers uapi: Sync linux/stat.h with the kernel sources

To pick the changes from:

80340fe3605c ("statx: add mount_root")
fa2fcf4f1df1 ("statx: add mount ID")
581701b7efd6 ("uapi: deprecate STATX_ALL")
712b2698e4c0 ("fs/stat: Define DAX statx attribute")

These add some constants that will have to be manually added in a
followup cset, at some point this should move to the shell based
automated way.

This silences this perf build warning:

Warning: Kernel ABI header at 'tools/include/uapi/linux/stat.h' differs from latest version at 'include/uapi/linux/stat.h'
diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+7 -1
+7 -1
tools/include/uapi/linux/stat.h
··· 123 123 __u32 stx_dev_major; /* ID of device containing file [uncond] */ 124 124 __u32 stx_dev_minor; 125 125 /* 0x90 */ 126 - __u64 __spare2[14]; /* Spare space for future expansion */ 126 + __u64 stx_mnt_id; 127 + __u64 __spare2; 128 + /* 0xa0 */ 129 + __u64 __spare3[12]; /* Spare space for future expansion */ 127 130 /* 0x100 */ 128 131 }; 129 132 ··· 151 148 #define STATX_BLOCKS 0x00000400U /* Want/got stx_blocks */ 152 149 #define STATX_BASIC_STATS 0x000007ffU /* The stuff in the normal stat struct */ 153 150 #define STATX_BTIME 0x00000800U /* Want/got stx_btime */ 151 + #define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */ 154 152 155 153 #define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */ 156 154 ··· 181 177 #define STATX_ATTR_NODUMP 0x00000040 /* [I] File is not to be dumped */ 182 178 #define STATX_ATTR_ENCRYPTED 0x00000800 /* [I] File requires key to decrypt in fs */ 183 179 #define STATX_ATTR_AUTOMOUNT 0x00001000 /* Dir: Automount trigger */ 180 + #define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ 184 181 #define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */ 182 + #define STATX_ATTR_DAX 0x00002000 /* [I] File is DAX */ 185 183 186 184 187 185 #endif /* _UAPI_LINUX_STAT_H */