Lines Matching refs:namecache

89 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
91 SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
93 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
95 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
97 SDT_PROBE_DEFINE4(vfs, namecache, fullpath_smr, miss, "struct vnode *",
99 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, "struct vnode *");
100 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, "struct vnode *",
102 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, "struct vnode *");
103 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, "int",
105 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", "char *",
107 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit__negative,
109 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, "struct vnode *",
111 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, hit, "struct vnode *",
113 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, miss, "struct vnode *",
115 SDT_PROBE_DEFINE1(vfs, namecache, purge, done, "struct vnode *");
116 SDT_PROBE_DEFINE1(vfs, namecache, purge, batch, "int");
117 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, "struct vnode *");
118 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, "struct mount *");
119 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, "struct vnode *", "char *",
121 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, "struct vnode *",
123 SDT_PROBE_DEFINE2(vfs, namecache, evict_negative, done, "struct vnode *",
125 SDT_PROBE_DEFINE1(vfs, namecache, symlink, alloc__fail, "size_t");
142 struct namecache { struct
143 LIST_ENTRY(namecache) nc_src; /* source vnode list */
144 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
145 CK_SLIST_ENTRY(namecache) nc_hash;/* hash chain */
171 struct namecache nc_nc;
174 TAILQ_HEAD(cache_freebatch, namecache);
205 #define CACHE_ZONE_SMALL_SIZE (offsetof(struct namecache, nc_name) + CACHE_PATH_CUTOFF + 1)
207 #define CACHE_ZONE_LARGE_SIZE (offsetof(struct namecache, nc_name) + NAME_MAX + 1 + CACHE_LARGE_PA…
243 cache_ncp_invalidate(struct namecache *ncp) in cache_ncp_invalidate()
259 struct namecache *_ncp = (ncp); \
271 struct namecache *_ncp = (ncp); \
358 static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
383 TAILQ_HEAD(, namecache) nl_list;
384 TAILQ_HEAD(, namecache) nl_hotlist;
391 NCP2NEGLIST(struct namecache *ncp) in NCP2NEGLIST()
398 NCP2NEGSTATE(struct namecache *ncp) in NCP2NEGSTATE()
422 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) in cache_out_ts()
445 SYSCTL_INT(_debug_sizeof, OID_AUTO, namecache, CTLFLAG_RD, SYSCTL_NULL_INT_PTR,
446 sizeof(struct namecache), "sizeof(struct namecache)");
504 static void cache_zap_locked(struct namecache *ncp);
582 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size); in cache_symlink_alloc()
605 static struct namecache *
609 struct namecache *ncp; in cache_alloc_uma()
627 cache_free_uma(struct namecache *ncp) in cache_free_uma()
645 static struct namecache *
675 cache_free(struct namecache *ncp) in cache_free()
689 struct namecache *ncp, *nnp; in cache_free_batch()
704 SDT_PROBE1(vfs, namecache, purge, batch, i); in cache_free_batch()
747 NCP2BUCKET(struct namecache *ncp) in NCP2BUCKET()
756 NCP2BUCKETLOCK(struct namecache *ncp) in NCP2BUCKETLOCK()
766 cache_assert_bucket_locked(struct namecache *ncp) in cache_assert_bucket_locked()
775 cache_assert_bucket_unlocked(struct namecache *ncp) in cache_assert_bucket_unlocked()
947 struct namecache *ncp; in sysctl_debug_hashstat_rawnchash()
981 struct namecache *ncp; in sysctl_debug_hashstat_nchash()
1090 cache_neg_init(struct namecache *ncp) in cache_neg_init()
1104 cache_neg_hit_prep(struct namecache *ncp) in cache_neg_hit_prep()
1128 cache_neg_hit_finish(struct namecache *ncp) in cache_neg_hit_finish()
1131 SDT_PROBE2(vfs, namecache, lookup, hit__negative, ncp->nc_dvp, ncp->nc_name); in cache_neg_hit_finish()
1139 cache_neg_promote_locked(struct namecache *ncp) in cache_neg_promote_locked()
1159 cache_neg_demote_locked(struct namecache *ncp) in cache_neg_demote_locked()
1186 struct namecache *oncp, uint32_t hash) in cache_neg_promote_cond()
1188 struct namecache *ncp; in cache_neg_promote_cond()
1255 cache_neg_promote(struct namecache *ncp) in cache_neg_promote()
1266 cache_neg_insert(struct namecache *ncp) in cache_neg_insert()
1280 cache_neg_remove(struct namecache *ncp) in cache_neg_remove()
1314 static struct namecache *
1317 struct namecache *ncp, *lncp; in cache_neg_evict_select_entry()
1344 struct namecache *ncp, *ncp2; in cache_neg_evict()
1395 SDT_PROBE2(vfs, namecache, evict_negative, done, ncp->nc_dvp, in cache_neg_evict()
1443 cache_zap_locked(struct namecache *ncp) in cache_zap_locked()
1459 CK_SLIST_REMOVE(ncpp, ncp, namecache, nc_hash); in cache_zap_locked()
1461 SDT_PROBE3(vfs, namecache, zap, done, dvp, ncp->nc_name, vp); in cache_zap_locked()
1467 SDT_PROBE2(vfs, namecache, zap_negative, done, dvp, ncp->nc_name); in cache_zap_locked()
1483 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) in cache_zap_negative_locked_vnode_kl()
1498 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, in cache_zap_locked_vnode_kl2()
1560 cache_zap_unlocked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_unlocked_bucket()
1564 struct namecache *rncp; in cache_zap_unlocked_bucket()
1591 cache_zap_locked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_locked_bucket()
1618 struct namecache *ncp; in cache_remove_cnp()
1635 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1652 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1681 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1686 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1698 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp); in cache_lookup_dot()
1729 struct namecache *ncp; in cache_lookup_dotdot()
1748 SDT_PROBE3(vfs, namecache, lookup, miss, dvp, "..", NULL); in cache_lookup_dotdot()
1761 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, "..", *vpp); in cache_lookup_dotdot()
1852 struct namecache *ncp; in cache_lookup_fallback()
1875 SDT_PROBE3(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr, in cache_lookup_fallback()
1886 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup_fallback()
1930 struct namecache *ncp; in cache_lookup()
1971 SDT_PROBE3(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr, in cache_lookup()
1983 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup()
2165 struct namecache *ncp; in cache_enter_lock()
2208 struct namecache *ncp; in cache_enter_lock_dd()
2254 struct namecache *ncp; in cache_enter_dotdot_prep()
2285 struct namecache *ncp, *n2, *ndd; in cache_enter_time()
2393 SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, ncp->nc_name, in cache_enter_time()
2448 SDT_PROBE3(vfs, namecache, enter, done, dvp, ncp->nc_name, in cache_enter_time()
2454 SDT_PROBE2(vfs, namecache, enter_negative, done, dvp, in cache_enter_time()
2578 struct namecache *ncp; in cache_changesize()
2609 CK_SLIST_REMOVE(&old_nchashtbl[i], ncp, namecache, nc_hash); in cache_changesize()
2627 struct namecache *ncp; in cache_purge_impl()
2679 SDT_PROBE1(vfs, namecache, purge, done, vp); in cache_purge()
2718 struct namecache *ncp, *nnp; in cache_purge_negative()
2721 SDT_PROBE1(vfs, namecache, purge_negative, done, vp); in cache_purge_negative()
2792 struct namecache *ncp; in cache_validate()
2822 SDT_PROBE1(vfs, namecache, purgevfs, done, mp); in cache_purgevfs()
3016 static struct namecache *
3019 struct namecache *ncp; in vn_dd_from_dst()
3033 struct namecache *ncp; in vn_vptocnp()
3053 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_vptocnp()
3059 SDT_PROBE3(vfs, namecache, fullpath, hit, ncp->nc_dvp, in vn_vptocnp()
3068 SDT_PROBE1(vfs, namecache, fullpath, miss, vp); in vn_vptocnp()
3076 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3085 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3131 SDT_PROBE1(vfs, namecache, fullpath, entry, vp); in vn_fullpath_dir()
3156 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3170 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3180 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_fullpath_dir()
3193 SDT_PROBE3(vfs, namecache, fullpath, return, ENOMEM, in vn_fullpath_dir()
3203 SDT_PROBE3(vfs, namecache, fullpath, return, 0, startvp, *retbuf); in vn_fullpath_dir()
3235 struct namecache *ncp; in vn_fullpath_any_smr()
3352 SDT_PROBE2(vfs, namecache, fullpath_smr, hit, startvp, *retbuf); in vn_fullpath_any_smr()
3357 SDT_PROBE4(vfs, namecache, fullpath_smr, miss, startvp, ncp, reason, i); in vn_fullpath_any_smr()
3492 struct namecache *ncp; in vn_dir_dd_ino()
3517 struct namecache *ncp; in vn_commname()
3615 struct namecache *ncp; in db_print_vpath()
4064 cache_fplookup_negative_promote(struct cache_fpl *fpl, struct namecache *oncp, in cache_fplookup_negative_promote()
4737 SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp); in cache_fplookup_dot()
4751 struct namecache *ncp; in cache_fplookup_dotdot()
4825 cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) in cache_fplookup_neg()
4980 struct namecache *ncp; in cache_fplookup_next()
5028 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, tvp); in cache_fplookup_next()
5402 struct namecache *ncp; in cache_fplookup_trailingslash()