Hi, In function gfs2_trans_begin, new transactions were created but their ail1 list, tr_ail1_list was never initialized. Therefore it relied upon other circumstances when the list became empty. This patch adds proper initialization of the list.
Signed-off-by: Bob Peterson <[email protected]> --- fs/gfs2/trans.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c index 9d4227330de4..d0efa322f940 100644 --- a/fs/gfs2/trans.c +++ b/fs/gfs2/trans.c @@ -53,6 +53,7 @@ int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, sizeof(u64)); INIT_LIST_HEAD(&tr->tr_databuf); INIT_LIST_HEAD(&tr->tr_buf); + INIT_LIST_HEAD(&tr->tr_ail1_list); sb_start_intwrite(sdp->sd_vfs);
