gfs2: add a helper function to get_log_header that can be used elsewhere
authorAbhi Das <adas@redhat.com>
Fri, 9 Nov 2018 15:54:18 +0000 (09:54 -0600)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 11 Dec 2018 16:50:36 +0000 (17:50 +0100)
commit40e0e61e366bed56b71edb3b970245165090ec9a
treebe18946d9501c6f3e12deab6430d982442ba1d00
parent5b84609532d6e48a769a735d214e2cd705ed395e
gfs2: add a helper function to get_log_header that can be used elsewhere

Move and re-order the error checks and hash/crc computations into another
function __get_log_header() so it can be used in scenarios where buffer_heads
are not being used for the log header.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/recovery.c
fs/gfs2/recovery.h