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>
#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.
*
}
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] */