xfs: introduce new internal log vector structure
authorDave Chinner <dchinner@redhat.com>
Tue, 23 Mar 2010 00:43:17 +0000 (11:43 +1100)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:10 +0000 (09:58 -0500)
commit55b66332d0921146a914d5d75a7b870a65dc4938
tree254f130969b118cc777371691e892db20e96b5a6
parent99428ad0f665a5d5b245ab36cefb6b231d977e73
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>
fs/xfs/xfs_log.c
fs/xfs/xfs_log.h