Lines Matching refs:cn_nameptr
1324 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen))) { in cache_neg_promote_cond()
1671 !bcmp(rncp->nc_name, cnp->cn_nameptr, rncp->nc_nlen)) in cache_zap_unlocked_bucket()
1722 cnp->cn_nameptr[0] == '.' && cnp->cn_nameptr[1] == '.') { in cache_remove_cnp()
1753 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_remove_cnp()
1763 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_remove_cnp()
1960 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup_fallback()
1966 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_lookup_fallback()
1972 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2042 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_lookup()
2045 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') in cache_lookup()
2056 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup()
2061 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_lookup()
2067 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2357 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_dotdot_prep()
2396 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') { in cache_enter_time()
2403 cnp->cn_nameptr, dvp)); in cache_enter_time()
2412 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_enter_time()
2415 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_enter_time()
2449 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_time()
2450 memcpy(ncp->nc_name, cnp->cn_nameptr, len); in cache_enter_time()
2463 !bcmp(n2->nc_name, cnp->cn_nameptr, n2->nc_nlen)) { in cache_enter_time()
2468 __func__, NULL, vp, cnp->cn_nameptr)); in cache_enter_time()
2472 __func__, n2->nc_vp, vp, cnp->cn_nameptr)); in cache_enter_time()
2992 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_validate()
2999 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) { in cache_validate()
3136 error = vn_fullpath_hardlink(nd.ni_vp, nd.ni_dvp, nd.ni_cnd.cn_nameptr, in kern___realpathat()
3901 char *cn_nameptr; member
3952 cnp->cn_nameptr = NULL; in cache_fpl_cleanup_cnp()
3965 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
3966 cnp->cn_nameptr++; in cache_fpl_handle_root()
3969 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fpl_handle_root()
3971 cnp->cn_nameptr++; in cache_fpl_handle_root()
3973 } while (*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
3992 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4016 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4210 cnp->cn_nameptr[1] == '.' && cnp->cn_nameptr[0] == '.') in cache_fpl_isdotdot()
4340 if (cnp->cn_nameptr != fpl->snd.cn_nameptr) { in cache_fplookup_partial_setup()
4342 cnp->cn_nameptr, fpl->snd.cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4357 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fplookup_partial_setup()
4359 cnp->cn_nameptr++; in cache_fplookup_partial_setup()
4361 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_partial_setup()
4364 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4369 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4430 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final_modifying()
4696 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final()
4857 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_noentry()
4865 if (cnp->cn_nameptr[0] == '\0') { in cache_fplookup_noentry()
5141 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5146 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_symlink_resolve()
5174 cnp->cn_nameptr = cnp->cn_pnbuf; in cache_symlink_resolve()
5175 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5229 if (*(cnp->cn_nameptr) == '/') { in cache_fplookup_symlink()
5266 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_fplookup_next()
5270 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_fplookup_next()
5279 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_fplookup_next()
5551 MPASS(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] >= cnp->cn_pnbuf); in cache_fplookup_parse()
5552 KASSERT(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] == fpl->nulchar, in cache_fplookup_parse()
5554 __func__, fpl->debug.ni_pathlen, &cnp->cn_nameptr[fpl->debug.ni_pathlen - 1], in cache_fplookup_parse()
5561 for (cp = cnp->cn_nameptr; *cp != '/'; cp++) { in cache_fplookup_parse()
5564 cnp->cn_nameptr)); in cache_fplookup_parse()
5571 cnp->cn_namelen = cp - cnp->cn_nameptr; in cache_fplookup_parse()
5580 if (fpl->hash != cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp)) { in cache_fplookup_parse()
5582 cnp->cn_nameptr, cnp->cn_namelen); in cache_fplookup_parse()
5605 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5606 KASSERT(*(cnp->cn_nameptr) == '/', in cache_fplookup_parse_advance()
5608 cnp->cn_nameptr, cnp->cn_pnbuf, cnp->cn_pnbuf)); in cache_fplookup_parse_advance()
5609 cnp->cn_nameptr++; in cache_fplookup_parse_advance()
5631 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5633 cnp->cn_nameptr++; in cache_fplookup_skip_slashes()
5635 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5641 cnp->cn_nameptr--; in cache_fplookup_skip_slashes()
5647 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
5698 KASSERT(cnp->cn_nameptr[0] == '\0', in cache_fplookup_trailingslash()
5699 ("%s: expected nul char at %p; string [%s]\n", __func__, &cnp->cn_nameptr[0], in cache_fplookup_trailingslash()
5704 MPASS(cnp->cn_nameptr > cnp->cn_pnbuf); in cache_fplookup_trailingslash()
5721 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
5727 cn_nameptr_orig = cnp->cn_nameptr; in cache_fplookup_trailingslash()
5728 while (cnp->cn_nameptr >= cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
5729 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
5730 if (cnp->cn_nameptr[0] != '/') { in cache_fplookup_trailingslash()
5740 cn_nameptr_slash = cnp->cn_nameptr; in cache_fplookup_trailingslash()
5741 while (cnp->cn_nameptr > cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
5742 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
5743 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
5747 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
5748 cnp->cn_nameptr++; in cache_fplookup_trailingslash()
5751 cnp->cn_namelen = cn_nameptr_slash - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
5752 cache_fpl_pathlen_add(fpl, cn_nameptr_orig - cnp->cn_nameptr); in cache_fplookup_trailingslash()
5756 ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
5760 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_trailingslash()
5767 if (cnp->cn_nameptr[0] == '.' && cnp->cn_namelen == 1) { in cache_fplookup_trailingslash()
5826 if (cnp->cn_nameptr[0] == '\0' && fpl->tvp == NULL) { in cache_fplookup_failed_vexec()
6064 MPASS(cnp->cn_nameptr == cnp->cn_pnbuf); in cache_fplookup()
6078 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()