]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: convert xfs_extent_t typedef to struct
authorAndrey Albershteyn <aalbersh@redhat.com>
Fri, 5 Dec 2025 15:02:32 +0000 (16:02 +0100)
committerAndrey Albershteyn <aalbersh@kernel.org>
Mon, 8 Dec 2025 17:03:15 +0000 (18:03 +0100)
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
logprint/log_redo.c

index cabf5ad470fcc08b3aa65ef214cdc8e9decd60ef..cdd6e8b763681bf9f68b4fc49bb2835e1afaf56b 100644 (file)
@@ -71,7 +71,7 @@ xlog_print_trans_efi(
        const char                      *item_name = "EFI?";
        struct xfs_efi_log_format       *src_f, *f = NULL;
        uint                            dst_len;
-       xfs_extent_t                    *ex;
+       struct xfs_extent               *ex;
        int                             i;
        int                             error = 0;
        int                             core_size = offsetof(
@@ -141,7 +141,7 @@ xlog_recover_print_efi(
 {
        const char                      *item_name = "EFI?";
        struct xfs_efi_log_format       *f, *src_f;
-       xfs_extent_t                    *ex;
+       struct xfs_extent               *ex;
        int                             i;
        uint                            src_len, dst_len;
 
@@ -154,7 +154,7 @@ xlog_recover_print_efi(
         * Need to convert to native format.
         */
        dst_len = sizeof(struct xfs_efi_log_format) +
-               (src_f->efi_nextents) * sizeof(xfs_extent_t);
+               (src_f->efi_nextents) * sizeof(struct xfs_extent);
        if ((f = (struct xfs_efi_log_format *)malloc(dst_len)) == NULL) {
                fprintf(stderr, _("%s: xlog_recover_print_efi: malloc failed\n"),
                        progname);