diff options
| -rw-r--r-- | fs/gfs2/meta_io.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c index 4b1aced9023d..3144d35a6261 100644 --- a/fs/gfs2/meta_io.c +++ b/fs/gfs2/meta_io.c | |||
| @@ -222,13 +222,14 @@ int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, | |||
| 222 | struct buffer_head **bhp) | 222 | struct buffer_head **bhp) |
| 223 | { | 223 | { |
| 224 | *bhp = getbuf(gl, blkno, CREATE); | 224 | *bhp = getbuf(gl, blkno, CREATE); |
| 225 | if (!buffer_uptodate(*bhp)) | 225 | if (!buffer_uptodate(*bhp)) { |
| 226 | ll_rw_block(READ_META, 1, bhp); | 226 | ll_rw_block(READ_META, 1, bhp); |
| 227 | if (flags & DIO_WAIT) { | 227 | if (flags & DIO_WAIT) { |
| 228 | int error = gfs2_meta_wait(gl->gl_sbd, *bhp); | 228 | int error = gfs2_meta_wait(gl->gl_sbd, *bhp); |
| 229 | if (error) { | 229 | if (error) { |
| 230 | brelse(*bhp); | 230 | brelse(*bhp); |
| 231 | return error; | 231 | return error; |
| 232 | } | ||
| 232 | } | 233 | } |
| 233 | } | 234 | } |
| 234 | 235 | ||
