Lines Matching refs:namecache
316 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
318 SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
320 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
322 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
324 SDT_PROBE_DEFINE4(vfs, namecache, fullpath_smr, miss, "struct vnode *",
326 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, "struct vnode *");
327 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, "struct vnode *",
329 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, "struct vnode *");
330 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, "int",
332 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", "char *",
334 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit__negative,
336 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, "struct vnode *",
338 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, hit, "struct vnode *",
340 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, miss, "struct vnode *",
342 SDT_PROBE_DEFINE3(vfs, namecache, purge, done, "struct vnode *", "size_t", "size_t");
343 SDT_PROBE_DEFINE1(vfs, namecache, purge, batch, "int");
344 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, "struct vnode *");
345 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, "struct mount *");
346 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, "struct vnode *", "char *",
348 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, "struct vnode *",
350 SDT_PROBE_DEFINE2(vfs, namecache, evict_negative, done, "struct vnode *",
352 SDT_PROBE_DEFINE1(vfs, namecache, symlink, alloc__fail, "size_t");
372 struct namecache { struct
373 LIST_ENTRY(namecache) nc_src; /* source vnode list */
374 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
375 CK_SLIST_ENTRY(namecache) nc_hash;/* hash chain */
397 struct namecache nc_nc;
400 TAILQ_HEAD(cache_freebatch, namecache);
427 (offsetof(struct namecache, nc_name) + (pathlen) + 1)
478 cache_ncp_invalidate(struct namecache *ncp) in cache_ncp_invalidate()
491 cache_ncp_match(struct namecache *ncp, struct vnode *dvp, in cache_ncp_match()
506 struct namecache *_ncp = (ncp); \
518 struct namecache *_ncp = (ncp); \
559 static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
576 TAILQ_HEAD(, namecache) nl_list;
577 TAILQ_HEAD(, namecache) nl_hotlist;
584 NCP2NEGLIST(struct namecache *ncp) in NCP2NEGLIST()
591 NCP2NEGSTATE(struct namecache *ncp) in NCP2NEGSTATE()
618 static struct namecache *
621 struct namecache *ncp; in cache_ncp_find()
633 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) in cache_out_ts()
656 SYSCTL_SIZEOF_STRUCT(namecache);
708 static void cache_zap_locked(struct namecache *ncp);
784 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size); in cache_symlink_alloc()
807 static struct namecache *
811 struct namecache *ncp; in cache_alloc_uma()
829 cache_free_uma(struct namecache *ncp) in cache_free_uma()
847 static struct namecache *
877 cache_free(struct namecache *ncp) in cache_free()
891 struct namecache *ncp, *nnp; in cache_free_batch()
906 SDT_PROBE1(vfs, namecache, purge, batch, i); in cache_free_batch()
971 NCP2BUCKET(struct namecache *ncp) in NCP2BUCKET()
980 NCP2BUCKETLOCK(struct namecache *ncp) in NCP2BUCKETLOCK()
990 cache_assert_bucket_locked(struct namecache *ncp) in cache_assert_bucket_locked()
999 cache_assert_bucket_unlocked(struct namecache *ncp) in cache_assert_bucket_unlocked()
1191 struct namecache *ncp; in sysctl_debug_hashstat_rawnchash()
1225 struct namecache *ncp; in sysctl_debug_hashstat_nchash()
1334 cache_neg_init(struct namecache *ncp) in cache_neg_init()
1348 cache_neg_hit_prep(struct namecache *ncp) in cache_neg_hit_prep()
1372 cache_neg_hit_finish(struct namecache *ncp) in cache_neg_hit_finish()
1375 SDT_PROBE2(vfs, namecache, lookup, hit__negative, ncp->nc_dvp, ncp->nc_name); in cache_neg_hit_finish()
1383 cache_neg_promote_locked(struct namecache *ncp) in cache_neg_promote_locked()
1403 cache_neg_demote_locked(struct namecache *ncp) in cache_neg_demote_locked()
1430 struct namecache *oncp, uint32_t hash) in cache_neg_promote_cond()
1432 struct namecache *ncp; in cache_neg_promote_cond()
1498 cache_neg_promote(struct namecache *ncp) in cache_neg_promote()
1509 cache_neg_insert(struct namecache *ncp) in cache_neg_insert()
1523 cache_neg_remove(struct namecache *ncp) in cache_neg_remove()
1557 static struct namecache *
1560 struct namecache *ncp, *lncp; in cache_neg_evict_select_entry()
1587 struct namecache *ncp, *ncp2; in cache_neg_evict()
1638 SDT_PROBE2(vfs, namecache, evict_negative, done, ncp->nc_dvp, in cache_neg_evict()
1686 cache_zap_locked(struct namecache *ncp) in cache_zap_locked()
1702 CK_SLIST_REMOVE(ncpp, ncp, namecache, nc_hash); in cache_zap_locked()
1704 SDT_PROBE3(vfs, namecache, zap, done, dvp, ncp->nc_name, vp); in cache_zap_locked()
1710 SDT_PROBE2(vfs, namecache, zap_negative, done, dvp, ncp->nc_name); in cache_zap_locked()
1726 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) in cache_zap_negative_locked_vnode_kl()
1741 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, in cache_zap_locked_vnode_kl2()
1803 cache_zap_unlocked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_unlocked_bucket()
1807 struct namecache *rncp; in cache_zap_unlocked_bucket()
1842 cache_zap_locked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_locked_bucket()
1869 struct namecache *ncp; in cache_remove_cnp()
1886 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1903 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1935 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1940 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1951 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp); in cache_lookup_dot()
1982 struct namecache *ncp; in cache_lookup_dotdot()
2000 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, ".."); in cache_lookup_dotdot()
2013 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, "..", *vpp); in cache_lookup_dotdot()
2104 struct namecache *ncp; in cache_lookup_fallback()
2122 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2132 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup_fallback()
2176 struct namecache *ncp; in cache_lookup()
2212 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2223 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup()
2405 struct namecache *ncp; in cache_enter_lock()
2448 struct namecache *ncp; in cache_enter_lock_dd()
2494 struct namecache *ncp; in cache_enter_dotdot_prep()
2525 struct namecache *ncp, *n2, *ndd; in cache_enter_time()
2640 SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, ncp->nc_name, in cache_enter_time()
2694 SDT_PROBE3(vfs, namecache, enter, done, dvp, ncp->nc_name, in cache_enter_time()
2700 SDT_PROBE2(vfs, namecache, enter_negative, done, dvp, in cache_enter_time()
2913 struct namecache *ncp; in cache_changesize()
2946 CK_SLIST_REMOVE(&old_nchashtbl[i], ncp, namecache, nc_hash); in cache_changesize()
2966 struct namecache *ncp; in cache_purge_impl()
3018 SDT_PROBE1(vfs, namecache, purge, done, vp); in cache_purge()
3057 struct namecache *ncp, *nnp; in cache_purge_negative()
3060 SDT_PROBE1(vfs, namecache, purge_negative, done, vp); in cache_purge_negative()
3129 struct namecache *ncp; in cache_validate()
3183 SDT_PROBE3(vfs, namecache, purgevfs, done, mp, visited, purged); in cache_purgevfs()
3447 static struct namecache *
3450 struct namecache *ncp; in vn_dd_from_dst()
3464 struct namecache *ncp; in vn_vptocnp()
3484 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_vptocnp()
3490 SDT_PROBE3(vfs, namecache, fullpath, hit, ncp->nc_dvp, in vn_vptocnp()
3499 SDT_PROBE1(vfs, namecache, fullpath, miss, vp); in vn_vptocnp()
3507 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3516 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3562 SDT_PROBE1(vfs, namecache, fullpath, entry, vp); in vn_fullpath_dir()
3587 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3604 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_fullpath_dir()
3617 SDT_PROBE3(vfs, namecache, fullpath, return, ENOMEM, in vn_fullpath_dir()
3627 SDT_PROBE3(vfs, namecache, fullpath, return, 0, startvp, *retbuf); in vn_fullpath_dir()
3659 struct namecache *ncp; in vn_fullpath_any_smr()
3776 SDT_PROBE2(vfs, namecache, fullpath_smr, hit, startvp, *retbuf); in vn_fullpath_any_smr()
3781 SDT_PROBE4(vfs, namecache, fullpath_smr, miss, startvp, ncp, reason, i); in vn_fullpath_any_smr()
3908 struct namecache *ncp; in vn_dir_dd_ino()
3933 struct namecache *ncp; in vn_commname()
4085 struct namecache *ncp; in cache_vop_inotify()
4146 struct namecache *ncp; in db_print_vpath()
4678 cache_fplookup_negative_promote(struct cache_fpl *fpl, struct namecache *oncp, in cache_fplookup_negative_promote()
5385 SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp); in cache_fplookup_dot()
5398 struct namecache *ncp; in cache_fplookup_dotdot()
5466 cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) in cache_fplookup_neg()
5641 struct namecache *ncp; in cache_fplookup_next()
5684 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, tvp); in cache_fplookup_next()
6063 struct namecache *ncp; in cache_fplookup_trailingslash()