Lines Matching defs:direct
123 struct preftree direct; /* BTRFS_SHARED_[DATA|BLOCK]_REF_KEY */
131 * The share_count tracks prelim_refs (direct and indirect) having a
368 /* direct refs use root == 0, key == NULL */
374 return add_prelim_ref(fs_info, &preftrees->direct, 0, NULL, level,
395 struct rb_node **p = &preftrees->direct.root.rb_root.rb_node;
669 * We maintain three separate rbtrees: one for direct refs, one for
678 * direct tree (merging there too).
712 "BUG: direct ref found in indirect tree")) {
739 prelim_ref_insert(fs_info, &preftrees->direct, ref,
768 prelim_ref_insert(fs_info, &preftrees->direct,
773 * Now it's a direct ref, put it in the direct tree. We must
776 prelim_ref_insert(fs_info, &preftrees->direct, ref, NULL);
805 BUG_ON(ref->parent); /* should not be a direct ref */
1218 .direct = PREFTREE_INIT,
1343 node = rb_first_cached(&preftrees.direct.root);
1443 prelim_release(&preftrees.direct);
2664 * Handle direct tree backref
2780 * completely relying on direct backref (key->offset is parent