Lines Matching defs:root
18 * Used to keep track the roots and number of refs each root has for a given
47 * action so we can account for the history properly, and we record the root we
53 u64 root;
78 static struct block_entry *insert_block_entry(struct rb_root *root,
81 struct rb_node **p = &root->rb_node;
97 rb_insert_color(&be->node, root);
101 static struct block_entry *lookup_block_entry(struct rb_root *root, u64 bytenr)
106 n = root->rb_node;
119 static struct root_entry *insert_root_entry(struct rb_root *root,
122 struct rb_node **p = &root->rb_node;
138 rb_insert_color(&re->node, root);
164 static struct ref_entry *insert_ref_entry(struct rb_root *root,
167 struct rb_node **p = &root->rb_node;
185 rb_insert_color(&ref->node, root);
190 static struct root_entry *lookup_root_entry(struct rb_root *root, u64 objectid)
195 n = root->rb_node;
424 btrfs_err(fs_info, "missing root in new block entry?");
500 static int process_leaf(struct btrfs_root *root,
504 struct btrfs_fs_info *fs_info = root->fs_info;
555 static int walk_down_tree(struct btrfs_root *root, struct btrfs_path *path,
573 ret = process_leaf(root, path, bytenr, num_bytes,
613 " Ref action %d, root %llu, ref_root %llu, parent %llu, owner %llu, offset %llu, num_refs %llu",
614 ra->action, ra->root, ra->ref.root_objectid, ra->ref.parent,
639 " ref root %llu, parent %llu, owner %llu, offset %llu, num_refs %llu",
646 btrfs_err(fs_info, " root entry %llu, num_refs %llu",
722 ra->root = generic_ref->real_root;
731 * For subvol_create we'll just pass in whatever the parent root
732 * is and the new root objectid, so let's not treat the passed
733 * in root as if it really has a ref for this bytenr.
776 * This is the root that is modifying us, so it's the
822 "dropping a ref for a existing root that doesn't have a ref on the block");
849 "dropping a ref for a root that doesn't have a ref on the block");
867 btrfs_err(fs_info, "failed to find root %llu for %llu",