diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-30 15:46:23 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-03-30 15:46:23 -0500 |
commit | e3167ded1f1b16424bc14d5673cdc5414f179970 (patch) | |
tree | 1b995e6387b230b1f447aabe30b689d091ee0b52 /fs/gfs2/log.c | |
parent | cd45697f0ddbb58f3f83c29fe164713ee7765e21 (diff) |
[GFS] Fix bug in endian conversion for metadata header
In some cases 16 bit functions were being used rather than 32 bit
functions.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r-- | fs/gfs2/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index b103d9acf40d..ea69376c00d8 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c | |||
@@ -377,8 +377,8 @@ static void log_write_header(struct gfs2_sbd *sdp, uint32_t flags, int pull) | |||
377 | lh = (struct gfs2_log_header *)bh->b_data; | 377 | lh = (struct gfs2_log_header *)bh->b_data; |
378 | memset(lh, 0, sizeof(struct gfs2_log_header)); | 378 | memset(lh, 0, sizeof(struct gfs2_log_header)); |
379 | lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); | 379 | lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); |
380 | lh->lh_header.mh_type = cpu_to_be16(GFS2_METATYPE_LH); | 380 | lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); |
381 | lh->lh_header.mh_format = cpu_to_be16(GFS2_FORMAT_LH); | 381 | lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); |
382 | lh->lh_sequence = be64_to_cpu(sdp->sd_log_sequence++); | 382 | lh->lh_sequence = be64_to_cpu(sdp->sd_log_sequence++); |
383 | lh->lh_flags = be32_to_cpu(flags); | 383 | lh->lh_flags = be32_to_cpu(flags); |
384 | lh->lh_tail = be32_to_cpu(tail); | 384 | lh->lh_tail = be32_to_cpu(tail); |