mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
fdescfs: stop using insmntque1
It adds nothing of value over insmntque.
This commit is contained in:
parent
3af3e99ce4
commit
ade1367ba8
1 changed files with 3 additions and 13 deletions
|
|
@ -93,7 +93,6 @@ static struct vop_vector fdesc_vnodeops = {
|
|||
};
|
||||
VFS_VOP_VECTOR_REGISTER(fdesc_vnodeops);
|
||||
|
||||
static void fdesc_insmntque_dtr(struct vnode *, void *);
|
||||
static void fdesc_remove_entry(struct fdescnode *);
|
||||
|
||||
/*
|
||||
|
|
@ -120,17 +119,6 @@ fdesc_uninit(struct vfsconf *vfsp)
|
|||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* If allocating vnode fails, call this.
|
||||
*/
|
||||
static void
|
||||
fdesc_insmntque_dtr(struct vnode *vp, void *arg)
|
||||
{
|
||||
|
||||
vgone(vp);
|
||||
vput(vp);
|
||||
}
|
||||
|
||||
/*
|
||||
* Remove an entry from the hash if it exists.
|
||||
*/
|
||||
|
|
@ -203,8 +191,10 @@ loop:
|
|||
fd->fd_ix = ix;
|
||||
if (ftype == Fdesc && fmp->flags & FMNT_LINRDLNKF)
|
||||
vp->v_vflag |= VV_READLINK;
|
||||
error = insmntque1(vp, mp, fdesc_insmntque_dtr, NULL);
|
||||
error = insmntque(vp, mp);
|
||||
if (error != 0) {
|
||||
vgone(vp);
|
||||
vput(vp);
|
||||
*vpp = NULLVP;
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue