diff options
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r-- | fs/gfs2/rgrp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index 113b4ace6893..5f8e225c5497 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -575,15 +575,14 @@ int gfs2_rgrp_bh_get(struct gfs2_rgrpd *rgd) | |||
575 | 575 | ||
576 | for (x = 0; x < length; x++) { | 576 | for (x = 0; x < length; x++) { |
577 | bi = rgd->rd_bits + x; | 577 | bi = rgd->rd_bits + x; |
578 | error = gfs2_meta_read(gl, rgd->rd_ri.ri_addr + x, DIO_START, | 578 | error = gfs2_meta_read(gl, rgd->rd_ri.ri_addr + x, 0, &bi->bi_bh); |
579 | &bi->bi_bh); | ||
580 | if (error) | 579 | if (error) |
581 | goto fail; | 580 | goto fail; |
582 | } | 581 | } |
583 | 582 | ||
584 | for (y = length; y--;) { | 583 | for (y = length; y--;) { |
585 | bi = rgd->rd_bits + y; | 584 | bi = rgd->rd_bits + y; |
586 | error = gfs2_meta_reread(sdp, bi->bi_bh, DIO_WAIT); | 585 | error = gfs2_meta_wait(sdp, bi->bi_bh); |
587 | if (error) | 586 | if (error) |
588 | goto fail; | 587 | goto fail; |
589 | if (gfs2_metatype_check(sdp, bi->bi_bh, y ? GFS2_METATYPE_RB : | 588 | if (gfs2_metatype_check(sdp, bi->bi_bh, y ? GFS2_METATYPE_RB : |