xfs: refactor in-core log state update to helper
authorBrian Foster <bfoster@redhat.com>
Sun, 6 Mar 2016 21:22:22 +0000 (08:22 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 6 Mar 2016 21:22:22 +0000 (08:22 +1100)
commit717bc0ebca0bce9cb3edfc31b49b384a1d55db1c
treef6d78b56611b3bf7265abb973963ec3627b18c02
parent65b99a08b350876e8835fc0e7173598165f64dee
xfs: refactor in-core log state update to helper

Once the record at the head of the log is identified and verified, the
in-core log state is updated based on the record. This includes
information such as the current head block and cycle, the start block of
the last record written to the log, the tail lsn, etc.

Once torn write detection is conditional, this logic will need to be
reused. Factor the code to update the in-core log data structures into a
new helper function. This patch does not change behavior.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c