Lines Matching refs:ndp

4102 	struct nameidata *ndp;  member
4145 struct nameidata *ndp; in cache_fpl_handle_root() local
4148 ndp = fpl->ndp; in cache_fpl_handle_root()
4162 return (ndp->ni_rootdir); in cache_fpl_handle_root()
4169 fpl->snd_outer.ni_pathlen = fpl->ndp->ni_pathlen; in cache_fpl_checkpoint_outer()
4170 fpl->snd_outer.cn_flags = fpl->ndp->ni_cnd.cn_flags; in cache_fpl_checkpoint_outer()
4178 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4187 fpl->ndp->ni_cnd.cn_flags = fpl->snd_outer.cn_flags; in cache_fpl_restore_partial()
4201 fpl->ndp->ni_resflags = 0; in cache_fpl_restore_abort()
4202 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4203 fpl->ndp->ni_pathlen = fpl->snd_outer.ni_pathlen; in cache_fpl_restore_abort()
4278 struct nameidata *ndp; in cache_fpl_aborted_impl() local
4281 ndp = fpl->ndp; in cache_fpl_aborted_impl()
4298 if (ndp->ni_loopcnt > 0) { in cache_fpl_aborted_impl()
4376 cache_fpl_islastcn(struct nameidata *ndp) in cache_fpl_islastcn() argument
4379 return (*ndp->ni_next == 0); in cache_fpl_islastcn()
4403 struct nameidata *ndp; in cache_can_fplookup() local
4407 ndp = fpl->ndp; in cache_can_fplookup()
4427 if (ndp->ni_startdir != NULL) { in cache_can_fplookup()
4437 struct nameidata *ndp; in cache_fplookup_dirfd() local
4442 ndp = fpl->ndp; in cache_fplookup_dirfd()
4445 error = fgetvp_lookup_smr(ndp, vpp, &fsearch); in cache_fplookup_dirfd()
4482 struct nameidata *ndp; in cache_fplookup_partial_setup() local
4489 ndp = fpl->ndp; in cache_fplookup_partial_setup()
4531 ndp->ni_startdir = dvp; in cache_fplookup_partial_setup()
4533 if (cache_fpl_islastcn(ndp)) in cache_fplookup_partial_setup()
4549 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4551 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_fplookup_partial_setup()
4553 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_fplookup_partial_setup()
4601 struct nameidata *ndp __diagused; in cache_fplookup_final_modifying()
4610 ndp = fpl->ndp; in cache_fplookup_final_modifying()
4616 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_final_modifying()
4778 struct nameidata *ndp; in cache_fplookup_modifying() local
4780 ndp = fpl->ndp; in cache_fplookup_modifying()
4782 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_modifying()
4953 struct nameidata *ndp; in cache_fplookup_emptypath() local
4962 ndp = fpl->ndp; in cache_fplookup_emptypath()
4993 ndp->ni_resflags |= NIRES_EMPTYPATH; in cache_fplookup_emptypath()
5000 struct nameidata *ndp; in cache_fplookup_noentry() local
5007 ndp = fpl->ndp; in cache_fplookup_noentry()
5051 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_noentry()
5179 struct nameidata *ndp; in cache_fplookup_dotdot() local
5186 ndp = fpl->ndp; in cache_fplookup_dotdot()
5200 if (dvp == ndp->ni_rootdir || in cache_fplookup_dotdot()
5201 dvp == ndp->ni_topdir || in cache_fplookup_dotdot()
5297 struct nameidata *ndp; in cache_symlink_resolve() local
5301 ndp = fpl->ndp; in cache_symlink_resolve()
5314 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5316 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_symlink_resolve()
5318 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_symlink_resolve()
5323 if (__predict_false(len + ndp->ni_pathlen > MAXPATHLEN)) { in cache_symlink_resolve()
5327 if (__predict_false(ndp->ni_loopcnt++ >= MAXSYMLINKS)) { in cache_symlink_resolve()
5332 if (ndp->ni_pathlen > 1) { in cache_symlink_resolve()
5333 bcopy(ndp->ni_next, cnp->cn_pnbuf + len, ndp->ni_pathlen); in cache_symlink_resolve()
5345 ndp->ni_pathlen += adjust; in cache_symlink_resolve()
5348 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5357 struct nameidata *ndp; in cache_fplookup_symlink() local
5363 ndp = fpl->ndp; in cache_fplookup_symlink()
5369 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_symlink()
5710 struct nameidata *ndp; in cache_fplookup_parse() local
5716 ndp = fpl->ndp; in cache_fplookup_parse()
5771 ndp->ni_next = cp; in cache_fplookup_parse()
5777 struct nameidata *ndp; in cache_fplookup_parse_advance() local
5780 ndp = fpl->ndp; in cache_fplookup_parse_advance()
5783 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5803 struct nameidata *ndp; in cache_fplookup_skip_slashes() local
5806 ndp = fpl->ndp; in cache_fplookup_skip_slashes()
5825 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
5859 struct nameidata *ndp; in cache_fplookup_trailingslash() local
5867 ndp = fpl->ndp; in cache_fplookup_trailingslash()
5899 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
5900 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_trailingslash()
6076 struct nameidata *ndp; in cache_fplookup_impl() local
6081 ndp = fpl->ndp; in cache_fplookup_impl()
6123 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_impl()
6221 cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, in cache_fplookup() argument
6232 fpl.ndp = ndp; in cache_fplookup()
6233 fpl.cnp = cnp = &ndp->ni_cnd; in cache_fplookup()
6234 MPASS(ndp->ni_lcf == 0); in cache_fplookup()
6239 MPASS(ndp->ni_resflags == 0); in cache_fplookup()
6243 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6251 fpl.debug.ni_pathlen = ndp->ni_pathlen; in cache_fplookup()
6253 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()
6259 namei_setup_rootdir(ndp, cnp, pwd); in cache_fplookup()
6260 ndp->ni_topdir = pwd->pwd_jdir; in cache_fplookup()
6264 ndp->ni_resflags = NIRES_ABS; in cache_fplookup()
6266 if (ndp->ni_dirfd == AT_FDCWD) { in cache_fplookup()
6283 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6285 SDT_PROBE4(vfs, namei, lookup, return, error, ndp->ni_vp, true, in cache_fplookup()
6286 ndp); in cache_fplookup()
6296 ndp->ni_dvp = fpl.dvp; in cache_fplookup()
6297 ndp->ni_vp = fpl.tvp; in cache_fplookup()