xfs: refactor xfs_log_force
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Mar 2018 06:15:29 +0000 (23:15 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 14 Mar 2018 18:12:52 +0000 (11:12 -0700)
commite6b965705685c7fc2f24a68410529f86c08c7277
tree0e34740ae42c3c3fc783a5a5d95e2094783e4640
parent656de4ffaffd921e1b45de4150c86ba50da135e9
xfs: refactor xfs_log_force

Streamline the conditionals so that it is more obvious which specific case
form the top of the function comments is being handled.  Use gotos only
for early returns.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c