Lines Matching defs:root
239 __le64 root;
243 /* this will help find the new super based on the log root */
349 * btrfs_paths remember the path taken from the root down to the leaf.
417 struct rb_root root;
449 struct rb_root root;
597 /* the log root tree is a directory of all the other log roots */
618 * block reservation for extent, checksum, root tree and
923 /* next backup root to be overwritten */
981 * The state of btrfs root
987 * first time the root is added to each transaction. So IN_TRANS_SETUP
993 * Set if tree blocks of this root can be shared by other roots.
1028 /* Mark dead root stored on device whose cleanup needs to be resumed */
1030 /* The root has a log tree. Used only for subvolume roots. */
1049 * and for the extent tree extent_root root.
1082 /* Used only for log trees of subvolumes, not for the log root tree */
1085 /* Used only for log trees of subvolumes, not for the log root tree */
1123 * right now this just gets used so that a root has its own devid
1159 * Not empty if this subvolume root has gone through tree block swap
1173 * destination inode belonging to this root. Protected by the lock
1739 root, 64);
2114 static inline bool btrfs_root_readonly(const struct btrfs_root *root)
2116 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_RDONLY)) != 0;
2119 static inline bool btrfs_root_dead(const struct btrfs_root *root)
2121 return (root->root_item.flags & cpu_to_le64(BTRFS_ROOT_SUBVOL_DEAD)) != 0;
2263 BTRFS_SETGET_STACK_FUNCS(super_root, struct btrfs_super_block, root, 64);
2566 int btrfs_cross_ref_exist(struct btrfs_root *root,
2569 struct btrfs_root *root,
2576 struct btrfs_root *root,
2580 struct btrfs_root *root, u64 owner,
2586 int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes,
2589 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2591 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2667 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
2670 void btrfs_subvolume_release_metadata(struct btrfs_root *root,
2685 int btrfs_start_write_no_snapshotting(struct btrfs_root *root);
2686 void btrfs_end_write_no_snapshotting(struct btrfs_root *root);
2687 void btrfs_wait_for_snapshot_creation(struct btrfs_root *root);
2693 int btrfs_previous_item(struct btrfs_root *root,
2696 int btrfs_previous_extent_item(struct btrfs_root *root,
2701 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
2702 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
2705 int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key,
2712 struct btrfs_root *root, struct extent_buffer *buf,
2717 struct btrfs_root *root,
2720 int btrfs_block_can_be_shared(struct btrfs_root *root,
2725 struct btrfs_root *root,
2730 struct btrfs_root *root,
2735 int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2738 int btrfs_search_old_slot(struct btrfs_root *root, const struct btrfs_key *key,
2740 int btrfs_search_slot_for_read(struct btrfs_root *root,
2745 struct btrfs_root *root, struct extent_buffer *parent,
2752 int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2755 struct btrfs_root *root,
2758 return btrfs_del_items(trans, root, path, path->slots[0], 1);
2761 void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
2764 int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2767 struct btrfs_root *root,
2773 struct btrfs_root *root,
2778 return btrfs_insert_empty_items(trans, root, path, key, &data_size, 1);
2781 int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
2782 int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
2783 int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
2785 static inline int btrfs_next_old_item(struct btrfs_root *root,
2790 return btrfs_next_old_leaf(root, p, time_seq);
2793 static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p)
2795 return btrfs_next_old_item(root, p, 0);
2798 int __must_check btrfs_drop_snapshot(struct btrfs_root *root, int update_ref,
2801 struct btrfs_root *root,
2832 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
2834 /* root-item.c */
2843 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2847 struct btrfs_root *root,
2850 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key,
2858 struct btrfs_root *root);
2868 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
2874 struct btrfs_root *root,
2880 struct btrfs_root *root,
2885 btrfs_search_dir_index_item(struct btrfs_root *root,
2889 struct btrfs_root *root,
2893 struct btrfs_root *root,
2898 struct btrfs_root *root,
2909 struct btrfs_root *root, u64 offset);
2911 struct btrfs_root *root, u64 offset);
2912 int btrfs_find_orphan_item(struct btrfs_root *root, u64 offset);
2916 struct btrfs_root *root,
2920 struct btrfs_root *root,
2924 struct btrfs_root *root,
2927 *root, struct btrfs_path *path,
2932 struct btrfs_root *root,
2947 struct btrfs_root *root, u64 bytenr, u64 len);
2951 struct btrfs_root *root,
2957 struct btrfs_root *root,
2961 struct btrfs_root *root,
2965 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
2990 void __btrfs_del_delalloc_inode(struct btrfs_root *root,
2995 struct btrfs_root *root,
3005 struct btrfs_root *root,
3009 int btrfs_start_delalloc_snapshot(struct btrfs_root *root);
3041 struct btrfs_root *root, struct btrfs_path *path);
3042 struct inode *btrfs_iget(struct super_block *s, u64 ino, struct btrfs_root *root);
3047 struct btrfs_root *root,
3050 struct btrfs_root *root, struct inode *inode);
3053 int btrfs_orphan_cleanup(struct btrfs_root *root);
3103 struct btrfs_root *root, struct btrfs_inode *inode,
3110 struct btrfs_root *root, struct inode *inode, u64 start,
3129 struct btrfs_root *root);
3518 struct btrfs_root *root);
3520 struct btrfs_root *root);
3521 int btrfs_recover_relocation(struct btrfs_root *root);
3524 struct btrfs_root *root, struct extent_buffer *buf,
3533 int btrfs_should_ignore_reloc_root(struct btrfs_root *root);
3548 locks_root->root = RB_ROOT;
3571 struct reada_control *btrfs_reada_add(struct btrfs_root *root,