]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4aa94a5a76256f33e6d6dea2aa55931a264aac17
treebe18946d9501c6f3e12deab6430d982442ba1d00
parent8c018c7d67c9508401416f732ff1410018933f04
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