aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/recovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/recovery.c')
-rw-r--r--fs/gfs2/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
index bbd44a4b1a1f..8fe518cfb3de 100644
--- a/fs/gfs2/recovery.c
+++ b/fs/gfs2/recovery.c
@@ -325,6 +325,7 @@ static int foreach_descriptor(struct gfs2_jdesc *jd, unsigned int start,
325 error = get_log_header(jd, start, &lh); 325 error = get_log_header(jd, start, &lh);
326 if (!error) { 326 if (!error) {
327 gfs2_replay_incr_blk(sdp, &start); 327 gfs2_replay_incr_blk(sdp, &start);
328 brelse(bh);
328 continue; 329 continue;
329 } 330 }
330 if (error == 1) { 331 if (error == 1) {
@@ -396,7 +397,7 @@ static int clean_journal(struct gfs2_jdesc *jd, struct gfs2_log_header *head)
396 lh = (struct gfs2_log_header *)bh->b_data; 397 lh = (struct gfs2_log_header *)bh->b_data;
397 memset(lh, 0, sizeof(struct gfs2_log_header)); 398 memset(lh, 0, sizeof(struct gfs2_log_header));
398 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); 399 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
399 lh->lh_header.mh_type = cpu_to_be16(GFS2_METATYPE_LH); 400 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH);
400 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); 401 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
401 lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1); 402 lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1);
402 lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT); 403 lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT);