Date: Sat, 06 Jan 1996 14:35:48 -0800 From: David Greenman <davidg@Root.COM> To: Poul-Henning Kamp <phk@freefall.freebsd.org> Cc: aagero@aage.aage.priv.no, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/901 Message-ID: <199601062235.OAA01805@corbin.Root.COM> In-Reply-To: Your message of "Sat, 06 Jan 96 14:11:27 PST." <199601062211.OAA22075@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601062235.OAA01805>