Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323269
b: refs/heads/master
c: 5d50d53
h: refs/heads/master
i:
  323267: b0e299f
v: v3
  • Loading branch information
Steven Whitehouse committed Sep 24, 2012
1 parent 9bf53c0 commit 7fa2839
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24d634e8f3b43fe2eb7c7d66567de7aba8edc308
refs/heads/master: 5d50d5324612d28c47b9361e5424f13a19c888cd
7 changes: 7 additions & 0 deletions trunk/fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,12 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state,
n += (rbm->bi - initial_bi);
goto find_next;
}
if (ret == -E2BIG) {
index = 0;
rbm->offset = 0;
n += (rbm->bi - initial_bi);
goto res_covered_end_of_rgrp;
}
return ret;

bitmap_full: /* Mark bitmap as full and fall through */
Expand All @@ -1608,6 +1614,7 @@ static int gfs2_rbm_find(struct gfs2_rbm *rbm, u8 state,
index++;
if (index == rbm->rgd->rd_length)
index = 0;
res_covered_end_of_rgrp:
rbm->bi = &rbm->rgd->rd_bits[index];
if ((index == 0) && nowrap)
break;
Expand Down

0 comments on commit 7fa2839

Please sign in to comment.