PERFORCE change 90938 for review
Alan Cox
alc at FreeBSD.org
Thu Feb 2 14:10:06 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=90938
Change 90938 by alc at alc_home on 2006/02/02 22:09:18
Release pages from non-VMIO buffers on brelse() with B_RELBUF set.
(This has nothing to do with superpages. I was, however, testing it
on this source tree.)
Submitted by: tegge
Affected files ...
.. //depot/projects/superpages/src/sys/kern/vfs_bio.c#7 edit
Differences ...
==== //depot/projects/superpages/src/sys/kern/vfs_bio.c#7 (text+ko) ====
@@ -1312,6 +1312,11 @@
vfs_vmio_release(bp);
}
+ } else if ((bp->b_flags & (B_INVAL | B_RELBUF)) != 0) {
+ if (bp->b_bufsize != 0)
+ allocbuf(bp, 0);
+ if (bp->b_vp != NULL)
+ brelvp(bp);
}
if (BUF_REFCNT(bp) > 1) {
More information about the p4-projects
mailing list