From 27b1802aec3bfdc8c84b34d19ca3e6a5daa3ffa8 Mon Sep 17 00:00:00 2001 From: Wendy Cheng Date: Tue, 18 Sep 2007 09:19:13 -0400 Subject: [PATCH] --- yaml --- r: 67689 b: refs/heads/master c: de986e859a29097fb9211b052d86a9a2c868f6cd h: refs/heads/master i: 67687: 18496e5917a44cc3827f7a47c563a4c3593b4123 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/meta_io.c | 8 ++++---- trunk/fs/gfs2/ops_address.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index f4dd6a6148c1..e74babdc75ef 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 16615be18cadf53ee6f8a4f0bdd647f0753421b1 +refs/heads/master: de986e859a29097fb9211b052d86a9a2c868f6cd diff --git a/trunk/fs/gfs2/meta_io.c b/trunk/fs/gfs2/meta_io.c index 1d80f2d42122..4da423985e4f 100644 --- a/trunk/fs/gfs2/meta_io.c +++ b/trunk/fs/gfs2/meta_io.c @@ -374,10 +374,10 @@ void gfs2_meta_cache_flush(struct gfs2_inode *ip) for (x = 0; x < GFS2_MAX_META_HEIGHT; x++) { bh_slot = &ip->i_cache[x]; - if (!*bh_slot) - break; - brelse(*bh_slot); - *bh_slot = NULL; + if (*bh_slot) { + brelse(*bh_slot); + *bh_slot = NULL; + } } spin_unlock(&ip->i_spin); diff --git a/trunk/fs/gfs2/ops_address.c b/trunk/fs/gfs2/ops_address.c index b7baf1831912..4002f417dc19 100644 --- a/trunk/fs/gfs2/ops_address.c +++ b/trunk/fs/gfs2/ops_address.c @@ -90,7 +90,7 @@ static int gfs2_get_block_noalloc(struct inode *inode, sector_t lblock, error = gfs2_block_map(inode, lblock, 0, bh_result); if (error) return error; - if (bh_result->b_blocknr == 0) + if (!buffer_mapped(bh_result)) return -EIO; return 0; }