int
afs_nbsd_lookupname(char *fnamep, enum uio_seg segflg, int followlink,
- struct vnode **dirvpp, struct vnode **compvpp)
+ struct vnode **compvpp)
{
struct nameidata nd;
int niflag;
int error;
/*
- * Lookup pathname "fnamep", returning parent directory in
- * *dirvpp (if non-null) and leaf in *compvpp. segflg says whether the
- * pathname is user or system space.
+ * Lookup pathname "fnamep", returning leaf in *compvpp. segflg says
+ * whether the pathname is user or system space.
*/
/* XXX LOCKLEAF ? */
niflag = followlink ? FOLLOW : NOFOLLOW;
- if (dirvpp)
- niflag |= WANTPARENT; /* XXX LOCKPARENT? */
NDINIT(&nd, LOOKUP, niflag, segflg, fnamep, osi_curproc());
if ((error = namei(&nd)))
return error;
*compvpp = nd.ni_vp;
- if (dirvpp)
- *dirvpp = nd.ni_dvp;
return error;
}