Lines Matching refs:namecache

210 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, "struct vnode *", "char *",
212 SDT_PROBE_DEFINE3(vfs, namecache, enter, duplicate, "struct vnode *", "char *",
214 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, "struct vnode *",
216 SDT_PROBE_DEFINE2(vfs, namecache, fullpath_smr, hit, "struct vnode *",
218 SDT_PROBE_DEFINE4(vfs, namecache, fullpath_smr, miss, "struct vnode *",
220 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, "struct vnode *");
221 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, "struct vnode *",
223 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, "struct vnode *");
224 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, "int",
226 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, "struct vnode *", "char *",
228 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit__negative,
230 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, "struct vnode *",
232 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, hit, "struct vnode *",
234 SDT_PROBE_DEFINE2(vfs, namecache, removecnp, miss, "struct vnode *",
236 SDT_PROBE_DEFINE3(vfs, namecache, purge, done, "struct vnode *", "size_t", "size_t");
237 SDT_PROBE_DEFINE1(vfs, namecache, purge, batch, "int");
238 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, "struct vnode *");
239 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, "struct mount *");
240 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, "struct vnode *", "char *",
242 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, "struct vnode *",
244 SDT_PROBE_DEFINE2(vfs, namecache, evict_negative, done, "struct vnode *",
246 SDT_PROBE_DEFINE1(vfs, namecache, symlink, alloc__fail, "size_t");
265 struct namecache { struct
266 LIST_ENTRY(namecache) nc_src; /* source vnode list */
267 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
268 CK_SLIST_ENTRY(namecache) nc_hash;/* hash chain */
294 struct namecache nc_nc;
297 TAILQ_HEAD(cache_freebatch, namecache);
328 #define CACHE_ZONE_SMALL_SIZE (offsetof(struct namecache, nc_name) + CACHE_PATH_CUTOFF + 1)
330 #define CACHE_ZONE_LARGE_SIZE (offsetof(struct namecache, nc_name) + NAME_MAX + 1 + CACHE_LARGE_PA…
366 cache_ncp_invalidate(struct namecache *ncp) in cache_ncp_invalidate()
382 struct namecache *_ncp = (ncp); \
394 struct namecache *_ncp = (ncp); \
435 static __read_mostly CK_SLIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table */
452 TAILQ_HEAD(, namecache) nl_list;
453 TAILQ_HEAD(, namecache) nl_hotlist;
460 NCP2NEGLIST(struct namecache *ncp) in NCP2NEGLIST()
467 NCP2NEGSTATE(struct namecache *ncp) in NCP2NEGSTATE()
491 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp) in cache_out_ts()
514 SYSCTL_INT(_debug_sizeof, OID_AUTO, namecache, CTLFLAG_RD, SYSCTL_NULL_INT_PTR,
515 sizeof(struct namecache), "sizeof(struct namecache)");
567 static void cache_zap_locked(struct namecache *ncp);
643 SDT_PROBE1(vfs, namecache, symlink, alloc__fail, size); in cache_symlink_alloc()
666 static struct namecache *
670 struct namecache *ncp; in cache_alloc_uma()
688 cache_free_uma(struct namecache *ncp) in cache_free_uma()
706 static struct namecache *
736 cache_free(struct namecache *ncp) in cache_free()
750 struct namecache *ncp, *nnp; in cache_free_batch()
765 SDT_PROBE1(vfs, namecache, purge, batch, i); in cache_free_batch()
830 NCP2BUCKET(struct namecache *ncp) in NCP2BUCKET()
839 NCP2BUCKETLOCK(struct namecache *ncp) in NCP2BUCKETLOCK()
849 cache_assert_bucket_locked(struct namecache *ncp) in cache_assert_bucket_locked()
858 cache_assert_bucket_unlocked(struct namecache *ncp) in cache_assert_bucket_unlocked()
1050 struct namecache *ncp; in sysctl_debug_hashstat_rawnchash()
1084 struct namecache *ncp; in sysctl_debug_hashstat_nchash()
1193 cache_neg_init(struct namecache *ncp) in cache_neg_init()
1207 cache_neg_hit_prep(struct namecache *ncp) in cache_neg_hit_prep()
1231 cache_neg_hit_finish(struct namecache *ncp) in cache_neg_hit_finish()
1234 SDT_PROBE2(vfs, namecache, lookup, hit__negative, ncp->nc_dvp, ncp->nc_name); in cache_neg_hit_finish()
1242 cache_neg_promote_locked(struct namecache *ncp) in cache_neg_promote_locked()
1262 cache_neg_demote_locked(struct namecache *ncp) in cache_neg_demote_locked()
1289 struct namecache *oncp, uint32_t hash) in cache_neg_promote_cond()
1291 struct namecache *ncp; in cache_neg_promote_cond()
1358 cache_neg_promote(struct namecache *ncp) in cache_neg_promote()
1369 cache_neg_insert(struct namecache *ncp) in cache_neg_insert()
1383 cache_neg_remove(struct namecache *ncp) in cache_neg_remove()
1417 static struct namecache *
1420 struct namecache *ncp, *lncp; in cache_neg_evict_select_entry()
1447 struct namecache *ncp, *ncp2; in cache_neg_evict()
1498 SDT_PROBE2(vfs, namecache, evict_negative, done, ncp->nc_dvp, in cache_neg_evict()
1546 cache_zap_locked(struct namecache *ncp) in cache_zap_locked()
1562 CK_SLIST_REMOVE(ncpp, ncp, namecache, nc_hash); in cache_zap_locked()
1564 SDT_PROBE3(vfs, namecache, zap, done, dvp, ncp->nc_name, vp); in cache_zap_locked()
1570 SDT_PROBE2(vfs, namecache, zap_negative, done, dvp, ncp->nc_name); in cache_zap_locked()
1586 cache_zap_negative_locked_vnode_kl(struct namecache *ncp, struct vnode *vp) in cache_zap_negative_locked_vnode_kl()
1601 cache_zap_locked_vnode_kl2(struct namecache *ncp, struct vnode *vp, in cache_zap_locked_vnode_kl2()
1663 cache_zap_unlocked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_unlocked_bucket()
1667 struct namecache *rncp; in cache_zap_unlocked_bucket()
1705 cache_zap_locked_bucket(struct namecache *ncp, struct componentname *cnp, in cache_zap_locked_bucket()
1732 struct namecache *ncp; in cache_remove_cnp()
1749 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1766 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1804 SDT_PROBE2(vfs, namecache, removecnp, hit, dvp, cnp); in cache_remove_cnp()
1809 SDT_PROBE2(vfs, namecache, removecnp, miss, dvp, cnp); in cache_remove_cnp()
1820 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ".", *vpp); in cache_lookup_dot()
1851 struct namecache *ncp; in cache_lookup_dotdot()
1869 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, ".."); in cache_lookup_dotdot()
1882 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, "..", *vpp); in cache_lookup_dotdot()
1973 struct namecache *ncp; in cache_lookup_fallback()
1996 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup_fallback()
2006 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup_fallback()
2050 struct namecache *ncp; in cache_lookup()
2091 SDT_PROBE2(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr); in cache_lookup()
2102 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, *vpp); in cache_lookup()
2284 struct namecache *ncp; in cache_enter_lock()
2327 struct namecache *ncp; in cache_enter_lock_dd()
2373 struct namecache *ncp; in cache_enter_dotdot_prep()
2404 struct namecache *ncp, *n2, *ndd; in cache_enter_time()
2520 SDT_PROBE3(vfs, namecache, enter, duplicate, dvp, ncp->nc_name, in cache_enter_time()
2575 SDT_PROBE3(vfs, namecache, enter, done, dvp, ncp->nc_name, in cache_enter_time()
2581 SDT_PROBE2(vfs, namecache, enter_negative, done, dvp, in cache_enter_time()
2794 struct namecache *ncp; in cache_changesize()
2827 CK_SLIST_REMOVE(&old_nchashtbl[i], ncp, namecache, nc_hash); in cache_changesize()
2847 struct namecache *ncp; in cache_purge_impl()
2899 SDT_PROBE1(vfs, namecache, purge, done, vp); in cache_purge()
2938 struct namecache *ncp, *nnp; in cache_purge_negative()
2941 SDT_PROBE1(vfs, namecache, purge_negative, done, vp); in cache_purge_negative()
3010 struct namecache *ncp; in cache_validate()
3067 SDT_PROBE3(vfs, namecache, purgevfs, done, mp, visited, purged); in cache_purgevfs()
3285 static struct namecache *
3288 struct namecache *ncp; in vn_dd_from_dst()
3302 struct namecache *ncp; in vn_vptocnp()
3322 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_vptocnp()
3328 SDT_PROBE3(vfs, namecache, fullpath, hit, ncp->nc_dvp, in vn_vptocnp()
3337 SDT_PROBE1(vfs, namecache, fullpath, miss, vp); in vn_vptocnp()
3345 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3354 SDT_PROBE3(vfs, namecache, fullpath, return, error, vp, NULL); in vn_vptocnp()
3400 SDT_PROBE1(vfs, namecache, fullpath, entry, vp); in vn_fullpath_dir()
3425 SDT_PROBE3(vfs, namecache, fullpath, return, in vn_fullpath_dir()
3442 SDT_PROBE3(vfs, namecache, fullpath, return, error, in vn_fullpath_dir()
3455 SDT_PROBE3(vfs, namecache, fullpath, return, ENOMEM, in vn_fullpath_dir()
3465 SDT_PROBE3(vfs, namecache, fullpath, return, 0, startvp, *retbuf); in vn_fullpath_dir()
3497 struct namecache *ncp; in vn_fullpath_any_smr()
3614 SDT_PROBE2(vfs, namecache, fullpath_smr, hit, startvp, *retbuf); in vn_fullpath_any_smr()
3619 SDT_PROBE4(vfs, namecache, fullpath_smr, miss, startvp, ncp, reason, i); in vn_fullpath_any_smr()
3746 struct namecache *ncp; in vn_dir_dd_ino()
3771 struct namecache *ncp; in vn_commname()
3934 struct namecache *ncp; in db_print_vpath()
4460 cache_fplookup_negative_promote(struct cache_fpl *fpl, struct namecache *oncp, in cache_fplookup_negative_promote()
5167 SDT_PROBE3(vfs, namecache, lookup, hit, fpl->dvp, ".", fpl->dvp); in cache_fplookup_dot()
5181 struct namecache *ncp; in cache_fplookup_dotdot()
5259 cache_fplookup_neg(struct cache_fpl *fpl, struct namecache *ncp, uint32_t hash) in cache_fplookup_neg()
5434 struct namecache *ncp; in cache_fplookup_next()
5482 SDT_PROBE3(vfs, namecache, lookup, hit, dvp, ncp->nc_name, tvp); in cache_fplookup_next()
5861 struct namecache *ncp; in cache_fplookup_trailingslash()