Lines Matching refs:namecache

65 SDT_PROBE_DEFINE3(vfs, namecache, enter, done, done, "struct vnode *", "char *",
67 SDT_PROBE_DEFINE2(vfs, namecache, enter_negative, done, done, "struct vnode *",
69 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, entry, entry, "struct vnode *");
70 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, hit, hit, "struct vnode *",
72 SDT_PROBE_DEFINE1(vfs, namecache, fullpath, miss, miss, "struct vnode *");
73 SDT_PROBE_DEFINE3(vfs, namecache, fullpath, return, return, "int",
75 SDT_PROBE_DEFINE3(vfs, namecache, lookup, hit, hit, "struct vnode *", "char *",
77 SDT_PROBE_DEFINE2(vfs, namecache, lookup, hit_negative, hit-negative,
79 SDT_PROBE_DEFINE2(vfs, namecache, lookup, miss, miss, "struct vnode *",
81 SDT_PROBE_DEFINE1(vfs, namecache, purge, done, done, "struct vnode *");
82 SDT_PROBE_DEFINE1(vfs, namecache, purge_negative, done, done, "struct vnode *");
83 SDT_PROBE_DEFINE1(vfs, namecache, purgevfs, done, done, "struct mount *");
84 SDT_PROBE_DEFINE3(vfs, namecache, zap, done, done, "struct vnode *", "char *",
86 SDT_PROBE_DEFINE2(vfs, namecache, zap_negative, done, done, "struct vnode *",
94 struct namecache {
95 LIST_ENTRY(namecache) nc_hash; /* hash chain */
96 LIST_ENTRY(namecache) nc_src; /* source vnode list */
97 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
106 * struct namecache_ts repeats struct namecache layout up to the
108 * struct namecache_ts is used in place of struct namecache when time(s) need
114 LIST_ENTRY(namecache) nc_hash; /* hash chain */
115 LIST_ENTRY(namecache) nc_src; /* source vnode list */
116 TAILQ_ENTRY(namecache) nc_dst; /* destination vnode list */
128 * Flags in namecache.nc_flag
157 static LIST_HEAD(nchashhead, namecache) *nchashtbl; /* Hash Table */
158 static TAILQ_HEAD(, namecache) ncneg; /* Hash Table */
161 "Size of namecache hash table");
164 "Ratio of negative namecache entries");
167 "Number of negative entries in namecache");
170 "Number of namecache entries");
173 "Number of namecache entries with vnodes held");
176 "Size factor for namecache");
203 static struct namecache *
220 cache_free(struct namecache *ncp)
239 nc_get_name(struct namecache *ncp)
250 cache_out_ts(struct namecache *ncp, struct timespec *tsp, int *ticksp)
265 "VFS namecache enabled");
268 SYSCTL_INT(_debug_sizeof, OID_AUTO, namecache, CTLFLAG_RD, 0,
269 sizeof(struct namecache), "sizeof(struct namecache)");
309 static void cache_zap(struct namecache *ncp);
329 struct namecache *ncp;
360 struct namecache *ncp;
408 * Removes a namecache entry from cache, whether it contains an actual
413 struct namecache *ncp;
421 SDT_PROBE(vfs, namecache, zap, done, ncp->nc_dvp,
424 SDT_PROBE(vfs, namecache, zap_negative, done, ncp->nc_dvp,
479 struct namecache *ncp;
500 SDT_PROBE(vfs, namecache, lookup, hit, dvp, ".",
511 SDT_PROBE(vfs, namecache, lookup, miss, dvp,
534 SDT_PROBE(vfs, namecache, lookup, hit, dvp, "..",
556 SDT_PROBE(vfs, namecache, lookup, miss, dvp, cnp->cn_nameptr,
585 SDT_PROBE(vfs, namecache, lookup, hit, dvp, nc_get_name(ncp),
617 SDT_PROBE(vfs, namecache, lookup, hit_negative, dvp, nc_get_name(ncp),
713 struct namecache *ncp, *n2;
732 * Avoid blowout in namecache entries.
746 * namecache entry allocation.
767 SDT_PROBE(vfs, namecache, enter, done, dvp, "..", vp,
779 * namecache entry as possible before acquiring the lock.
869 * Insert the new namecache entry into the appropriate chain
888 SDT_PROBE(vfs, namecache, enter, done, dvp, nc_get_name(ncp),
892 SDT_PROBE(vfs, namecache, enter_negative, done, dvp,
916 sizeof(struct namecache) + CACHE_PATH_CUTOFF + 1,
922 sizeof(struct namecache) + NAME_MAX + 1,
942 SDT_PROBE(vfs, namecache, purge, done, vp, 0, 0, 0, 0);
964 struct namecache *cp, *ncp;
967 SDT_PROBE(vfs, namecache, purge_negative, done, vp, 0, 0, 0, 0);
984 struct namecache *ncp, *nnp;
987 SDT_PROBE(vfs, namecache, purgevfs, done, mp, 0, 0, 0, 0);
1204 struct namecache *ncp;
1217 SDT_PROBE(vfs, namecache, fullpath, return, error,
1223 SDT_PROBE(vfs, namecache, fullpath, hit, ncp->nc_dvp,
1233 SDT_PROBE(vfs, namecache, fullpath, miss, vp, 0, 0, 0, 0);
1241 SDT_PROBE(vfs, namecache, fullpath, return, error, vp,
1253 SDT_PROBE(vfs, namecache, fullpath, return, error, vp,
1282 SDT_PROBE(vfs, namecache, fullpath, entry, vp, 0, 0, 0, 0);
1304 SDT_PROBE(vfs, namecache, fullpath, return,
1321 SDT_PROBE(vfs, namecache, fullpath, return,
1332 SDT_PROBE(vfs, namecache, fullpath, return, error,
1346 SDT_PROBE(vfs, namecache, fullpath, return, ENOMEM,
1356 SDT_PROBE(vfs, namecache, fullpath, return, 0, startvp, buf + buflen,
1365 struct namecache *ncp;
1387 struct namecache *ncp;
1429 * because it falls back to the ".." lookup if the namecache lookup fails.