From cd21b2e10ce05cf965e2989f557834034cf53854 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 22 Feb 2005 14:11:47 +0000 Subject: Remove vfinddev(), it is generally bogus when faced with jails and chroot and has no legitimate use(r)s in the tree. --- sys/kern/vfs_subr.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'sys/kern/vfs_subr.c') diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index d72227a..97fa19dd 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2425,26 +2425,6 @@ vgonel(struct vnode *vp, struct thread *td) } /* - * Lookup a vnode by device number. - */ -int -vfinddev(dev, vpp) - struct cdev *dev; - struct vnode **vpp; -{ - struct vnode *vp; - - dev_lock(); - SLIST_FOREACH(vp, &dev->si_hlist, v_specnext) { - *vpp = vp; - dev_unlock(); - return (1); - } - dev_unlock(); - return (0); -} - -/* * Calculate the total number of references to a special device. */ int -- cgit v1.1