summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-02-22 14:11:47 +0000
committerphk <phk@FreeBSD.org>2005-02-22 14:11:47 +0000
commitcd21b2e10ce05cf965e2989f557834034cf53854 (patch)
treed14fa3807555b00b9301cbed2e38c1cd0c18b91e /sys/kern/vfs_subr.c
parent35d5701d76df0f4c3ca3d779a7f56cacdddb6fcb (diff)
downloadFreeBSD-src-cd21b2e10ce05cf965e2989f557834034cf53854.zip
FreeBSD-src-cd21b2e10ce05cf965e2989f557834034cf53854.tar.gz
Remove vfinddev(), it is generally bogus when faced with jails and
chroot and has no legitimate use(r)s in the tree.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c20
1 files changed, 0 insertions, 20 deletions
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
OpenPOWER on IntegriCloud