Remove vfinddev(), it is generally bogus when faced with jails and

chroot and has no legitimate use(r)s in the tree.
This commit is contained in:
Poul-Henning Kamp 2005-02-22 14:11:47 +00:00
parent ef3abbe88a
commit 7fc940b266
2 changed files with 0 additions and 21 deletions

View File

@ -2424,26 +2424,6 @@ vgonel(struct vnode *vp, struct thread *td)
VI_UNLOCK(vp);
}
/*
* 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.
*/

View File

@ -592,7 +592,6 @@ int vaccess_acl_posix1e(enum vtype type, uid_t file_uid,
void vattr_null(struct vattr *vap);
int vcount(struct vnode *vp);
void vdrop(struct vnode *);
int vfinddev(struct cdev *dev, struct vnode **vpp);
void vfs_add_vnodeops(const void *);
void vfs_rm_vnodeops(const void *);
int vflush(struct mount *mp, int rootrefs, int flags, struct thread *td);