]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: dump new atomic_write_unit_max_opt statx field
authorDarrick J. Wong <djwong@kernel.org>
Tue, 1 Jul 2025 17:45:13 +0000 (10:45 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Fri, 18 Jul 2025 14:05:10 +0000 (16:05 +0200)
Dump the new atomic writes statx field that's being submitted for 6.16.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
io/stat.c
libfrog/statx.h
m4/package_libcdev.m4

index 46475df343470c1923137b2049eee3341359e189..c257037aa8eec3f2f658ee8e8d7a10fee148b821 100644 (file)
--- a/io/stat.c
+++ b/io/stat.c
@@ -396,6 +396,7 @@ dump_raw_statx(struct statx *stx)
        printf("stat.atomic_write_unit_max = %u\n", stx->stx_atomic_write_unit_max);
        printf("stat.atomic_write_segments_max = %u\n", stx->stx_atomic_write_segments_max);
        printf("stat.dio_read_offset_align = %u\n", stx->stx_dio_read_offset_align);
+       printf("stat.atomic_write_unit_max_opt = %u\n", stx->stx_atomic_write_unit_max_opt);
        return 0;
 }
 
index b76dfae21e709291c42f9eec1e5ee771e4b062f4..e11e2d8f49fa5fabf546fcdce8f4f9e2047300f2 100644 (file)
@@ -143,7 +143,11 @@ struct statx {
        __u32   stx_dio_read_offset_align;
 
        /* 0xb8 */
-       __u64   __spare3[9];    /* Spare space for future expansion */
+       /* Optimised max atomic write unit in bytes */
+       __u32   stx_atomic_write_unit_max_opt;
+       __u32   __spare2[1];
+       /* 0xc0 */
+       __u64   __spare3[8];    /* Spare space for future expansion */
        /* 0x100 */
 };
 
index 61353d0aa9d536971bd63b5c8a38777e4491f256..b77ac1a7580a8089b8980cae4dcdbe69540c3482 100644 (file)
@@ -126,7 +126,7 @@ AC_DEFUN([AC_NEED_INTERNAL_FSCRYPT_POLICY_V2],
 AC_DEFUN([AC_NEED_INTERNAL_STATX],
   [ AC_CHECK_TYPE(struct statx,
       [
-        AC_CHECK_MEMBER(struct statx.stx_dio_read_offset_align,
+        AC_CHECK_MEMBER(struct statx.stx_atomic_write_unit_max_opt,
           ,
           need_internal_statx=yes,
           [#include <linux/stat.h>]