From: Christoph Hellwig Date: Fri, 5 Dec 2025 15:02:56 +0000 (+0100) Subject: xfs: remove the xfs_extent32_t typedef X-Git-Tag: v6.18.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dafb1681672d6473b7ceabc50a180b261f3a460;p=thirdparty%2Fxfsprogs-dev.git xfs: remove the xfs_extent32_t typedef Source kernel commit: 7eaf684bc48923b5584fc119e8c477be2cdb3eb2 There are almost no users of the typedef left, kill it and switch the remaining users to use the underlying struct. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino Reviewed-by: Christoph Hellwig Signed-off-by: Andrey Albershteyn --- diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index 6d0cad45..f11ba20a 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -617,10 +617,10 @@ struct xfs_extent { * * Provide the different variants for use by a conversion routine. */ -typedef struct xfs_extent_32 { +struct xfs_extent_32 { uint64_t ext_start; uint32_t ext_len; -} __attribute__((packed)) xfs_extent_32_t; +} __attribute__((packed)); typedef struct xfs_extent_64 { uint64_t ext_start; @@ -654,7 +654,7 @@ typedef struct xfs_efi_log_format_32 { uint16_t efi_size; /* size of this item */ uint32_t efi_nextents; /* # extents to free */ uint64_t efi_id; /* efi identifier */ - xfs_extent_32_t efi_extents[]; /* array of extents to free */ + struct xfs_extent_32 efi_extents[]; /* array of extents to free */ } __attribute__((packed)) xfs_efi_log_format_32_t; static inline size_t @@ -707,7 +707,7 @@ typedef struct xfs_efd_log_format_32 { uint16_t efd_size; /* size of this item */ uint32_t efd_nextents; /* # of extents freed */ uint64_t efd_efi_id; /* id of corresponding efi */ - xfs_extent_32_t efd_extents[]; /* array of extents freed */ + struct xfs_extent_32 efd_extents[]; /* array of extents freed */ } __attribute__((packed)) xfs_efd_log_format_32_t; static inline size_t