Commit 2499d911 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Carlos Maiolino
Browse files

xfs: move struct xfs_log_vec to xfs_log_priv.h



The log_vec is a private type for the log/CIL code and should not be
exposed to anything else.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 02741059
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -9,18 +9,6 @@
struct xlog_format_buf;
struct xfs_cil_ctx;

struct xfs_log_vec {
	struct list_head	lv_list;	/* CIL lv chain ptrs */
	uint32_t		lv_order_id;	/* chain ordering info */
	int			lv_niovecs;	/* number of iovecs in lv */
	struct xfs_log_iovec	*lv_iovecp;	/* iovec array */
	struct xfs_log_item	*lv_item;	/* owner */
	char			*lv_buf;	/* formatted buffer */
	int			lv_bytes;	/* accounted space in buffer */
	int			lv_buf_used;	/* buffer space used so far */
	int			lv_alloc_size;	/* size of allocated lv */
};

/* Region types for iovec's i_type */
#define XLOG_REG_TYPE_BFORMAT		1
#define XLOG_REG_TYPE_BCHUNK		2
+12 −0
Original line number Diff line number Diff line
@@ -19,6 +19,18 @@ struct xfs_log_iovec {
	uint			i_type;	/* type of region */
};

struct xfs_log_vec {
	struct list_head	lv_list;	/* CIL lv chain ptrs */
	uint32_t		lv_order_id;	/* chain ordering info */
	int			lv_niovecs;	/* number of iovecs in lv */
	struct xfs_log_iovec	*lv_iovecp;	/* iovec array */
	struct xfs_log_item	*lv_item;	/* owner */
	char			*lv_buf;	/* formatted buffer */
	int			lv_bytes;	/* accounted space in buffer */
	int			lv_buf_used;	/* buffer space used so far */
	int			lv_alloc_size;	/* size of allocated lv */
};

/*
 * get client id from packed copy.
 *