Lines Matching refs:ndp

4169 	struct nameidata *ndp;  member
4212 struct nameidata *ndp; in cache_fpl_handle_root() local
4215 ndp = fpl->ndp; in cache_fpl_handle_root()
4229 return (ndp->ni_rootdir); in cache_fpl_handle_root()
4236 fpl->snd_outer.ni_pathlen = fpl->ndp->ni_pathlen; in cache_fpl_checkpoint_outer()
4237 fpl->snd_outer.cn_flags = fpl->ndp->ni_cnd.cn_flags; in cache_fpl_checkpoint_outer()
4245 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4254 fpl->ndp->ni_cnd.cn_flags = fpl->snd_outer.cn_flags; in cache_fpl_restore_partial()
4268 fpl->ndp->ni_resflags = 0; in cache_fpl_restore_abort()
4269 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4270 fpl->ndp->ni_pathlen = fpl->snd_outer.ni_pathlen; in cache_fpl_restore_abort()
4345 struct nameidata *ndp; in cache_fpl_aborted_impl() local
4348 ndp = fpl->ndp; in cache_fpl_aborted_impl()
4365 if (ndp->ni_loopcnt > 0) { in cache_fpl_aborted_impl()
4443 cache_fpl_islastcn(struct nameidata *ndp) in cache_fpl_islastcn() argument
4446 return (*ndp->ni_next == 0); in cache_fpl_islastcn()
4470 struct nameidata *ndp; in cache_can_fplookup() local
4474 ndp = fpl->ndp; in cache_can_fplookup()
4494 if (ndp->ni_startdir != NULL) { in cache_can_fplookup()
4504 struct nameidata *ndp; in cache_fplookup_dirfd() local
4509 ndp = fpl->ndp; in cache_fplookup_dirfd()
4512 error = fgetvp_lookup_smr(ndp, vpp, &fsearch); in cache_fplookup_dirfd()
4549 struct nameidata *ndp; in cache_fplookup_partial_setup() local
4556 ndp = fpl->ndp; in cache_fplookup_partial_setup()
4598 ndp->ni_startdir = dvp; in cache_fplookup_partial_setup()
4600 if (cache_fpl_islastcn(ndp)) in cache_fplookup_partial_setup()
4616 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4618 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_fplookup_partial_setup()
4620 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_fplookup_partial_setup()
4668 struct nameidata *ndp __diagused; in cache_fplookup_final_modifying()
4677 ndp = fpl->ndp; in cache_fplookup_final_modifying()
4683 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_final_modifying()
4845 struct nameidata *ndp; in cache_fplookup_modifying() local
4847 ndp = fpl->ndp; in cache_fplookup_modifying()
4849 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_modifying()
5020 struct nameidata *ndp; in cache_fplookup_emptypath() local
5029 ndp = fpl->ndp; in cache_fplookup_emptypath()
5060 ndp->ni_resflags |= NIRES_EMPTYPATH; in cache_fplookup_emptypath()
5067 struct nameidata *ndp; in cache_fplookup_noentry() local
5074 ndp = fpl->ndp; in cache_fplookup_noentry()
5118 if (!cache_fpl_islastcn(ndp)) { in cache_fplookup_noentry()
5246 struct nameidata *ndp; in cache_fplookup_dotdot() local
5253 ndp = fpl->ndp; in cache_fplookup_dotdot()
5267 if (dvp == ndp->ni_rootdir || in cache_fplookup_dotdot()
5268 dvp == ndp->ni_topdir || in cache_fplookup_dotdot()
5364 struct nameidata *ndp; in cache_symlink_resolve() local
5368 ndp = fpl->ndp; in cache_symlink_resolve()
5381 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5383 if (ndp->ni_pathlen != fpl->debug.ni_pathlen) { in cache_symlink_resolve()
5385 __func__, ndp->ni_pathlen, fpl->debug.ni_pathlen, fpl->nulchar, in cache_symlink_resolve()
5390 if (__predict_false(len + ndp->ni_pathlen > MAXPATHLEN)) { in cache_symlink_resolve()
5394 if (__predict_false(ndp->ni_loopcnt++ >= MAXSYMLINKS)) { in cache_symlink_resolve()
5399 if (ndp->ni_pathlen > 1) { in cache_symlink_resolve()
5400 bcopy(ndp->ni_next, cnp->cn_pnbuf + len, ndp->ni_pathlen); in cache_symlink_resolve()
5412 ndp->ni_pathlen += adjust; in cache_symlink_resolve()
5415 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5424 struct nameidata *ndp; in cache_fplookup_symlink() local
5430 ndp = fpl->ndp; in cache_fplookup_symlink()
5436 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_symlink()
5777 struct nameidata *ndp; in cache_fplookup_parse() local
5783 ndp = fpl->ndp; in cache_fplookup_parse()
5838 ndp->ni_next = cp; in cache_fplookup_parse()
5844 struct nameidata *ndp; in cache_fplookup_parse_advance() local
5847 ndp = fpl->ndp; in cache_fplookup_parse_advance()
5850 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5870 struct nameidata *ndp; in cache_fplookup_skip_slashes() local
5873 ndp = fpl->ndp; in cache_fplookup_skip_slashes()
5892 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
5926 struct nameidata *ndp; in cache_fplookup_trailingslash() local
5934 ndp = fpl->ndp; in cache_fplookup_trailingslash()
5966 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
5967 MPASS(cache_fpl_islastcn(ndp)); in cache_fplookup_trailingslash()
6143 struct nameidata *ndp; in cache_fplookup_impl() local
6148 ndp = fpl->ndp; in cache_fplookup_impl()
6190 if (cache_fpl_islastcn(ndp)) { in cache_fplookup_impl()
6288 cache_fplookup(struct nameidata *ndp, enum cache_fpl_status *status, in cache_fplookup() argument
6299 fpl.ndp = ndp; in cache_fplookup()
6300 fpl.cnp = cnp = &ndp->ni_cnd; in cache_fplookup()
6301 MPASS(ndp->ni_lcf == 0); in cache_fplookup()
6306 MPASS(ndp->ni_resflags == 0); in cache_fplookup()
6310 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6318 fpl.debug.ni_pathlen = ndp->ni_pathlen; in cache_fplookup()
6320 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()
6326 namei_setup_rootdir(ndp, cnp, pwd); in cache_fplookup()
6327 ndp->ni_topdir = pwd->pwd_jdir; in cache_fplookup()
6331 ndp->ni_resflags = NIRES_ABS; in cache_fplookup()
6333 if (ndp->ni_dirfd == AT_FDCWD) { in cache_fplookup()
6350 SDT_PROBE3(vfs, fplookup, lookup, done, ndp, fpl.line, fpl.status); in cache_fplookup()
6352 SDT_PROBE4(vfs, namei, lookup, return, error, ndp->ni_vp, true, in cache_fplookup()
6353 ndp); in cache_fplookup()
6363 ndp->ni_dvp = fpl.dvp; in cache_fplookup()
6364 ndp->ni_vp = fpl.tvp; in cache_fplookup()