Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316746
b: refs/heads/master
c: 44b8db1
h: refs/heads/master
v: v3
  • Loading branch information
Masatake YAMATO authored and Steven Whitehouse committed Jun 28, 2012
1 parent 7dacf0c commit b27a62b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 666d1d8ad201803862514317c17695925e61316b
refs/heads/master: 44b8db13860a449b5d85afdc65da654ce56da678
5 changes: 4 additions & 1 deletion trunk/fs/gfs2/meta_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
struct gfs2_sbd *sdp = gl->gl_sbd;
struct buffer_head *bh;

if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) {
*bhp = NULL;
return -EIO;
}

*bhp = bh = gfs2_getbuf(gl, blkno, CREATE);

Expand All @@ -235,6 +237,7 @@ int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
if (tr && tr->tr_touched)
gfs2_io_error_bh(sdp, bh);
brelse(bh);
*bhp = NULL;
return -EIO;
}

Expand Down

0 comments on commit b27a62b

Please sign in to comment.