From owner-cvs-all Mon Oct 9 7:18:12 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CA52337B502; Mon, 9 Oct 2000 07:18:08 -0700 (PDT) Received: (from phk@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA78652; Mon, 9 Oct 2000 07:18:08 -0700 (PDT) (envelope-from phk@FreeBSD.org) Message-Id: <200010091418.HAA78652@freefall.freebsd.org> From: Poul-Henning Kamp Date: Mon, 9 Oct 2000 07:18:08 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/devfs devfs_devs.c devfs_vfsops.c devfs_vnops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG phk 2000/10/09 07:18:08 PDT Modified files: sys/fs/devfs devfs_devs.c devfs_vfsops.c devfs_vnops.c Log: Don't hold an extra reference to vnodes. Devfs vnodes are sufficiently cheap to setup that it doesn't really matter that we recycle device vnodes at kleenex speed. Implement first cut try at killing cloned devices when they are not needed anymore. For now only the bpf driver is involved in this experiment. Cloned devices can set the SI_CHEAPCLONE flag which allows us to destroy_dev() it when the vcount() drops to zero and the vnode is reclaimed. For now it's a requirement that the driver doesn't keep persistent state from close to (re)open. Some whitespace changes. Revision Changes Path 1.7 +7 -11 src/sys/fs/devfs/devfs_devs.c 1.9 +5 -3 src/sys/fs/devfs/devfs_vfsops.c 1.11 +19 -13 src/sys/fs/devfs/devfs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message