summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-03-23 11:43:17 +1100
committerAlex Elder <aelder@sgi.com>2010-05-19 09:58:10 -0500
commit55b66332d0921146a914d5d75a7b870a65dc4938 (patch)
tree254f130969b118cc777371691e892db20e96b5a6 /fs/xfs/xfs_log.h
parent99428ad0f665a5d5b245ab36cefb6b231d977e73 (diff)
downloadblackbird-op-linux-55b66332d0921146a914d5d75a7b870a65dc4938.tar.gz
blackbird-op-linux-55b66332d0921146a914d5d75a7b870a65dc4938.zip
xfs: introduce new internal log vector structure
The current log IO vector structure is a flat array and not extensible. To make it possible to keep separate log IO vectors for individual log items, we need a method of chaining log IO vectors together. Introduce a new log vector type that can be used to wrap the existing log IO vectors on use that internally to the log. This means that the existing external interface (xfs_log_write) does not change and hence no changes to the transaction commit code are required. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r--fs/xfs/xfs_log.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h
index f3a564d298d0..229d1f36ba9a 100644
--- a/fs/xfs/xfs_log.h
+++ b/fs/xfs/xfs_log.h
@@ -110,6 +110,12 @@ typedef struct xfs_log_iovec {
uint i_type; /* type of region */
} xfs_log_iovec_t;
+struct xfs_log_vec {
+ struct xfs_log_vec *lv_next; /* next lv in build list */
+ int lv_niovecs; /* number of iovecs in lv */
+ struct xfs_log_iovec *lv_iovecp; /* iovec array */
+};
+
/*
* Structure used to pass callback function and the function's argument
* to the log manager.
OpenPOWER on IntegriCloud