The crc is stored in lh_crc, not lh_hash. Signed-off-by: Andrew Price <anpr...@redhat.com> --- gfs2/libgfs2/structures.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/libgfs2/structures.c b/gfs2/libgfs2/structures.c index 310ba3c1..4cbd78a7 100644 --- a/gfs2/libgfs2/structures.c +++ b/gfs2/libgfs2/structures.c @@ -238,7 +238,7 @@ int write_journal(struct gfs2_inode *jnl, unsigned bsize, unsigned int blocks) #ifdef GFS2_HAS_LH_V2 ((struct gfs2_log_header *)bh->b_data)->lh_addr = cpu_to_be64(bh->b_blocknr); hash = lgfs2_log_header_crc(bh->b_data, bsize); - ((struct gfs2_log_header *)bh->b_data)->lh_hash = cpu_to_be32(hash); + ((struct gfs2_log_header *)bh->b_data)->lh_crc = cpu_to_be32(hash); #endif bmodified(bh); brelse(bh); -- 2.14.3