xfs: factor iclog state processing out of xlog_state_do_callback()
authorDave Chinner <dchinner@redhat.com>
Fri, 6 Sep 2019 00:32:51 +0000 (17:32 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 6 Sep 2019 04:36:12 +0000 (21:36 -0700)
commit5e96fa8d2b094c526a57eb4f17396e27010af2db
treea36f49586150584d3c5edd52f2156ee7e55feef9
parent6546818c857047221df552e3b71e0d93393bed30
xfs: factor iclog state processing out of xlog_state_do_callback()

The iclog IO completion state processing is somewhat complex, and
because it's inside two nested loops it is highly indented and very
hard to read. Factor it out, flatten the logic flow and clean up the
comments so that it much easier to see what the code is doing both
in processing the individual iclogs and in the over
xlog_state_do_callback() operation.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_log.c