]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: remove the xfs_efi_log_format_64_t typedef
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Sep 2025 13:26:58 +0000 (06:26 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 16 Sep 2025 10:25:05 +0000 (12:25 +0200)
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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_log_format.h
fs/xfs/xfs_extfree_item.c

index 75cc8b9be598b5de5989e294b66839cd6c21a4ca..358f7cb43be26d76325e3d5a1e7eeb83c2c1369d 100644 (file)
@@ -665,13 +665,13 @@ xfs_efi_log_format32_sizeof(
                        nr * sizeof(struct xfs_extent_32);
 }
 
-typedef struct xfs_efi_log_format_64 {
+struct xfs_efi_log_format_64 {
        uint16_t                efi_type;       /* efi log item type */
        uint16_t                efi_size;       /* size of this item */
        uint32_t                efi_nextents;   /* # extents to free */
        uint64_t                efi_id;         /* efi identifier */
        struct xfs_extent_64    efi_extents[];  /* array of extents to free */
-} xfs_efi_log_format_64_t;
+};
 
 static inline size_t
 xfs_efi_log_format64_sizeof(
index 0190cc55d75b0652cb8fdc014a55b690eda7d8b8..418ddab590e06b58913de9fbec9d2f01b4243fa3 100644 (file)
@@ -216,7 +216,7 @@ xfs_efi_copy_format(
                }
                return 0;
        } else if (buf->iov_len == len64) {
-               xfs_efi_log_format_64_t *src_efi_fmt_64 = buf->iov_base;
+               struct xfs_efi_log_format_64 *src_efi_fmt_64 = buf->iov_base;
 
                dst_efi_fmt->efi_type     = src_efi_fmt_64->efi_type;
                dst_efi_fmt->efi_size     = src_efi_fmt_64->efi_size;