Skip to content

Commit

Permalink
gfs2: fix shadow warning in gfs2_rbm_find()
Browse files Browse the repository at this point in the history
bi was already declared and initialized globally in gfs2_rbm_find()

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
  • Loading branch information
Fabian Frederick authored and Bob Peterson committed May 18, 2015
1 parent 1272574 commit a3e3213
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1711,10 +1711,8 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state, u32 *minext,
return ret;

bitmap_full: /* Mark bitmap as full and fall through */
if ((state == GFS2_BLKST_FREE) && initial_offset == 0) {
struct gfs2_bitmap *bi = rbm_bi(rbm);
if ((state == GFS2_BLKST_FREE) && initial_offset == 0)
set_bit(GBF_FULL, &bi->bi_flags);
}

next_bitmap: /* Find next bitmap in the rgrp */
rbm->offset = 0;
Expand Down

0 comments on commit a3e3213

Please sign in to comment.