]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite10bb91af6bdd868befed04f01fbee6f53f3ccbc
treea36f49586150584d3c5edd52f2156ee7e55feef9
parent244ea53fd254a4267ea676780f5ba486e2a418f2
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