aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/log.c')
-rw-r--r--fs/gfs2/log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/gfs2/log.c b/fs/gfs2/log.c
index 00ab6c070a15..d0e6b42c86e1 100644
--- a/fs/gfs2/log.c
+++ b/fs/gfs2/log.c
@@ -229,8 +229,10 @@ static void gfs2_ail2_empty_one(struct gfs2_sbd *sdp, struct gfs2_ail *ai)
229 list_del(&bd->bd_ail_st_list); 229 list_del(&bd->bd_ail_st_list);
230 list_del(&bd->bd_ail_gl_list); 230 list_del(&bd->bd_ail_gl_list);
231 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); 232 if (bd->bd_bh->b_page->mapping) {
233 gfs2_meta_cache_flush(bh_ip); 233 bh_ip = GFS2_I(bd->bd_bh->b_page->mapping->host);
234 gfs2_meta_cache_flush(bh_ip);
235 }
234 brelse(bd->bd_bh); 236 brelse(bd->bd_bh);
235 } 237 }
236} 238}