xfs: separate log head record discovery from verification
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)
commit82ff6cc26e98f9bba8e2a10f727e335fa241cc47
tree1ade96b0076472af2a28b62c4323baa431b077f3
parent36f90b0a2ddd60823fe193a85e60ff1906c2a9b3
xfs: separate log head record discovery from verification

The code that locates the log record at the head of the log is buried in
the log head verification function. This is fine when torn write
verification occurs unconditionally, but this behavior is problematic
for filesystems that might be moved across systems with different
architectures.

In preparation for separating examination of the log head for unmount
records from torn write detection, lift the record location logic out of
the log verification function and into the caller. 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