From owner-freebsd-bugs Sat Jan 6 14:36:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA24024 for bugs-outgoing; Sat, 6 Jan 1996 14:36:06 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA23965 Sat, 6 Jan 1996 14:35:57 -0800 (PST) Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id OAA09272; Sat, 6 Jan 1996 14:35:53 -0800 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.7.3/8.6.5) with SMTP id OAA01805; Sat, 6 Jan 1996 14:35:53 -0800 (PST) Message-Id: <199601062235.OAA01805@corbin.Root.COM> To: Poul-Henning Kamp cc: aagero@aage.aage.priv.no, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/901 In-reply-to: Your message of "Sat, 06 Jan 96 14:11:27 PST." <199601062211.OAA22075@freefall.freebsd.org> From: David Greenman Reply-To: davidg@Root.COM Date: Sat, 06 Jan 1996 14:35:48 -0800 Sender: owner-bugs@FreeBSD.ORG Precedence: bulk >Could you try this patch instead ? > >Index: vfs_bio.c >=================================================================== >RCS file: /home/ncvs/src/sys/kern/vfs_bio.c,v >retrieving revision 1.81 >diff -u -r1.81 vfs_bio.c >--- vfs_bio.c 1996/01/05 20:12:33 1.81 >+++ vfs_bio.c 1996/01/06 21:58:17 >@@ -1637,9 +1637,9 @@ > vm_page_t p; > vm_offset_t from = round_page(froma); > vm_offset_t to = round_page(toa); >+ unsigned int index = ((caddr_t) from - bp->b_data) >> PAGE_SHIFT; > >- for (pg = from; pg < to; pg += PAGE_SIZE) { >- int index = ((caddr_t) pg - bp->b_data) >> PAGE_SHIFT; >+ for (pg = from; pg < to; pg += PAGE_SIZE, index++) { > p = bp->b_pages[index]; > bp->b_pages[index] = 0; > pmap_kremove(pg); Hey! That looks identical to some of my local changes...did you do this independantly, or did you get this from John? -DG David Greenman Core Team/Principal Architect, The FreeBSD Project