--- fs/buffer.c.~1~ Sat Mar 24 17:30:13 2001 +++ fs/buffer.c Sat Mar 24 18:16:55 2001 @@ -1629,12 +1629,14 @@ return 0; out: bh = head; + block_start = 0; do { if (buffer_new(bh) && !buffer_uptodate(bh)) { - memset(bh->b_data, 0, bh->b_size); + memset(kaddr+block_start, 0, bh->b_size); set_bit(BH_Uptodate, &bh->b_state); mark_buffer_dirty(bh); } + block_start += bh->b_size; bh = bh->b_this_page; } while (bh != head); return err;