Lines Matching defs:vc
65 * Travels vc's directory entries and sets the pvno and nlink
70 struct chfs_vnode_cache *vc)
74 TAILQ_FOREACH_SAFE(fd, &vc->scan_dirents, fds, tmpfd) {
85 TAILQ_REMOVE(&vc->scan_dirents, fd, fds);
96 (unsigned long long)vc->vno);
98 child_vc->pvno = vc->vno;
102 vc->nlink++;
111 struct chfs_vnode_cache *vc,
118 dbg("vno: %llu\n", (unsigned long long)vc->vno);
121 nref = vc->dnode;
123 while (nref != (struct chfs_node_ref *)vc) {
129 vc->dnode = (struct chfs_node_ref *)vc;
130 nref = vc->dirents;
132 while (nref != (struct chfs_node_ref *)vc) {
138 vc->dirents = (struct chfs_node_ref *)vc;
139 if (!TAILQ_EMPTY(&vc->scan_dirents)) {
140 TAILQ_FOREACH_SAFE(fd, &vc->scan_dirents, fds, tmpfd) {
149 TAILQ_REMOVE(&vc->scan_dirents, fd, fds);
181 nref = vc->v;
182 while ((struct chfs_vnode_cache *)nref != vc) {
186 vc->v = (struct chfs_node_ref *)vc;
189 if (vc->vno != CHFS_ROOTINO)
190 vc->state = VNO_STATE_UNCHECKED;
211 struct chfs_vnode_cache *vc;
298 vc = chmp->chm_vnocache_hash[i];
299 while (vc) {
300 dbg("vc->vno: %llu\n", (unsigned long long)vc->vno);
301 if (!TAILQ_EMPTY(&vc->scan_dirents))
302 chfs_build_set_vnodecache_nlink(chmp, vc);
303 vc = vc->next;
309 vc = chmp->chm_vnocache_hash[i];
310 while (vc) {
311 if (vc->nlink) {
312 vc = vc->next;
317 vc, &unlinked);
318 vc = vc->next;
325 vc = chfs_vnode_cache_get(chmp, fd->vno);
327 if (vc) {
329 vc, &unlinked);
338 vc = chmp->chm_vnocache_hash[i];
339 while (vc) {
340 TAILQ_FOREACH_SAFE(fd, &vc->scan_dirents, fds, tmpfd) {
341 TAILQ_REMOVE(&vc->scan_dirents, fd, fds);
346 /* set state every non-VREG file's vc */
354 KASSERT(TAILQ_EMPTY(&vc->scan_dirents));
355 vc = vc->next;