fdescfs: stop using insmntque1

It adds nothing of value over insmntque.
This commit is contained in:
Mateusz Guzik 2022-01-27 00:52:16 +01:00
parent 3af3e99ce4
commit ade1367ba8

View file

@ -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);
}