diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c index f7c0608332fb..00ab6c070a15 100644 --- a/fs/gfs2/log.c +++ b/fs/gfs2/log.c | |||
@@ -219,6 +219,7 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) | |||
219 | { | 219 | { |
220 | struct list_head *head = &ai->ai_ail2_list; | 220 | struct list_head *head = &ai->ai_ail2_list; |
221 | struct gfs2_bufdata *bd; | 221 | struct gfs2_bufdata *bd; |
222 | struct gfs2_inode *bh_ip; | ||
222 | 223 | ||
223 | while (!list_empty(head)) { | 224 | while (!list_empty(head)) { |
224 | bd = list_entry(head->prev, struct gfs2_bufdata, | 225 | bd = list_entry(head->prev, struct gfs2_bufdata, |
@@ -228,6 +229,8 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai) | |||
228 | list_del(&bd->bd_ail_st_list); | 229 | list_del(&bd->bd_ail_st_list); |
229 | list_del(&bd->bd_ail_gl_list); | 230 | list_del(&bd->bd_ail_gl_list); |
230 | atomic_dec(&bd->bd_gl->gl_ail_count); | 231 | atomic_dec(&bd->bd_gl->gl_ail_count); |
232 | bh_ip = GFS2_I(bd->bd_bh->b_page->mapping->host); | ||
233 | gfs2_meta_cache_flush(bh_ip); | ||
231 | brelse(bd->bd_bh); | 234 | brelse(bd->bd_bh); |
232 | } | 235 | } |
233 | } | 236 | } |