]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs: move struct xfs_log_iovec to xfs_log_priv.h
authorChristoph Hellwig <hch@lst.de>
Sun, 22 Feb 2026 22:41:05 +0000 (14:41 -0800)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:39:56 +0000 (21:39 +0200)
Source kernel commit: 027410591418bded6ba6051151d88fc6fb8a7614

This structure is now only used by the core logging and CIL code.

Also remove the unused typedef.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_log_format.h
libxlog/xfs_log_recover.c

index 908e7060428ccb4528703b2080530c8cf788a6d4..3f5a24dda9070147502fc6206571c6377fcdf22c 100644 (file)
@@ -184,13 +184,6 @@ struct xlog_rec_header {
 #define XLOG_REC_SIZE_OTHER    offsetofend(struct xlog_rec_header, h_size)
 #endif /* __i386__ */
 
-/* not an on-disk structure, but needed by log recovery in userspace */
-struct xfs_log_iovec {
-       void            *i_addr;        /* beginning address of region */
-       int             i_len;          /* length in bytes of region */
-       uint            i_type;         /* type of region */
-};
-
 /*
  * Transaction Header definitions.
  *
index 65e3c782d59674fc16296fe5b15001f2568ede4f..af72b97d150b75dbe197ab05919b4a96c3db5f4b 100644 (file)
@@ -1112,8 +1112,8 @@ xlog_recover_add_to_trans(
                }
 
                item->ri_total = in_f->ilf_size;
-               item->ri_buf = kzalloc(
-                       item->ri_total * sizeof(struct xfs_log_iovec), 0);
+               item->ri_buf = kcalloc(item->ri_total, sizeof(*item->ri_buf),
+                               0);
        }
        ASSERT(item->ri_total > item->ri_cnt);
        /* Description region is ri_buf[0] */