Date: Mon, 9 Oct 2000 07:18:08 -0700 (PDT) From: Poul-Henning Kamp <phk@FreeBSD.org> 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 Message-ID: <200010091418.HAA78652@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010091418.HAA78652>