Lines Matching refs:cn_nameptr
1330 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen))) { in cache_neg_promote_cond()
1678 !bcmp(rncp->nc_name, cnp->cn_nameptr, rncp->nc_nlen)) in cache_zap_unlocked_bucket()
1739 cnp->cn_nameptr[0] == '.' && cnp->cn_nameptr[1] == '.') { in cache_remove_cnp()
1779 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_remove_cnp()
1789 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_remove_cnp()
1984 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup_fallback()
1990 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_lookup_fallback()
1996 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2066 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_lookup()
2069 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') in cache_lookup()
2080 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_lookup()
2085 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_lookup()
2091 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2381 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_dotdot_prep()
2420 if (cnp->cn_namelen == 1 && cnp->cn_nameptr[0] == '.') { in cache_enter_time()
2427 cnp->cn_nameptr, dvp)); in cache_enter_time()
2436 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_enter_time()
2439 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_enter_time()
2473 hash = cache_get_hash(cnp->cn_nameptr, len, dvp); in cache_enter_time()
2474 memcpy(ncp->nc_name, cnp->cn_nameptr, len); in cache_enter_time()
2487 !bcmp(n2->nc_name, cnp->cn_nameptr, n2->nc_nlen)) { in cache_enter_time()
2492 __func__, NULL, vp, cnp->cn_nameptr)); in cache_enter_time()
2496 __func__, n2->nc_vp, vp, cnp->cn_nameptr)); in cache_enter_time()
3014 hash = cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp); in cache_validate()
3021 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) { in cache_validate()
3200 error = vn_fullpath_hardlink(nd.ni_vp, nd.ni_dvp, nd.ni_cnd.cn_nameptr, in kern___realpathat()
4090 char *cn_nameptr; member
4139 cnp->cn_nameptr = NULL; in cache_fpl_cleanup_cnp()
4151 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
4152 cnp->cn_nameptr++; in cache_fpl_handle_root()
4155 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fpl_handle_root()
4157 cnp->cn_nameptr++; in cache_fpl_handle_root()
4159 } while (*(cnp->cn_nameptr) == '/'); in cache_fpl_handle_root()
4178 fpl->snd.cn_nameptr = fpl->ndp->ni_cnd.cn_nameptr; in cache_fpl_checkpoint()
4202 fpl->ndp->ni_cnd.cn_nameptr = fpl->ndp->ni_cnd.cn_pnbuf; in cache_fpl_restore_abort()
4395 cnp->cn_nameptr[1] == '.' && cnp->cn_nameptr[0] == '.') in cache_fpl_isdotdot()
4525 if (cnp->cn_nameptr != fpl->snd.cn_nameptr) { in cache_fplookup_partial_setup()
4527 cnp->cn_nameptr, fpl->snd.cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4542 if (__predict_false(*(cnp->cn_nameptr) == '/')) { in cache_fplookup_partial_setup()
4544 cnp->cn_nameptr++; in cache_fplookup_partial_setup()
4546 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_partial_setup()
4549 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_partial_setup()
4554 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_partial_setup()
4615 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final_modifying()
4867 MPASS(*(cnp->cn_nameptr) != '/'); in cache_fplookup_final()
5026 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_noentry()
5034 if (cnp->cn_nameptr[0] == '\0') { in cache_fplookup_noentry()
5314 ndp->ni_pathlen = fpl->nulchar - cnp->cn_nameptr - cnp->cn_namelen + 1; in cache_symlink_resolve()
5319 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_symlink_resolve()
5347 cnp->cn_nameptr = cnp->cn_pnbuf; in cache_symlink_resolve()
5348 fpl->nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_symlink_resolve()
5404 if (*(cnp->cn_nameptr) == '/') { in cache_fplookup_symlink()
5444 if (__predict_false(cnp->cn_nameptr[0] == '.')) { in cache_fplookup_next()
5448 if (cnp->cn_namelen == 2 && cnp->cn_nameptr[1] == '.') { in cache_fplookup_next()
5457 !bcmp(ncp->nc_name, cnp->cn_nameptr, ncp->nc_nlen)) in cache_fplookup_next()
5729 MPASS(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] >= cnp->cn_pnbuf); in cache_fplookup_parse()
5730 KASSERT(&cnp->cn_nameptr[fpl->debug.ni_pathlen - 1] == fpl->nulchar, in cache_fplookup_parse()
5732 __func__, fpl->debug.ni_pathlen, &cnp->cn_nameptr[fpl->debug.ni_pathlen - 1], in cache_fplookup_parse()
5739 for (cp = cnp->cn_nameptr; *cp != '/'; cp++) { in cache_fplookup_parse()
5742 cnp->cn_nameptr)); in cache_fplookup_parse()
5749 cnp->cn_namelen = cp - cnp->cn_nameptr; in cache_fplookup_parse()
5758 if (fpl->hash != cache_get_hash(cnp->cn_nameptr, cnp->cn_namelen, dvp)) { in cache_fplookup_parse()
5760 cnp->cn_nameptr, cnp->cn_namelen); in cache_fplookup_parse()
5783 cnp->cn_nameptr = ndp->ni_next; in cache_fplookup_parse_advance()
5784 KASSERT(*(cnp->cn_nameptr) == '/', in cache_fplookup_parse_advance()
5786 cnp->cn_nameptr, cnp->cn_pnbuf, cnp->cn_pnbuf)); in cache_fplookup_parse_advance()
5787 cnp->cn_nameptr++; in cache_fplookup_parse_advance()
5809 MPASS(*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5811 cnp->cn_nameptr++; in cache_fplookup_skip_slashes()
5813 } while (*(cnp->cn_nameptr) == '/'); in cache_fplookup_skip_slashes()
5819 cnp->cn_nameptr--; in cache_fplookup_skip_slashes()
5825 ndp->ni_next = cnp->cn_nameptr; in cache_fplookup_skip_slashes()
5876 KASSERT(cnp->cn_nameptr[0] == '\0', in cache_fplookup_trailingslash()
5877 ("%s: expected nul char at %p; string [%s]\n", __func__, &cnp->cn_nameptr[0], in cache_fplookup_trailingslash()
5882 MPASS(cnp->cn_nameptr > cnp->cn_pnbuf); in cache_fplookup_trailingslash()
5899 ndp->ni_next = &cnp->cn_nameptr[0]; in cache_fplookup_trailingslash()
5905 cn_nameptr_orig = cnp->cn_nameptr; in cache_fplookup_trailingslash()
5906 while (cnp->cn_nameptr >= cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
5907 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
5908 if (cnp->cn_nameptr[0] != '/') { in cache_fplookup_trailingslash()
5918 cn_nameptr_slash = cnp->cn_nameptr; in cache_fplookup_trailingslash()
5919 while (cnp->cn_nameptr > cnp->cn_pnbuf) { in cache_fplookup_trailingslash()
5920 cnp->cn_nameptr--; in cache_fplookup_trailingslash()
5921 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
5925 if (cnp->cn_nameptr[0] == '/') { in cache_fplookup_trailingslash()
5926 cnp->cn_nameptr++; in cache_fplookup_trailingslash()
5929 cnp->cn_namelen = cn_nameptr_slash - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
5930 cache_fpl_pathlen_add(fpl, cn_nameptr_orig - cnp->cn_nameptr); in cache_fplookup_trailingslash()
5934 ni_pathlen = fpl->nulchar - cnp->cn_nameptr + 1; in cache_fplookup_trailingslash()
5938 cnp->cn_nameptr, cnp->cn_nameptr, cnp->cn_pnbuf); in cache_fplookup_trailingslash()
5945 if (cnp->cn_nameptr[0] == '.' && cnp->cn_namelen == 1) { in cache_fplookup_trailingslash()
6004 if (cnp->cn_nameptr[0] == '\0' && fpl->tvp == NULL) { in cache_fplookup_failed_vexec()
6238 MPASS(cnp->cn_nameptr == cnp->cn_pnbuf); in cache_fplookup()
6253 fpl.nulchar = &cnp->cn_nameptr[ndp->ni_pathlen - 1]; in cache_fplookup()