Skip to content

Commit 3c38491

Browse files
committed
tools headers UAPI: sync linux/stat.h with kernel
JIRA: https://issues.redhat.com/browse/RHEL-29796 Upstream Status: RHEL only description =========== Upstream, when there is a change in a header file from the specific set of headers (listed in tools/perf/check-headers.sh), it is accompanied by a commit that brings the same change into its counterpart located in tools/include. Usually several changes are squashed together. We cannot easily follow this strategy, since we not always take all the commits squashed together. In order to tidy tools/include up, we need to sync the headers manually. Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent 8a4fe9f commit 3c38491

File tree

1 file changed

+10
-2
lines changed
  • tools/perf/trace/beauty/include/uapi/linux

1 file changed

+10
-2
lines changed

tools/perf/trace/beauty/include/uapi/linux/stat.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,14 @@ struct statx {
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 */
129129
/* 0xa0 */
130-
__u64 __spare3[12]; /* Spare space for future expansion */
130+
__u64 stx_subvol; /* Subvolume identifier */
131+
__u32 stx_atomic_write_unit_min; /* Min atomic write unit in bytes */
132+
__u32 stx_atomic_write_unit_max; /* Max atomic write unit in bytes */
133+
/* 0xb0 */
134+
__u32 stx_atomic_write_segments_max; /* Max atomic write segment count */
135+
__u32 __spare1[1];
136+
/* 0xb8 */
137+
__u64 __spare3[9]; /* Spare space for future expansion */
131138
/* 0x100 */
132139
};
133140

@@ -154,7 +161,7 @@ struct statx {
154161
#define STATX_BTIME 0x00000800U /* Want/got stx_btime */
155162
#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */
156163
#define STATX_DIOALIGN 0x00002000U /* Want/got direct I/O alignment info */
157-
#define STATX_MNT_ID_UNIQUE 0x00004000U /* Want/got extended stx_mount_id */
164+
#define STATX_WRITE_ATOMIC 0x00010000U /* Want/got atomic_write_* fields */
158165

159166
#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */
160167

@@ -190,6 +197,7 @@ struct statx {
190197
#define STATX_ATTR_MOUNT_ROOT 0x00002000 /* Root of a mount */
191198
#define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */
192199
#define STATX_ATTR_DAX 0x00200000 /* File is currently in DAX state */
200+
#define STATX_ATTR_WRITE_ATOMIC 0x00400000 /* File supports atomic write operations */
193201

194202

195203
#endif /* _UAPI_LINUX_STAT_H */

0 commit comments

Comments
 (0)