|
@@ -325,6 +325,7 @@ static int foreach_descriptor(struct gfs2_jdesc *jd, unsigned int start,
|
|
error = get_log_header(jd, start, &lh);
|
|
error = get_log_header(jd, start, &lh);
|
|
if (!error) {
|
|
if (!error) {
|
|
gfs2_replay_incr_blk(sdp, &start);
|
|
gfs2_replay_incr_blk(sdp, &start);
|
|
|
|
+ brelse(bh);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
if (error == 1) {
|
|
if (error == 1) {
|
|
@@ -396,7 +397,7 @@ static int clean_journal(struct gfs2_jdesc *jd, struct gfs2_log_header *head)
|
|
lh = (struct gfs2_log_header *)bh->b_data;
|
|
lh = (struct gfs2_log_header *)bh->b_data;
|
|
memset(lh, 0, sizeof(struct gfs2_log_header));
|
|
memset(lh, 0, sizeof(struct gfs2_log_header));
|
|
lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
|
|
lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
|
|
- lh->lh_header.mh_type = cpu_to_be16(GFS2_METATYPE_LH);
|
|
|
|
|
|
+ lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH);
|
|
lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
|
|
lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
|
|
lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1);
|
|
lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1);
|
|
lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT);
|
|
lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT);
|