Lines Matching refs:btrfs_root
521 struct btrfs_root *root;
700 struct btrfs_root *extent_root;
701 struct btrfs_root *tree_root;
702 struct btrfs_root *chunk_root;
703 struct btrfs_root *dev_root;
704 struct btrfs_root *fs_root;
705 struct btrfs_root *csum_root;
706 struct btrfs_root *quota_root;
707 struct btrfs_root *uuid_root;
708 struct btrfs_root *free_space_root;
711 struct btrfs_root *log_root_tree;
1118 struct btrfs_root { struct
1122 struct btrfs_root *log_root; argument
1123 struct btrfs_root *reloc_root; argument
1259 static inline u32 BTRFS_LEAF_DATA_SIZE(const struct btrfs_root *root) in BTRFS_LEAF_DATA_SIZE() argument
1264 static inline u32 BTRFS_MAX_ITEM_SIZE(const struct btrfs_root *root) in BTRFS_MAX_ITEM_SIZE()
1269 static inline u32 BTRFS_NODEPTRS_PER_BLOCK(const struct btrfs_root *root) in BTRFS_NODEPTRS_PER_BLOCK()
1276 static inline u32 BTRFS_MAX_INLINE_DATA_SIZE(const struct btrfs_root *root) in BTRFS_MAX_INLINE_DATA_SIZE()
1282 static inline u32 BTRFS_MAX_XATTR_SIZE(const struct btrfs_root *root) in BTRFS_MAX_XATTR_SIZE()
1346 btrfs_should_fragment_free_space(struct btrfs_root *root, in btrfs_should_fragment_free_space()
2093 static inline bool btrfs_root_readonly(struct btrfs_root *root) in btrfs_root_readonly()
2098 static inline bool btrfs_root_dead(struct btrfs_root *root) in btrfs_root_dead()
2306 static inline unsigned int leaf_data_end(struct btrfs_root *root, in leaf_data_end()
2535 u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes);
2537 static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root, in btrfs_calc_trans_metadata_size()
2547 static inline u64 btrfs_calc_trunc_metadata_size(struct btrfs_root *root, in btrfs_calc_trunc_metadata_size()
2554 struct btrfs_root *root);
2556 struct btrfs_root *root);
2565 struct btrfs_root *root, unsigned long count);
2566 int btrfs_async_run_delayed_refs(struct btrfs_root *root,
2568 int btrfs_lookup_data_extent(struct btrfs_root *root, u64 start, u64 len);
2570 struct btrfs_root *root, u64 bytenr,
2572 int btrfs_pin_extent(struct btrfs_root *root,
2574 int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
2576 int btrfs_exclude_logged_extents(struct btrfs_root *root,
2579 struct btrfs_root *root,
2588 struct btrfs_root *root, u64 parent,
2593 struct btrfs_root *root,
2597 struct btrfs_root *root,
2602 struct btrfs_root *root,
2605 int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes,
2608 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2610 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2613 struct btrfs_root *root,
2617 struct btrfs_root *root,
2621 int btrfs_free_reserved_extent(struct btrfs_root *root, u64 start, u64 len,
2623 int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root,
2626 struct btrfs_root *root);
2628 struct btrfs_root *root);
2630 struct btrfs_root *root,
2635 struct btrfs_root *root);
2637 struct btrfs_root *root);
2639 struct btrfs_root *root);
2640 int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr);
2642 int btrfs_read_block_groups(struct btrfs_root *root);
2643 int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr);
2645 struct btrfs_root *root, u64 bytes_used,
2652 struct btrfs_root *root, u64 group_start,
2658 struct btrfs_root *root);
2659 u64 btrfs_get_alloc_profile(struct btrfs_root *root, int data);
2688 struct btrfs_root *root);
2693 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
2697 void btrfs_subvolume_release_metadata(struct btrfs_root *root,
2705 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root,
2707 void btrfs_free_block_rsv(struct btrfs_root *root,
2710 int btrfs_block_rsv_add(struct btrfs_root *root,
2713 int btrfs_block_rsv_check(struct btrfs_root *root,
2715 int btrfs_block_rsv_refill(struct btrfs_root *root,
2724 void btrfs_block_rsv_release(struct btrfs_root *root,
2727 int btrfs_inc_block_group_ro(struct btrfs_root *root,
2729 void btrfs_dec_block_group_ro(struct btrfs_root *root,
2733 int btrfs_error_unpin_extent_range(struct btrfs_root *root,
2735 int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
2738 struct btrfs_root *root, u64 type);
2739 int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range);
2745 int btrfs_start_write_no_snapshoting(struct btrfs_root *root);
2746 void btrfs_end_write_no_snapshoting(struct btrfs_root *root);
2747 void btrfs_wait_for_snapshot_creation(struct btrfs_root *root);
2749 struct btrfs_root *root,
2758 int btrfs_previous_item(struct btrfs_root *root,
2761 int btrfs_previous_extent_item(struct btrfs_root *root,
2766 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
2767 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
2768 int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
2771 int btrfs_search_forward(struct btrfs_root *root, struct btrfs_key *min_key,
2780 typedef int (*btrfs_changed_cb_t)(struct btrfs_root *left_root,
2781 struct btrfs_root *right_root,
2787 int btrfs_compare_trees(struct btrfs_root *left_root,
2788 struct btrfs_root *right_root,
2791 struct btrfs_root *root, struct extent_buffer *buf,
2795 struct btrfs_root *root,
2798 int btrfs_block_can_be_shared(struct btrfs_root *root,
2800 void btrfs_extend_item(struct btrfs_root *root, struct btrfs_path *path,
2802 void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path,
2805 struct btrfs_root *root,
2810 struct btrfs_root *root,
2813 int btrfs_find_item(struct btrfs_root *fs_root, struct btrfs_path *path,
2815 int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
2818 int btrfs_search_old_slot(struct btrfs_root *root, struct btrfs_key *key,
2820 int btrfs_search_slot_for_read(struct btrfs_root *root,
2824 struct btrfs_root *root, struct extent_buffer *parent,
2835 int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2838 struct btrfs_root *root, in btrfs_del_item()
2844 void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path,
2847 int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root
2850 struct btrfs_root *root,
2855 struct btrfs_root *root, in btrfs_insert_empty_item()
2863 int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path);
2864 int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
2865 int btrfs_next_old_leaf(struct btrfs_root *root, struct btrfs_path *path,
2867 static inline int btrfs_next_old_item(struct btrfs_root *root, in btrfs_next_old_item()
2875 static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p) in btrfs_next_item()
2879 int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
2880 int __must_check btrfs_drop_snapshot(struct btrfs_root *root,
2884 struct btrfs_root *root,
2905 static inline int btrfs_need_cleaner_sleep(struct btrfs_root *root) in btrfs_need_cleaner_sleep()
2934 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
2938 struct btrfs_root *tree_root,
2942 struct btrfs_root *tree_root,
2945 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
2947 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root
2951 struct btrfs_root *root,
2954 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key,
2957 int btrfs_find_orphan_roots(struct btrfs_root *tree_root);
2962 struct btrfs_root *root);
2966 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
2969 struct btrfs_root *uuid_root, u8 *uuid, u8 type,
2976 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
2979 struct btrfs_root *root, const char *name,
2983 struct btrfs_root *root,
2989 struct btrfs_root *root,
2994 btrfs_search_dir_index_item(struct btrfs_root *root,
2998 struct btrfs_root *root,
3002 struct btrfs_root *root,
3007 struct btrfs_root *root,
3011 int verify_dir_item(struct btrfs_root *root,
3014 struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root,
3021 struct btrfs_root *root, u64 offset);
3023 struct btrfs_root *root, u64 offset);
3024 int btrfs_find_orphan_item(struct btrfs_root *root, u64 offset);
3028 struct btrfs_root *root,
3032 struct btrfs_root *root,
3036 struct btrfs_root *root,
3038 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root
3044 struct btrfs_root *root,
3058 struct btrfs_root *root, u64 bytenr, u64 len);
3059 int btrfs_lookup_bio_sums(struct btrfs_root *root, struct inode *inode,
3061 int btrfs_lookup_bio_sums_dio(struct btrfs_root *root, struct inode *inode,
3064 struct btrfs_root *root,
3070 struct btrfs_root *root,
3074 struct btrfs_root *root,
3076 int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode,
3078 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
3124 struct btrfs_root *root,
3131 struct btrfs_root *root,
3137 struct btrfs_root *root,
3141 int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput);
3147 struct btrfs_root *new_root,
3148 struct btrfs_root *parent_root,
3164 struct btrfs_root *root, int *was_new);
3169 struct btrfs_root *root,
3172 struct btrfs_root *root, struct inode *inode);
3174 int btrfs_orphan_cleanup(struct btrfs_root *root);
3176 struct btrfs_root *root);
3178 void btrfs_invalidate_inodes(struct btrfs_root *root);
3180 void btrfs_run_delayed_iputs(struct btrfs_root *root);
3222 struct btrfs_root *root, struct inode *inode,
3229 struct btrfs_root *root, struct inode *inode, u64 start,
3234 int btrfs_dirty_pages(struct btrfs_root *root, struct inode *inode,
3247 struct btrfs_root *root);
3259 int btrfs_parse_options(struct btrfs_root *root, char *options,
3616 int btrfs_relocate_block_group(struct btrfs_root *root, u64 group_start);
3618 struct btrfs_root *root);
3620 struct btrfs_root *root);
3621 int btrfs_recover_relocation(struct btrfs_root *root);
3624 struct btrfs_root *root, struct extent_buffer *buf,
3635 void btrfs_scrub_pause(struct btrfs_root *root);
3636 void btrfs_scrub_continue(struct btrfs_root *root);
3640 int btrfs_scrub_progress(struct btrfs_root *root, u64 devid,
3655 struct btrfs_root *root; /* tree to prefetch */
3662 struct reada_control *btrfs_reada_add(struct btrfs_root *root,