Lines Matching refs:nref

108 	struct chfs_node_ref *nref;  in chfs_scan_check_vnode()  local
140 nref = chfs_alloc_node_ref(cheb); in chfs_scan_check_vnode()
142 nref->nref_offset = ofs; in chfs_scan_check_vnode()
144 KASSERT(nref->nref_lnr == cheb->lnr); in chfs_scan_check_vnode()
150 chfs_add_vnode_ref_to_vc(chmp, vc, nref); in chfs_scan_check_vnode()
161 chfs_add_vnode_ref_to_vc(chmp, vc, nref); in chfs_scan_check_vnode()
184 struct chfs_node_ref *prev, *nref; in chfs_scan_mark_dirent_obsolete() local
186 nref = fd->nref; in chfs_scan_mark_dirent_obsolete()
187 cheb = &chmp->chm_blocks[fd->nref->nref_lnr]; in chfs_scan_mark_dirent_obsolete()
191 if (prev && prev == nref) { in chfs_scan_mark_dirent_obsolete()
195 if (prev->nref_next == nref) { in chfs_scan_mark_dirent_obsolete()
196 prev->nref_next = nref->nref_next; in chfs_scan_mark_dirent_obsolete()
227 cheb = &chmp->chm_blocks[new->nref->nref_lnr]; in chfs_add_fd_to_list()
244 if (fd->nref) { in chfs_add_fd_to_list()
247 oldcheb = &chmp->chm_blocks[fd->nref->nref_lnr]; in chfs_add_fd_to_list()
305 fd->nref = chfs_alloc_node_ref(cheb); in chfs_scan_check_dirent_node()
306 if (!fd->nref) in chfs_scan_check_dirent_node()
309 KASSERT(fd->nref->nref_lnr == cheb->lnr); in chfs_scan_check_dirent_node()
333 fd->nref->nref_offset = ofs; in chfs_scan_check_dirent_node()
336 chfs_add_node_to_list(chmp, parentvc, fd->nref, &parentvc->dirents); in chfs_scan_check_dirent_node()
357 struct chfs_node_ref *nref; in chfs_scan_check_data_node() local
373 nref = chfs_alloc_node_ref(cheb); in chfs_scan_check_data_node()
374 if (!nref) in chfs_scan_check_data_node()
377 nref->nref_offset = CHFS_GET_OFS(ofs) | CHFS_UNCHECKED_NODE_MASK; in chfs_scan_check_data_node()
379 KASSERT(nref->nref_lnr == cheb->lnr); in chfs_scan_check_data_node()
389 chfs_add_node_to_list(chmp, vc, nref, &vc->dnode); in chfs_scan_check_data_node()
436 struct chfs_node_ref *nref; in chfs_scan_eraseblock() local
567 nref = chfs_alloc_node_ref(cheb); in chfs_scan_eraseblock()
568 nref->nref_offset = ofs - CHFS_NODE_HDR_SIZE; in chfs_scan_eraseblock()
569 nref->nref_offset = CHFS_GET_OFS(nref->nref_offset) | in chfs_scan_eraseblock()