Lines Matching refs:namecache

297 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
299 SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
301 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
303 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
305 SDT_PROBE_DEFINE4(vfs, namecache, fullpath_smr, miss, "struct vnode *",
307 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, "struct vnode *");
308 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, "struct vnode *",
310 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, "struct vnode *");
311 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, "int",
313 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", "char *",
315 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit__negative,
317 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, "struct vnode *",
319 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, hit, "struct vnode *",
321 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, miss, "struct vnode *",
323 SDT_PROBE_DEFINE3(vfs, namecache, purge, done, "struct vnode *", "size_t", "size_t");
324 SDT_PROBE_DEFINE1(vfs, namecache, purge, batch, "int");
325 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, "struct vnode *");
326 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, "struct mount *");
327 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, "struct vnode *", "char *",
329 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, "struct vnode *",
331 SDT_PROBE_DEFINE2(vfs, namecache, evict_negative, done, "struct vnode *",
333 SDT_PROBE_DEFINE1(vfs, namecache, symlink, alloc__fail, "size_t");
352 struct namecache { struct
353 LIST_ENTRY(namecache) nc_src; /* source vnode list */
354 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
355 CK_SLIST_ENTRY(namecache) nc_hash;/* hash chain */
381 struct namecache nc_nc;
384 TAILQ_HEAD(cache_freebatch, namecache);
415 #define CACHE_ZONE_SMALL_SIZE (offsetof(struct namecache, nc_name) + CACHE_PATH_CUTOFF + 1)
417 #define CACHE_ZONE_LARGE_SIZE (offsetof(struct namecache, nc_name) + NAME_MAX + 1 + CACHE_LARGE_PA…
453 cache_ncp_invalidate(struct namecache *ncp) in cache_ncp_invalidate()
469 struct namecache *_ncp = (ncp); \
481 struct namecache *_ncp = (ncp); \
522 static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
539 TAILQ_HEAD(, namecache) nl_list;
540 TAILQ_HEAD(, namecache) nl_hotlist;
547 NCP2NEGLIST(struct namecache *ncp) in NCP2NEGLIST()
554 NCP2NEGSTATE(struct namecache *ncp) in NCP2NEGSTATE()
578 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) in cache_out_ts()
601 SYSCTL_INT(_debug_sizeof, OID_AUTO, namecache, CTLFLAG_RD, SYSCTL_NULL_INT_PTR,
602 sizeof(struct namecache), "sizeof(struct namecache)");
654 static void cache_zap_locked(struct namecache *ncp);
730 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size); in cache_symlink_alloc()
753 static struct namecache *
757 struct namecache *ncp; in cache_alloc_uma()
775 cache_free_uma(struct namecache *ncp) in cache_free_uma()
793 static struct namecache *
823 cache_free(struct namecache *ncp) in cache_free()
837 struct namecache *ncp, *nnp; in cache_free_batch()
852 SDT_PROBE1(vfs, namecache, purge, batch, i); in cache_free_batch()
917 NCP2BUCKET(struct namecache *ncp) in NCP2BUCKET()
926 NCP2BUCKETLOCK(struct namecache *ncp) in NCP2BUCKETLOCK()
936 cache_assert_bucket_locked(struct namecache *ncp) in cache_assert_bucket_locked()
945 cache_assert_bucket_unlocked(struct namecache *ncp) in cache_assert_bucket_unlocked()
1137 struct namecache *ncp; in sysctl_debug_hashstat_rawnchash()
1171 struct namecache *ncp; in sysctl_debug_hashstat_nchash()
1280 cache_neg_init(struct namecache *ncp) in cache_neg_init()
1294 cache_neg_hit_prep(struct namecache *ncp) in cache_neg_hit_prep()
1318 cache_neg_hit_finish(struct namecache *ncp) in cache_neg_hit_finish()
1321 SDT_PROBE2(vfs, namecache, lookup, hit__negative, ncp->nc_dvp, ncp->nc_name); in cache_neg_hit_finish()
1329 cache_neg_promote_locked(struct namecache *ncp) in cache_neg_promote_locked()
1349 cache_neg_demote_locked(struct namecache *ncp) in cache_neg_demote_locked()
1376 struct namecache *oncp, uint32_t hash) in cache_neg_promote_cond()
1378 struct namecache *ncp; in cache_neg_promote_cond()
1445 cache_neg_promote(struct namecache *ncp) in cache_neg_promote()
1456 cache_neg_insert(struct namecache *ncp) in cache_neg_insert()
1470 cache_neg_remove(struct namecache *ncp) in cache_neg_remove()
1504 static struct namecache *
1507 struct namecache *ncp, *lncp; in cache_neg_evict_select_entry()
1534 struct namecache *ncp, *ncp2; in cache_neg_evict()
1585 SDT_PROBE2(vfs, namecache, evict_negative, done, ncp->nc_dvp, in cache_neg_evict()
1633 cache_zap_locked(struct namecache *ncp) in cache_zap_locked()
1649 CK_SLIST_REMOVE(ncpp, ncp, namecache, nc_hash); in cache_zap_locked()
1651 SDT_PROBE3(vfs, namecache, zap, done, dvp, ncp->nc_name, vp); in cache_zap_locked()
1657 SDT_PROBE2(vfs, namecache, zap_negative, done, dvp, ncp->nc_name); in cache_zap_locked()
1673 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) in cache_zap_negative_locked_vnode_kl()
1688 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, in cache_zap_locked_vnode_kl2()
1750 cache_zap_unlocked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_unlocked_bucket()
1754 struct namecache *rncp; in cache_zap_unlocked_bucket()
1792 cache_zap_locked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_locked_bucket()
1819 struct namecache *ncp; in cache_remove_cnp()
1836 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1853 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1891 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1896 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1907 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp); in cache_lookup_dot()
1938 struct namecache *ncp; in cache_lookup_dotdot()
1956 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, ".."); in cache_lookup_dotdot()
1969 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, "..", *vpp); in cache_lookup_dotdot()
2060 struct namecache *ncp; in cache_lookup_fallback()
2083 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2093 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup_fallback()
2137 struct namecache *ncp; in cache_lookup()
2178 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2189 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup()
2371 struct namecache *ncp; in cache_enter_lock()
2414 struct namecache *ncp; in cache_enter_lock_dd()
2460 struct namecache *ncp; in cache_enter_dotdot_prep()
2491 struct namecache *ncp, *n2, *ndd; in cache_enter_time()
2607 SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, ncp->nc_name, in cache_enter_time()
2662 SDT_PROBE3(vfs, namecache, enter, done, dvp, ncp->nc_name, in cache_enter_time()
2668 SDT_PROBE2(vfs, namecache, enter_negative, done, dvp, in cache_enter_time()
2881 struct namecache *ncp; in cache_changesize()
2914 CK_SLIST_REMOVE(&old_nchashtbl[i], ncp, namecache, nc_hash); in cache_changesize()
2934 struct namecache *ncp; in cache_purge_impl()
2986 SDT_PROBE1(vfs, namecache, purge, done, vp); in cache_purge()
3025 struct namecache *ncp, *nnp; in cache_purge_negative()
3028 SDT_PROBE1(vfs, namecache, purge_negative, done, vp); in cache_purge_negative()
3097 struct namecache *ncp; in cache_validate()
3154 SDT_PROBE3(vfs, namecache, purgevfs, done, mp, visited, purged); in cache_purgevfs()
3382 static struct namecache *
3385 struct namecache *ncp; in vn_dd_from_dst()
3399 struct namecache *ncp; in vn_vptocnp()
3419 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_vptocnp()
3425 SDT_PROBE3(vfs, namecache, fullpath, hit, ncp->nc_dvp, in vn_vptocnp()
3434 SDT_PROBE1(vfs, namecache, fullpath, miss, vp); in vn_vptocnp()
3442 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3451 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3497 SDT_PROBE1(vfs, namecache, fullpath, entry, vp); in vn_fullpath_dir()
3522 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3539 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_fullpath_dir()
3552 SDT_PROBE3(vfs, namecache, fullpath, return, ENOMEM, in vn_fullpath_dir()
3562 SDT_PROBE3(vfs, namecache, fullpath, return, 0, startvp, *retbuf); in vn_fullpath_dir()
3594 struct namecache *ncp; in vn_fullpath_any_smr()
3711 SDT_PROBE2(vfs, namecache, fullpath_smr, hit, startvp, *retbuf); in vn_fullpath_any_smr()
3716 SDT_PROBE4(vfs, namecache, fullpath_smr, miss, startvp, ncp, reason, i); in vn_fullpath_any_smr()
3843 struct namecache *ncp; in vn_dir_dd_ino()
3868 struct namecache *ncp; in vn_commname()
4031 struct namecache *ncp; in db_print_vpath()
4561 cache_fplookup_negative_promote(struct cache_fpl *fpl, struct namecache *oncp, in cache_fplookup_negative_promote()
5268 SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp); in cache_fplookup_dot()
5282 struct namecache *ncp; in cache_fplookup_dotdot()
5360 cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) in cache_fplookup_neg()
5535 struct namecache *ncp; in cache_fplookup_next()
5583 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, tvp); in cache_fplookup_next()
5962 struct namecache *ncp; in cache_fplookup_trailingslash()