xfs: refactor recovery transaction start handling
authorDave Chinner <dchinner@redhat.com>
Sun, 28 Sep 2014 23:45:54 +0000 (09:45 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 28 Sep 2014 23:45:54 +0000 (09:45 +1000)
commitb818cca1976d1a01754033ac08724e05d07cce8f
tree1b8f9a03f32787b9e8d90431eab826052c90f716
parent76560669868d3b4d650d91d9bf467a8d81171766
xfs: refactor recovery transaction start handling

Rework the transaction lookup and allocation code in
xlog_recovery_process_ophdr() to fold two related call-once
helper functions into a single helper. Then fold in all the
XLOG_START_TRANS logic to that helper to clean up the remaining
logic in xlog_recovery_process_ophdr().

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_log_recover.c