From 591c94d4c67807bb48f559afc01b6fb90384559a Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Aug 1999 14:53:31 +0000 Subject: Simplify the handling of VCHR and VBLK vnodes using the new dev_t: Make the alias list a SLIST. Drop the "fast recycling" optimization of vnodes (including the returning of a prexisting but stale vnode from checkalias). It doesn't buy us anything now that we don't hardlimit vnodes anymore. Rename checkalias2() and checkalias() to addalias() and addaliasu() - which takes dev_t and udev_t arg respectively. Make the revoke syscalls use vcount() instead of VALIASED. Remove VALIASED flag, we don't need it now and it is faster to traverse the much shorter lists than to maintain the flag. vfs_mountedon() can check the dev_t directly, all the vnodes point to the same one. Print the devicename in specfs/vprint(). Remove a couple of stale LFS vnode flags. Remove unimplemented/unused LK_DRAINED; --- sys/isofs/cd9660/cd9660_vfsops.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'sys/isofs') diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 1dc080d..59421d0 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95 - * $Id: cd9660_vfsops.c,v 1.59 1999/08/23 21:07:12 bde Exp $ + * $Id: cd9660_vfsops.c,v 1.60 1999/08/25 12:24:39 phk Exp $ */ #include @@ -892,23 +892,7 @@ cd9660_vget_internal(mp, ino, vpp, relocated, isodir) * if device, look at device number table for translation */ vp->v_op = cd9660_specop_p; - if ((nvp = checkalias(vp, ip->inode.iso_rdev, mp)) != NULL) { - /* - * Discard unneeded vnode, but save its iso_node. - * Note that the lock is carried over in the iso_node - * to the replacement vnode. - */ - nvp->v_data = vp->v_data; - vp->v_data = NULL; - vp->v_op = spec_vnodeop_p; - vrele(vp); - vgone(vp); - /* - * Reinitialize aliased inode. - */ - vp = nvp; - ip->i_vnode = vp; - } + addaliasu(vp, ip->inode.iso_rdev); break; default: break; -- cgit v1.1