diff --git a/[refs] b/[refs] index 9435a015a565..165e2914b057 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2823b5535efad71e950ef50c2ce5f9e4dbaedc17 +refs/heads/master: 7d1c520bb57e4b5e94ec937c13553dccf473341b diff --git a/trunk/fs/ext3/balloc.c b/trunk/fs/ext3/balloc.c index 5a2c198762f0..22161740ba29 100644 --- a/trunk/fs/ext3/balloc.c +++ b/trunk/fs/ext3/balloc.c @@ -730,7 +730,7 @@ find_next_usable_block(ext3_grpblk_t start, struct buffer_head *bh, here = 0; p = ((char *)bh->b_data) + (here >> 3); - r = memscan(p, 0, (maxblocks - here + 7) >> 3); + r = memscan(p, 0, ((maxblocks + 7) >> 3) - (here >> 3)); next = (r - ((char *)bh->b_data)) << 3; if (next < maxblocks && next >= start && ext3_test_allocatable(next, bh))