aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/meta_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/meta_io.c')
-rw-r--r--fs/gfs2/meta_io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c
index 1d80f2d42122..4da423985e4f 100644
--- a/fs/gfs2/meta_io.c
+++ b/fs/gfs2/meta_io.c
@@ -374,10 +374,10 @@ void gfs2_meta_cache_flush(struct gfs2_inode *ip)
374 374
375 for (x = 0; x < GFS2_MAX_META_HEIGHT; x++) { 375 for (x = 0; x < GFS2_MAX_META_HEIGHT; x++) {
376 bh_slot = &ip->i_cache[x]; 376 bh_slot = &ip->i_cache[x];
377 if (!*bh_slot) 377 if (*bh_slot) {
378 break; 378 brelse(*bh_slot);
379 brelse(*bh_slot); 379 *bh_slot = NULL;
380 *bh_slot = NULL; 380 }
381 } 381 }
382 382
383 spin_unlock(&ip->i_spin); 383 spin_unlock(&ip->i_spin);