diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-12-06 16:58:08 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2011-12-08 14:53:30 -0500 |
commit | 0244b9603df38bf19155b761689e1a816fc50b0a (patch) | |
tree | 256b91c77c63d2ec58af5844f1e3eb1f587ceaf1 /fs/xfs/xfs_log.h | |
parent | 93b8a5854f247138e401471a9c3b82ccb62ff608 (diff) |
xfs: cleanup the transaction commit path a bit
Now that the nodelaylog mode is gone we can simplify the transaction commit
path a bit by removing the xfs_trans_commit_cil routine. Restoring the
process flags is merged into xfs_trans_commit which already does it for
the error path, and allocating the log vectors is merged into
xlog_cil_format_items, which already fills them with data, thus avoiding
one loop over all log items.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log.h')
-rw-r--r-- | fs/xfs/xfs_log.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index 23e6ae18fb41..2aee3b22d29c 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
@@ -184,8 +184,7 @@ void xlog_iodone(struct xfs_buf *); | |||
184 | struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket); | 184 | struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket); |
185 | void xfs_log_ticket_put(struct xlog_ticket *ticket); | 185 | void xfs_log_ticket_put(struct xlog_ticket *ticket); |
186 | 186 | ||
187 | void xfs_log_commit_cil(struct xfs_mount *mp, struct xfs_trans *tp, | 187 | int xfs_log_commit_cil(struct xfs_mount *mp, struct xfs_trans *tp, |
188 | struct xfs_log_vec *log_vector, | ||
189 | xfs_lsn_t *commit_lsn, int flags); | 188 | xfs_lsn_t *commit_lsn, int flags); |
190 | bool xfs_log_item_in_current_chkpt(struct xfs_log_item *lip); | 189 | bool xfs_log_item_in_current_chkpt(struct xfs_log_item *lip); |
191 | 190 | ||