]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: cleanup the transaction commit path a bit
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Dec 2011 21:58:08 +0000 (21:58 +0000)
committerBen Myers <bpm@sgi.com>
Thu, 8 Dec 2011 19:53:30 +0000 (13:53 -0600)
commit0244b9603df38bf19155b761689e1a816fc50b0a
tree256b91c77c63d2ec58af5844f1e3eb1f587ceaf1
parent93b8a5854f247138e401471a9c3b82ccb62ff608
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>
fs/xfs/xfs_log.h
fs/xfs/xfs_log_cil.c
fs/xfs/xfs_trans.c