[PATCH 09/13] linux: Update statx-generic.h with linux 6.14

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Oct 3 19:39:00 GMT 2025


It adds the new constant STATX_DIO_READ_ALIGN and related fields in
generic statx struct from Linux commit
7ed6cbe0f8caa6ee38a2dc8f1b925acb904cc01f.
---
 io/bits/statx-generic.h      | 1 +
 io/bits/types/struct_statx.h | 4 ++--
 io/tst-statx.c               | 3 +--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/io/bits/statx-generic.h b/io/bits/statx-generic.h
index 779f52cded..0ce9e40b51 100644
--- a/io/bits/statx-generic.h
+++ b/io/bits/statx-generic.h
@@ -45,6 +45,7 @@
 # define STATX_MNT_ID_UNIQUE 0x4000U
 # define STATX_SUBVOL 0x8000U
 # define STATX_WRITE_ATOMIC 0x00010000U
+# define STATX_DIO_READ_ALIGN 0x00020000U
 # define STATX__RESERVED 0x80000000U
 
 # define STATX_ATTR_COMPRESSED 0x0004
diff --git a/io/bits/types/struct_statx.h b/io/bits/types/struct_statx.h
index e8d492df77..353582ebf7 100644
--- a/io/bits/types/struct_statx.h
+++ b/io/bits/types/struct_statx.h
@@ -56,8 +56,8 @@ struct statx
   __uint32_t stx_atomic_write_unit_min;
   __uint32_t stx_atomic_write_unit_max;
   __uint32_t stx_atomic_write_segments_max;
-  __uint32_t __statx_pad2;
-  __uint64_t __statx_pad3[9];
+  __uint32_t stx_dio_read_offset_align;
+  __uint64_t __statx_pad2[9];
 };
 
 #endif /* __statx_defined */
diff --git a/io/tst-statx.c b/io/tst-statx.c
index d691d157e0..465bc616d5 100644
--- a/io/tst-statx.c
+++ b/io/tst-statx.c
@@ -37,8 +37,7 @@ _Static_assert (offsetof (struct statx, stx_nlink) == 16, "statx nlink");
 _Static_assert (offsetof (struct statx, stx_ino) == 32, "statx ino");
 _Static_assert (offsetof (struct statx, stx_atime) == 64, "statx atime");
 _Static_assert (offsetof (struct statx, stx_rdev_major) == 128, "statx rdev");
-_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb4, "statx pad2");
-_Static_assert (offsetof (struct statx, __statx_pad3) == 0xb8, "statx pad3");
+_Static_assert (offsetof (struct statx, __statx_pad2) == 0xb8, "statx pad2");
 
 #include "statx_generic.c"
 
-- 
2.43.0



More information about the Libc-alpha mailing list