Lines Matching refs:ndp

4199 	struct nameidata *ndp;  member
4242 struct nameidata *ndp; in cache_fpl_handle_root() local
4245 ndp = fpl->ndp; in cache_fpl_handle_root()
4259 return (ndp->ni_rootdir); in cache_fpl_handle_root()
4266 fpl->snd_outer.ni_pathlen = fpl->ndp->ni_pathlen; in cache_fpl_checkpoint_outer()
4267 fpl->snd_outer.cn_flags = fpl->ndp->ni_cnd.cn_flags; in cache_fpl_checkpoint_outer()
4275 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4284 fpl->ndp->ni_cnd.cn_flags = fpl->snd_outer.cn_flags; in cache_fpl_restore_partial()
4298 fpl->ndp->ni_resflags = 0; in cache_fpl_restore_abort()
4299 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4300 fpl->ndp->ni_pathlen = fpl->snd_outer.ni_pathlen; in cache_fpl_restore_abort()
4375 struct nameidata *ndp; in cache_fpl_aborted_impl() local
4378 ndp = fpl->ndp; in cache_fpl_aborted_impl()
4395 if (ndp->ni_loopcnt > 0) { in cache_fpl_aborted_impl()
4473 cache_fpl_islastcn(struct nameidata *ndp) in cache_fpl_islastcn() argument
4476 return (*ndp->ni_next == 0); in cache_fpl_islastcn()
4500 struct nameidata *ndp; in cache_can_fplookup() local
4504 ndp = fpl->ndp; in cache_can_fplookup()
4524 if (ndp->ni_startdir != NULL) { in cache_can_fplookup()
4534 struct nameidata *ndp; in cache_fplookup_dirfd() local
4539 ndp = fpl->ndp; in cache_fplookup_dirfd()
4542 error = fgetvp_lookup_smr(ndp, vpp, &fsearch); in cache_fplookup_dirfd()
4579 struct nameidata *ndp; in cache_fplookup_partial_setup() local
4586 ndp = fpl->ndp; in cache_fplookup_partial_setup()
4628 ndp->ni_startdir = dvp; in cache_fplookup_partial_setup()
4630 if (cache_fpl_islastcn(ndp)) in cache_fplookup_partial_setup()
4646 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4648 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_fplookup_partial_setup()
4650 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_fplookup_partial_setup()
4698 struct nameidata *ndp __diagused; in cache_fplookup_final_modifying()
4707 ndp = fpl->ndp; in cache_fplookup_final_modifying()
4713 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_final_modifying()
4875 struct nameidata *ndp; in cache_fplookup_modifying() local
4877 ndp = fpl->ndp; in cache_fplookup_modifying()
4879 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_modifying()
5050 struct nameidata *ndp; in cache_fplookup_emptypath() local
5059 ndp = fpl->ndp; in cache_fplookup_emptypath()
5090 ndp->ni_resflags |= NIRES_EMPTYPATH; in cache_fplookup_emptypath()
5097 struct nameidata *ndp; in cache_fplookup_noentry() local
5104 ndp = fpl->ndp; in cache_fplookup_noentry()
5148 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_noentry()
5276 struct nameidata *ndp; in cache_fplookup_dotdot() local
5283 ndp = fpl->ndp; in cache_fplookup_dotdot()
5297 if (dvp == ndp->ni_rootdir || in cache_fplookup_dotdot()
5298 dvp == ndp->ni_topdir || in cache_fplookup_dotdot()
5394 struct nameidata *ndp; in cache_symlink_resolve() local
5398 ndp = fpl->ndp; in cache_symlink_resolve()
5411 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5413 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_symlink_resolve()
5415 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_symlink_resolve()
5420 if (__predict_false(len + ndp->ni_pathlen > MAXPATHLEN)) { in cache_symlink_resolve()
5424 if (__predict_false(ndp->ni_loopcnt++ >= MAXSYMLINKS)) { in cache_symlink_resolve()
5429 if (ndp->ni_pathlen > 1) { in cache_symlink_resolve()
5430 bcopy(ndp->ni_next, cnp->cn_pnbuf + len, ndp->ni_pathlen); in cache_symlink_resolve()
5442 ndp->ni_pathlen += adjust; in cache_symlink_resolve()
5445 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5454 struct nameidata *ndp; in cache_fplookup_symlink() local
5460 ndp = fpl->ndp; in cache_fplookup_symlink()
5466 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_symlink()
5807 struct nameidata *ndp; in cache_fplookup_parse() local
5813 ndp = fpl->ndp; in cache_fplookup_parse()
5868 ndp->ni_next = cp; in cache_fplookup_parse()
5874 struct nameidata *ndp; in cache_fplookup_parse_advance() local
5877 ndp = fpl->ndp; in cache_fplookup_parse_advance()
5880 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5900 struct nameidata *ndp; in cache_fplookup_skip_slashes() local
5903 ndp = fpl->ndp; in cache_fplookup_skip_slashes()
5922 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
5956 struct nameidata *ndp; in cache_fplookup_trailingslash() local
5964 ndp = fpl->ndp; in cache_fplookup_trailingslash()
5996 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
5997 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_trailingslash()
6173 struct nameidata *ndp; in cache_fplookup_impl() local
6178 ndp = fpl->ndp; in cache_fplookup_impl()
6220 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_impl()
6318 cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, in cache_fplookup() argument
6329 fpl.ndp = ndp; in cache_fplookup()
6330 fpl.cnp = cnp = &ndp->ni_cnd; in cache_fplookup()
6331 MPASS(ndp->ni_lcf == 0); in cache_fplookup()
6336 MPASS(ndp->ni_resflags == 0); in cache_fplookup()
6340 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6348 fpl.debug.ni_pathlen = ndp->ni_pathlen; in cache_fplookup()
6350 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()
6356 namei_setup_rootdir(ndp, cnp, pwd); in cache_fplookup()
6357 ndp->ni_topdir = pwd->pwd_jdir; in cache_fplookup()
6361 ndp->ni_resflags = NIRES_ABS; in cache_fplookup()
6363 if (ndp->ni_dirfd == AT_FDCWD) { in cache_fplookup()
6380 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6382 SDT_PROBE4(vfs, namei, lookup, return, error, ndp->ni_vp, true, in cache_fplookup()
6383 ndp); in cache_fplookup()
6393 ndp->ni_dvp = fpl.dvp; in cache_fplookup()
6394 ndp->ni_vp = fpl.tvp; in cache_fplookup()