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 in:

72d1249e2ffdbc34 ("uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT")

That don't cause any change in tooling, just addresses 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: Eric Sandeen <sandeen@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+6 -3
+6 -3
tools/include/uapi/linux/stat.h
··· 171 171 * be of use to ordinary userspace programs such as GUIs or ls rather than 172 172 * specialised tools. 173 173 * 174 - * Note that the flags marked [I] correspond to generic FS_IOC_FLAGS 174 + * Note that the flags marked [I] correspond to the FS_IOC_SETFLAGS flags 175 175 * semantically. Where possible, the numerical value is picked to correspond 176 - * also. 176 + * also. Note that the DAX attribute indicates that the file is in the CPU 177 + * direct access state. It does not correspond to the per-inode flag that 178 + * some filesystems support. 179 + * 177 180 */ 178 181 #define STATX_ATTR_COMPRESSED 0x00000004 /* [I] File is compressed by the fs */ 179 182 #define STATX_ATTR_IMMUTABLE 0x00000010 /* [I] File is marked immutable */ ··· 186 183 #define STATX_ATTR_AUTOMOUNT 0x00001000 /* Dir: Automount trigger */ 187 184 #define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */ 188 185 #define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */ 189 - #define STATX_ATTR_DAX 0x00002000 /* [I] File is DAX */ 186 + #define STATX_ATTR_DAX 0x00200000 /* File is currently in DAX state */ 190 187 191 188 192 189 #endif /* _UAPI_LINUX_STAT_H */