Skip to content

Commit d6283b1

Browse files
committed
tools headers uapi: Sync linux/stat.h with the kernel sources to pick STATX_SUBVOL
To pick the changes from: 2a82bb0 ("statx: stx_subvol") This silences this perf build warning: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h Cc: Adrian Hunter <[email protected]> Cc: Christian Brauner <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/lkml/ZlnK2Fmx_gahzwZI@x1 Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 2f523f2 commit d6283b1

File tree

1 file changed

+3
-1
lines changed
  • tools/include/uapi/linux

1 file changed

+3
-1
lines changed

tools/include/uapi/linux/stat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ struct statx {
126126
__u64 stx_mnt_id;
127127
__u32 stx_dio_mem_align; /* Memory buffer alignment for direct I/O */
128128
__u32 stx_dio_offset_align; /* File offset alignment for direct I/O */
129+
__u64 stx_subvol; /* Subvolume identifier */
129130
/* 0xa0 */
130-
__u64 __spare3[12]; /* Spare space for future expansion */
131+
__u64 __spare3[11]; /* Spare space for future expansion */
131132
/* 0x100 */
132133
};
133134

@@ -155,6 +156,7 @@ struct statx {
155156
#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */
156157
#define STATX_DIOALIGN 0x00002000U /* Want/got direct I/O alignment info */
157158
#define STATX_MNT_ID_UNIQUE 0x00004000U /* Want/got extended stx_mount_id */
159+
#define STATX_SUBVOL 0x00008000U /* Want/got stx_subvol */
158160

159161
#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */
160162

0 commit comments

Comments
 (0)