From bc7c7dd33ec1faf8074c5b43ef20b784f349a8f4 Mon Sep 17 00:00:00 2001 From: Hugh Dickins Date: Wed, 6 Dec 2006 20:41:30 -0800 Subject: [PATCH] --- yaml --- r: 42985 b: refs/heads/master c: 7d1c520bb57e4b5e94ec937c13553dccf473341b h: refs/heads/master i: 42983: 41c5e62fa53ffc201b6aa7d9093b597e9b663909 v: v3 --- [refs] | 2 +- trunk/fs/ext3/balloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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))