diff options
author | Dave Chinner <dchinner@redhat.com> | 2010-03-22 19:10:00 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:07 -0400 |
commit | 43f5efc5b59db1b66e39fe9fdfc4ba6a27152afa (patch) | |
tree | 100e2b49e622e6933d8f88e052076e23bd943ae1 /fs/xfs/xfs_log.h | |
parent | e2a07812e93d4a51b1b1a6f15145a1634948db47 (diff) |
xfs: factor log item initialisation
Each log item type does manual initialisation of the log item.
Delayed logging introduces new fields that need initialisation, so
factor all the open coded initialisation into a common function
first.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r-- | fs/xfs/xfs_log.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index 97a24c7795a4..f3a564d298d0 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
@@ -126,6 +126,13 @@ typedef struct xfs_log_callback { | |||
126 | struct xfs_mount; | 126 | struct xfs_mount; |
127 | struct xlog_in_core; | 127 | struct xlog_in_core; |
128 | struct xlog_ticket; | 128 | struct xlog_ticket; |
129 | struct xfs_log_item; | ||
130 | struct xfs_item_ops; | ||
131 | |||
132 | void xfs_log_item_init(struct xfs_mount *mp, | ||
133 | struct xfs_log_item *item, | ||
134 | int type, | ||
135 | struct xfs_item_ops *ops); | ||
129 | 136 | ||
130 | xfs_lsn_t xfs_log_done(struct xfs_mount *mp, | 137 | xfs_lsn_t xfs_log_done(struct xfs_mount *mp, |
131 | struct xlog_ticket *ticket, | 138 | struct xlog_ticket *ticket, |