From owner-p4-projects@FreeBSD.ORG Thu Feb 2 22:10:05 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2278316A424; Thu, 2 Feb 2006 22:10:05 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F11AE16A422 for ; Thu, 2 Feb 2006 22:10:04 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F7343D5F for ; Thu, 2 Feb 2006 22:10:03 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k12MA3sY024581 for ; Thu, 2 Feb 2006 22:10:03 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k12MA2Q0024574 for perforce@freebsd.org; Thu, 2 Feb 2006 22:10:02 GMT (envelope-from alc@freebsd.org) Date: Thu, 2 Feb 2006 22:10:02 GMT Message-Id: <200602022210.k12MA2Q0024574@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 90938 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 22:10:06 -0000 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) {