gfs2: initialize transaction tr_ailX_lists earlier
authorBob Peterson <rpeterso@redhat.com>
Fri, 5 Jun 2020 19:12:34 +0000 (14:12 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Jun 2020 19:24:25 +0000 (21:24 +0200)
commitcbcc89b630447ec7836aa2b9242d9bb1725f5a61
treef9abdb29400b751e5c04902ddb37831c6fec5130
parentd5dc3d9677394d4fb4dca61856491df5a37db31a
gfs2: initialize transaction tr_ailX_lists earlier

Since transactions may be freed shortly after they're created, before
a log_flush occurs, we need to initialize their ail1 and ail2 lists
earlier. Before this patch, the ail1 list was initialized in gfs2_log_flush().
This moves the initialization to the point when the transaction is first
created.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glops.c
fs/gfs2/log.c
fs/gfs2/trans.c