]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Simplify gfs2_log_pointers_init
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 16 May 2025 03:34:20 +0000 (05:34 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 22 May 2025 07:12:27 +0000 (09:12 +0200)
commit8a43d2187691f1f2b9db66f6b08afcc8a1b3095a
tree340b2894197fed8314400645b1a82f3d696e1986
parent703a4af35647f0f7f77e8942053251d71d221170
gfs2: Simplify gfs2_log_pointers_init

Move the initialization of sdp->sd_log_sequence and
sdp->sd_log_flush_head inside gfs2_log_pointers_init().  Use
gfs2_replay_incr_blk().

Before this change, the log head lookup code in freeze_go_xmote_bh()
didn't update sdp->sd_log_flush_head.  This is now fixed, but the code
in freeze_go_xmote_bh() appears to be pretty useless in the first place:
on a frozen filesystem, the log head will not change.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c
fs/gfs2/recovery.c
fs/gfs2/recovery.h
fs/gfs2/super.c