Lines Matching refs:dup

126  * For DB_INCR, returns true if the dup was added to the tree.
127 * For DB_DECR, returns true if the dup was in the tree.
133 fragment_t *dup;
148 dup = avl_find(&dup_frags, (void *)&key, &where);
149 if ((dup == NULL) & (flags & DB_CREATE)) {
150 dup = alloc_dup(fragno);
151 avl_insert(&dup_frags, (void *)dup, where);
154 if (dup != NULL) {
160 added = increment_claimant(dup, ino, lfn);
163 * Note that dup may be invalidated by this call.
165 removed = decrement_claimant(dup, ino, lfn);
173 return (added || removed || (dup != NULL));
197 fragment_t *dup;
207 dup = avl_first(&dup_frags);
208 while (dup != NULL) {
209 if (avl_numnodes(&dup->fr_claimants) > 1) {
213 dup = AVL_NEXT(&dup_frags, dup);
243 reference_t *dup;
247 dup = avl_first(&inode->id_fragments);
248 first_lfn = last_lfn = dup->ref_lfn;
249 first_pfn = last_pfn = dup->ref_pfn;
250 while ((dup = AVL_NEXT(&inode->id_fragments, dup)) != NULL) {
251 if (((last_lfn + 1) != dup->ref_lfn) ||
252 ((last_pfn + 1) != dup->ref_pfn)) {
255 first_lfn = last_lfn = dup->ref_lfn;
256 first_pfn = last_pfn = dup->ref_pfn;
401 increment_claimant(fragment_t *dup, fsck_ino_t ino, daddr32_t lfn)
410 claimant = avl_find(&dup->fr_claimants, &key, &where);
415 avl_insert(&dup->fr_claimants, (void *)claimant, where);
440 decrement_claimant(fragment_t *dup, fsck_ino_t ino, daddr32_t lfn)
449 claimant = avl_find(&dup->fr_claimants, &key, &where);
451 avl_remove(&dup->fr_claimants, claimant);
452 if (avl_numnodes(&dup->fr_claimants) == 0) {
453 avl_destroy(&dup->fr_claimants);
454 avl_remove(&dup_frags, (void *)dup);
455 free((void *)dup);