]> www.infradead.org Git - users/hch/xfs.git/commitdiff
xfs: move struct xfs_log_vec to xfs_log_priv.h xfs-log-format-cleanups
authorChristoph Hellwig <hch@lst.de>
Fri, 23 May 2025 04:14:32 +0000 (06:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 23 May 2025 04:14:32 +0000 (06:14 +0200)
The log_vec is a private type for the log/CIL code and should not be
exposed to anything else.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_log.h
fs/xfs/xfs_log_priv.h

index c4930e925fed90c7664e7ed5b0a5f80ddb6bc68c..0f23812b0b318dd1b0522fba7fbaa2325b20e2a8 100644 (file)
@@ -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
index 17bbe69655a43eba41b74dd2ea2476ce6c866910..1c72ce78594c3e9d88b0c72b1c829741c63e9bd9 100644 (file)
@@ -28,6 +28,18 @@ struct xfs_log_iovec {
        uint16_t                i_type; /* type of region (debug only) */
 };
 
+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.
  *