Lines Matching refs:namecache
214 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
216 SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
218 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
220 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
222 SDT_PROBE_DEFINE4(vfs, namecache, fullpath_smr, miss, "struct vnode *",
224 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, "struct vnode *");
225 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, "struct vnode *",
227 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, "struct vnode *");
228 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, "int",
230 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", "char *",
232 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit__negative,
234 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, "struct vnode *",
236 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, hit, "struct vnode *",
238 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, miss, "struct vnode *",
240 SDT_PROBE_DEFINE3(vfs, namecache, purge, done, "struct vnode *", "size_t", "size_t");
241 SDT_PROBE_DEFINE1(vfs, namecache, purge, batch, "int");
242 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, "struct vnode *");
243 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, "struct mount *");
244 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, "struct vnode *", "char *",
246 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, "struct vnode *",
248 SDT_PROBE_DEFINE2(vfs, namecache, evict_negative, done, "struct vnode *",
250 SDT_PROBE_DEFINE1(vfs, namecache, symlink, alloc__fail, "size_t");
269 struct namecache { struct
270 LIST_ENTRY(namecache) nc_src; /* source vnode list */
271 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
272 CK_SLIST_ENTRY(namecache) nc_hash;/* hash chain */
298 struct namecache nc_nc;
301 TAILQ_HEAD(cache_freebatch, namecache);
332 #define CACHE_ZONE_SMALL_SIZE (offsetof(struct namecache, nc_name) + CACHE_PATH_CUTOFF + 1)
334 #define CACHE_ZONE_LARGE_SIZE (offsetof(struct namecache, nc_name) + NAME_MAX + 1 + CACHE_LARGE_PA…
370 cache_ncp_invalidate(struct namecache *ncp) in cache_ncp_invalidate()
386 struct namecache *_ncp = (ncp); \
398 struct namecache *_ncp = (ncp); \
439 static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
460 TAILQ_HEAD(, namecache) nl_list;
461 TAILQ_HEAD(, namecache) nl_hotlist;
468 NCP2NEGLIST(struct namecache *ncp) in NCP2NEGLIST()
475 NCP2NEGSTATE(struct namecache *ncp) in NCP2NEGSTATE()
499 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) in cache_out_ts()
522 SYSCTL_INT(_debug_sizeof, OID_AUTO, namecache, CTLFLAG_RD, SYSCTL_NULL_INT_PTR,
523 sizeof(struct namecache), "sizeof(struct namecache)");
581 static void cache_zap_locked(struct namecache *ncp);
657 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size); in cache_symlink_alloc()
680 static struct namecache *
684 struct namecache *ncp; in cache_alloc_uma()
702 cache_free_uma(struct namecache *ncp) in cache_free_uma()
720 static struct namecache *
750 cache_free(struct namecache *ncp) in cache_free()
764 struct namecache *ncp, *nnp; in cache_free_batch()
779 SDT_PROBE1(vfs, namecache, purge, batch, i); in cache_free_batch()
844 NCP2BUCKET(struct namecache *ncp) in NCP2BUCKET()
853 NCP2BUCKETLOCK(struct namecache *ncp) in NCP2BUCKETLOCK()
863 cache_assert_bucket_locked(struct namecache *ncp) in cache_assert_bucket_locked()
872 cache_assert_bucket_unlocked(struct namecache *ncp) in cache_assert_bucket_unlocked()
1044 struct namecache *ncp; in sysctl_debug_hashstat_rawnchash()
1078 struct namecache *ncp; in sysctl_debug_hashstat_nchash()
1187 cache_neg_init(struct namecache *ncp) in cache_neg_init()
1201 cache_neg_hit_prep(struct namecache *ncp) in cache_neg_hit_prep()
1225 cache_neg_hit_finish(struct namecache *ncp) in cache_neg_hit_finish()
1228 SDT_PROBE2(vfs, namecache, lookup, hit__negative, ncp->nc_dvp, ncp->nc_name); in cache_neg_hit_finish()
1236 cache_neg_promote_locked(struct namecache *ncp) in cache_neg_promote_locked()
1256 cache_neg_demote_locked(struct namecache *ncp) in cache_neg_demote_locked()
1283 struct namecache *oncp, uint32_t hash) in cache_neg_promote_cond()
1285 struct namecache *ncp; in cache_neg_promote_cond()
1352 cache_neg_promote(struct namecache *ncp) in cache_neg_promote()
1363 cache_neg_insert(struct namecache *ncp) in cache_neg_insert()
1377 cache_neg_remove(struct namecache *ncp) in cache_neg_remove()
1411 static struct namecache *
1414 struct namecache *ncp, *lncp; in cache_neg_evict_select_entry()
1441 struct namecache *ncp, *ncp2; in cache_neg_evict()
1492 SDT_PROBE2(vfs, namecache, evict_negative, done, ncp->nc_dvp, in cache_neg_evict()
1540 cache_zap_locked(struct namecache *ncp) in cache_zap_locked()
1556 CK_SLIST_REMOVE(ncpp, ncp, namecache, nc_hash); in cache_zap_locked()
1558 SDT_PROBE3(vfs, namecache, zap, done, dvp, ncp->nc_name, vp); in cache_zap_locked()
1564 SDT_PROBE2(vfs, namecache, zap_negative, done, dvp, ncp->nc_name); in cache_zap_locked()
1580 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) in cache_zap_negative_locked_vnode_kl()
1595 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, in cache_zap_locked_vnode_kl2()
1657 cache_zap_unlocked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_unlocked_bucket()
1661 struct namecache *rncp; in cache_zap_unlocked_bucket()
1688 cache_zap_locked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_locked_bucket()
1715 struct namecache *ncp; in cache_remove_cnp()
1732 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1749 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1778 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1783 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1795 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp); in cache_lookup_dot()
1826 struct namecache *ncp; in cache_lookup_dotdot()
1845 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, ".."); in cache_lookup_dotdot()
1858 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, "..", *vpp); in cache_lookup_dotdot()
1949 struct namecache *ncp; in cache_lookup_fallback()
1972 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
1982 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup_fallback()
2026 struct namecache *ncp; in cache_lookup()
2067 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2078 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup()
2260 struct namecache *ncp; in cache_enter_lock()
2303 struct namecache *ncp; in cache_enter_lock_dd()
2349 struct namecache *ncp; in cache_enter_dotdot_prep()
2380 struct namecache *ncp, *n2, *ndd; in cache_enter_time()
2496 SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, ncp->nc_name, in cache_enter_time()
2551 SDT_PROBE3(vfs, namecache, enter, done, dvp, ncp->nc_name, in cache_enter_time()
2557 SDT_PROBE2(vfs, namecache, enter_negative, done, dvp, in cache_enter_time()
2770 struct namecache *ncp; in cache_changesize()
2803 CK_SLIST_REMOVE(&old_nchashtbl[i], ncp, namecache, nc_hash); in cache_changesize()
2823 struct namecache *ncp; in cache_purge_impl()
2875 SDT_PROBE1(vfs, namecache, purge, done, vp); in cache_purge()
2914 struct namecache *ncp, *nnp; in cache_purge_negative()
2917 SDT_PROBE1(vfs, namecache, purge_negative, done, vp); in cache_purge_negative()
2988 struct namecache *ncp; in cache_validate()
3036 SDT_PROBE3(vfs, namecache, purgevfs, done, mp, visited, purged); in cache_purgevfs()
3217 static struct namecache *
3220 struct namecache *ncp; in vn_dd_from_dst()
3234 struct namecache *ncp; in vn_vptocnp()
3254 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_vptocnp()
3260 SDT_PROBE3(vfs, namecache, fullpath, hit, ncp->nc_dvp, in vn_vptocnp()
3269 SDT_PROBE1(vfs, namecache, fullpath, miss, vp); in vn_vptocnp()
3277 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3286 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3332 SDT_PROBE1(vfs, namecache, fullpath, entry, vp); in vn_fullpath_dir()
3357 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3371 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3381 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_fullpath_dir()
3394 SDT_PROBE3(vfs, namecache, fullpath, return, ENOMEM, in vn_fullpath_dir()
3404 SDT_PROBE3(vfs, namecache, fullpath, return, 0, startvp, *retbuf); in vn_fullpath_dir()
3436 struct namecache *ncp; in vn_fullpath_any_smr()
3553 SDT_PROBE2(vfs, namecache, fullpath_smr, hit, startvp, *retbuf); in vn_fullpath_any_smr()
3558 SDT_PROBE4(vfs, namecache, fullpath_smr, miss, startvp, ncp, reason, i); in vn_fullpath_any_smr()
3692 struct namecache *ncp; in vn_dir_dd_ino()
3717 struct namecache *ncp; in vn_commname()
3815 struct namecache *ncp; in db_print_vpath()
4275 cache_fplookup_negative_promote(struct cache_fpl *fpl, struct namecache *oncp, in cache_fplookup_negative_promote()
4998 SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp); in cache_fplookup_dot()
5012 struct namecache *ncp; in cache_fplookup_dotdot()
5086 cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) in cache_fplookup_neg()
5256 struct namecache *ncp; in cache_fplookup_next()
5304 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, tvp); in cache_fplookup_next()
5683 struct namecache *ncp; in cache_fplookup_trailingslash()