Date: Thu, 2 Feb 2006 22:10:02 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90938 for review Message-ID: <200602022210.k12MA2Q0024574@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90938 Change 90938 by alc@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602022210.k12MA2Q0024574>