From owner-freebsd-current@FreeBSD.ORG Wed Jun 1 13:07:33 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36D7B16A41C for ; Wed, 1 Jun 2005 13:07:33 +0000 (GMT) (envelope-from andy@siliconlandmark.com) Received: from lexi.siliconlandmark.com (lexi.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA5C443D4C for ; Wed, 1 Jun 2005 13:07:32 +0000 (GMT) (envelope-from andy@siliconlandmark.com) Received: from lexi.siliconlandmark.com (localhost [127.0.0.1]) by lexi.siliconlandmark.com (8.13.3/8.13.3) with ESMTP id j51D7TuA037204; Wed, 1 Jun 2005 09:07:29 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost) by lexi.siliconlandmark.com (8.13.3/8.13.3/Submit) with ESMTP id j51D7To9037201; Wed, 1 Jun 2005 09:07:29 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: lexi.siliconlandmark.com: andy owned process doing -bs Date: Wed, 1 Jun 2005 09:07:29 -0400 (EDT) From: Andre Guibert de Bruet To: Poul-Henning Kamp In-Reply-To: <41216.1117630645@critter.freebsd.dk> Message-ID: <20050601090236.L69811@lexi.siliconlandmark.com> References: <41216.1117630645@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Information: Please contact the ISP for more information X-SL-MailScanner: Found to be clean X-SL-SpamCheck: not spam, SpamAssassin (score=-2.541, required 6, autolearn=not spam, AWL 0.06, BAYES_00 -2.60) X-MailScanner-From: andy@siliconlandmark.com Cc: current@FreeBSD.org Subject: Re: [RFC] [PATCH] VM & VFS changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 13:07:33 -0000 On Wed, 1 Jun 2005, Poul-Henning Kamp wrote: > In message <20050601083308.D69811@lexi.siliconlandmark.com>, Andre Guibert de B > ruet writes: > Don Lewis wrote: >>> This problem is a bit complicated because there can be various >>> combinations of: >>> >>> mounted file systems that reside on swap-backed memory disks >>> >>> mounted file systems that reside on vnode-backed memory disks >>> >>> vnode-backed memory disks used as swap devices > > Maybe the simplest solution is also the best: keep track of the > dependencies and do the cleanup leaf->root on the resulting tree. > > It would not take much more than a simple data structure to let > the various pieces of code (mainly md(4) really) say "this device > depends on this other thing". PHK, How would you suggest implementing this? A TAILQ in global scope and a new struct? Did you get a chance to look at the patch? Do you have additional comments on it? Thanks, Andy /* Andre Guibert de Bruet * 6f43 6564 7020 656f 2e74 4220 7469 6a20 */ /* Code poet / Sysadmin * 636f 656b 2e79 5320 7379 6461 696d 2e6e */ /* GSM: +1 734 846 8758 * 5520 494e 2058 6c73 7565 6874 002e 0000 */ /* WWW: siliconlandmark.com * Tormenting bytes since 1980. */