xfs: clean up xfs_trans_commit logic even more
authorChristoph Hellwig <hch@infradead.org>
Mon, 15 Mar 2010 01:52:49 +0000 (12:52 +1100)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:08 +0000 (09:58 -0500)
commita3ccd2ca43d5cdfe0b256be02957dc5f47ec4c39
tree08b6a0b911c5f1ba45ce9e61754f1db8331a0f72
parent0924378a689ccb05f6d60875742dc28f69bf0129
xfs: clean up xfs_trans_commit logic even more

> +shut_us_down:
> + shutdown = XFS_FORCED_SHUTDOWN(mp) ? EIO : 0;
> + if (!(tp->t_flags & XFS_TRANS_DIRTY) || shutdown) {
> + xfs_trans_unreserve_and_mod_sb(tp);
> + /*

This whole area in _xfs_trans_commit is still a complete mess.

So while touching this code, unravel this mess as well to make the
whole flow of the function simpler and clearer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_trans.c