From owner-freebsd-arch@FreeBSD.ORG Tue Jan 11 23:08:42 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82D8F16A4CE for ; Tue, 11 Jan 2005 23:08:42 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73C6243D39 for ; Tue, 11 Jan 2005 23:08:39 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j0BN8Zar025165; Wed, 12 Jan 2005 00:08:35 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Peter Edwards From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 11 Jan 2005 22:54:45 GMT." <34cb7c84050111145415980aa2@mail.gmail.com> Date: Wed, 12 Jan 2005 00:08:35 +0100 Message-ID: <25164.1105484915@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: arch@freebsd.org Subject: Re: Slight change of vnode<-->vm object relationship. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 23:08:42 -0000 In message <34cb7c84050111145415980aa2@mail.gmail.com>, Peter Edwards writes: >How about mmap() mappings after the close()? These can persist post >VOP_CLOSE, can't they? I belive they hold a reference to the vnode so that it is in fact not really closed after all, it just looks that way from userland. If that wasn't the case, then we would be leaking diskspace all over the place if people did: create file fill with data mmap unlink file close file -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.