X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=fs%2Fext3%2Fballoc.c;h=a49ce4a7c23d8c8a5b9d9ac30e00aeef08858a4c;hb=57e94d8647e9aa60ad317ccd0cd54eefd603f1fe;hp=4a32511f4deda7f75b45aeb719d41407e416cb55;hpb=d8a382d2662822248a97ce9d670b90e68aefbd3a;p=net-next-2.6.git diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c index 4a32511f4de..a49ce4a7c23 100644 --- a/fs/ext3/balloc.c +++ b/fs/ext3/balloc.c @@ -792,9 +792,9 @@ find_next_usable_block(ext3_grpblk_t start, struct buffer_head *bh, if (here < 0) here = 0; - p = ((char *)bh->b_data) + (here >> 3); + p = bh->b_data + (here >> 3); r = memscan(p, 0, ((maxblocks + 7) >> 3) - (here >> 3)); - next = (r - ((char *)bh->b_data)) << 3; + next = (r - bh->b_data) << 3; if (next < maxblocks && next >= start && ext3_test_allocatable(next, bh)) return next;