diff options
Diffstat (limited to 'fs/gfs2/lops.c')
| -rw-r--r-- | fs/gfs2/lops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index 9969ff062c5b..de97632ba32f 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c | |||
| @@ -132,6 +132,7 @@ static struct buffer_head *gfs2_get_log_desc(struct gfs2_sbd *sdp, u32 ld_type) | |||
| 132 | static void buf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) | 132 | static void buf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) |
| 133 | { | 133 | { |
| 134 | struct gfs2_bufdata *bd = container_of(le, struct gfs2_bufdata, bd_le); | 134 | struct gfs2_bufdata *bd = container_of(le, struct gfs2_bufdata, bd_le); |
| 135 | struct gfs2_meta_header *mh; | ||
| 135 | struct gfs2_trans *tr; | 136 | struct gfs2_trans *tr; |
| 136 | 137 | ||
| 137 | lock_buffer(bd->bd_bh); | 138 | lock_buffer(bd->bd_bh); |
| @@ -148,6 +149,9 @@ static void buf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) | |||
| 148 | set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); | 149 | set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags); |
| 149 | gfs2_meta_check(sdp, bd->bd_bh); | 150 | gfs2_meta_check(sdp, bd->bd_bh); |
| 150 | gfs2_pin(sdp, bd->bd_bh); | 151 | gfs2_pin(sdp, bd->bd_bh); |
| 152 | mh = (struct gfs2_meta_header *)bd->bd_bh->b_data; | ||
| 153 | mh->__pad0 = cpu_to_be64(0); | ||
| 154 | mh->mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); | ||
| 151 | sdp->sd_log_num_buf++; | 155 | sdp->sd_log_num_buf++; |
| 152 | list_add(&le->le_list, &sdp->sd_log_le_buf); | 156 | list_add(&le->le_list, &sdp->sd_log_le_buf); |
| 153 | tr->tr_num_buf_new++; | 157 | tr->tr_num_buf_new++; |
