From 755e8d219dd90bcae5003596fd813eeb048ad62c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 31 2021 04:20:25 +0000 Subject: Apply patch bz1659490-gfs2_utils_Wrong_hash_value_used_to_clean_journals.patch patch_name: bz1659490-gfs2_utils_Wrong_hash_value_used_to_clean_journals.patch present_in_specfile: true --- diff --git a/gfs2/libgfs2/recovery.c b/gfs2/libgfs2/recovery.c index 6b14bf9..06f8111 100644 --- a/gfs2/libgfs2/recovery.c +++ b/gfs2/libgfs2/recovery.c @@ -241,7 +241,7 @@ int clean_journal(struct gfs2_inode *ip, struct gfs2_log_header *head) lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1); lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT); lh->lh_blkno = cpu_to_be32(lblock); - hash = gfs2_disk_hash((const char *)lh, sizeof(struct gfs2_log_header)); + hash = lgfs2_log_header_hash(bh->b_data); lh->lh_hash = cpu_to_be32(hash); bmodified(bh); brelse(bh);