From: Andrew Price Date: Tue, 6 Mar 2018 10:18:21 +0000 Subject: [Cluster-devel] [PATCH 1/2] libgfs2: Fix a thinko in write_journal() Message-ID: <20180306101822.12438-1-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The crc is stored in lh_crc, not lh_hash. Signed-off-by: Andrew Price --- 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