summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2018-01-16 23:07:57 +0100
committerBob Peterson <rpeterso@redhat.com>2018-01-22 07:06:15 -0700
commit0ff5916ad4eb857e03e7586665d1c022ef3277f6 (patch)
tree0aa2f49c36c8c7d574a8d037e6495119e63beabd /fs/gfs2/log.c
parent88b65ce5fdd9ac75df1534cf6503db0ccb230ecb (diff)
downloadlinux-0ff5916ad4eb857e03e7586665d1c022ef3277f6.tar.gz
linux-0ff5916ad4eb857e03e7586665d1c022ef3277f6.tar.bz2
linux-0ff5916ad4eb857e03e7586665d1c022ef3277f6.zip
gfs2: Get rid of gfs2_log_header_in
Get rid of gfs2_log_header_in by integrating it into get_log_header. Clean up the crc32 computations and use the same functions for encoding and decoding to make things less confusing. Eliminate lh_hash from gfs2_log_header_host which is completely useless. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index b9889ae5fd7c..c27cbcebfe88 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -680,7 +680,7 @@ void gfs2_write_log_header(struct gfs2_sbd *sdp, u64 seq, u32 tail,
lh->lh_flags = cpu_to_be32(flags);
lh->lh_tail = cpu_to_be32(tail);
lh->lh_blkno = cpu_to_be32(sdp->sd_log_flush_head);
- hash = gfs2_disk_hash(page_address(page), sizeof(struct gfs2_log_header));
+ hash = ~crc32(~0, lh, sizeof(*lh));
lh->lh_hash = cpu_to_be32(hash);
gfs2_log_write_page(sdp, page);