From: Christoph Hellwig Date: Sun, 22 Feb 2026 22:41:05 +0000 (-0800) Subject: xfs: move struct xfs_log_iovec to xfs_log_priv.h X-Git-Tag: v7.0.0~86 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=319921d5773b4a638a1d3b756481ed484c29abbf;p=xfsprogs-dev.git xfs: move struct xfs_log_iovec to xfs_log_priv.h 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 Reviewed-by: Darrick J. Wong Signed-off-by: Carlos Maiolino --- diff --git a/libxfs/xfs_log_format.h b/libxfs/xfs_log_format.h index 908e7060..3f5a24dd 100644 --- a/libxfs/xfs_log_format.h +++ b/libxfs/xfs_log_format.h @@ -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. * diff --git a/libxlog/xfs_log_recover.c b/libxlog/xfs_log_recover.c index 65e3c782..af72b97d 100644 --- a/libxlog/xfs_log_recover.c +++ b/libxlog/xfs_log_recover.c @@ -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] */