Lines Matching defs:root
228 static int add_excluded_extent(struct btrfs_root *root, in add_excluded_extent()
239 static void free_excluded_extents(struct btrfs_root *root, in free_excluded_extents()
253 static int exclude_super_stripes(struct btrfs_root *root, in exclude_super_stripes()
335 static void fragment_free_space(struct btrfs_root *root, in fragment_free_space()
777 int btrfs_lookup_data_extent(struct btrfs_root *root, u64 start, u64 len) in btrfs_lookup_data_extent()
806 struct btrfs_root *root, u64 bytenr, in btrfs_lookup_extent_info()
1043 struct btrfs_root *root, in convert_extent_item_v0()
1159 struct btrfs_root *root, in lookup_extent_data_ref()
1246 struct btrfs_root *root, in insert_extent_data_ref()
1325 struct btrfs_root *root, in remove_extent_data_ref()
1424 struct btrfs_root *root, in lookup_tree_block_ref()
1457 struct btrfs_root *root, in insert_tree_block_ref()
1532 struct btrfs_root *root, in lookup_inline_extent_backref()
1724 void setup_inline_extent_backref(struct btrfs_root *root, in setup_inline_extent_backref()
1785 struct btrfs_root *root, in lookup_extent_backref()
1816 void update_inline_extent_backref(struct btrfs_root *root, in update_inline_extent_backref()
1881 struct btrfs_root *root, in insert_inline_extent_backref()
1908 struct btrfs_root *root, in insert_extent_backref()
1927 struct btrfs_root *root, in remove_extent_backref()
2021 int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, in btrfs_discard_extent()
2073 struct btrfs_root *root, in btrfs_inc_extent_ref()
2098 struct btrfs_root *root, in __btrfs_inc_extent_ref()
2158 struct btrfs_root *root, in run_delayed_data_ref()
2223 struct btrfs_root *root, in run_delayed_extent_op()
2316 struct btrfs_root *root, in run_delayed_tree_ref()
2370 struct btrfs_root *root, in run_one_delayed_ref()
2454 struct btrfs_root *root, in __btrfs_run_delayed_refs()
2686 static u64 find_middle(struct rb_root *root) in find_middle()
2723 static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads) in heads_to_leaves()
2743 u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
2759 struct btrfs_root *root) in btrfs_check_space_for_delayed_refs()
2795 struct btrfs_root *root) in btrfs_should_throttle_delayed_refs()
2815 struct btrfs_root *root; member
2856 int btrfs_async_run_delayed_refs(struct btrfs_root *root, in btrfs_async_run_delayed_refs()
2900 struct btrfs_root *root, unsigned long count) in btrfs_run_delayed_refs()
2979 struct btrfs_root *root, in btrfs_set_disk_extent_flags()
3004 struct btrfs_root *root, in check_delayed_ref()
3066 struct btrfs_root *root, in check_committed_ref()
3137 struct btrfs_root *root, in btrfs_cross_ref_exist()
3173 struct btrfs_root *root, in __btrfs_mod_ref()
3246 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_inc_ref()
3252 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_dec_ref()
3259 struct btrfs_root *root, in write_one_cache_group()
3286 next_block_group(struct btrfs_root *root, in next_block_group()
3319 struct btrfs_root *root = block_group->fs_info->tree_root; in cache_save_setup() local
3474 struct btrfs_root *root) in btrfs_setup_space_cache()
3512 struct btrfs_root *root) in btrfs_start_dirty_block_groups()
3672 struct btrfs_root *root) in btrfs_write_dirty_block_groups()
3761 int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr) in btrfs_extent_readonly()
3916 static u64 btrfs_reduce_alloc_profile(struct btrfs_root *root, u64 flags) in btrfs_reduce_alloc_profile()
3961 static u64 get_alloc_profile(struct btrfs_root *root, u64 orig_flags) in get_alloc_profile()
3981 u64 btrfs_get_alloc_profile(struct btrfs_root *root, int data) in btrfs_get_alloc_profile()
4000 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_alloc_data_chunk_ondemand() local
4137 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_check_data_free_space() local
4170 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_free_reserved_data_space_noquota() local
4220 static int should_alloc_chunk(struct btrfs_root *root, in should_alloc_chunk()
4257 static u64 get_profile_num_devs(struct btrfs_root *root, u64 type) in get_profile_num_devs()
4280 struct btrfs_root *root, in check_system_chunk()
4459 static int can_overcommit(struct btrfs_root *root, in can_overcommit()
4516 static void btrfs_writeback_inodes_sb_nr(struct btrfs_root *root, in btrfs_writeback_inodes_sb_nr()
4538 static inline int calc_reclaim_items_nr(struct btrfs_root *root, u64 to_reclaim) in calc_reclaim_items_nr()
4555 static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig, in shrink_delalloc()
4643 static int may_commit_transaction(struct btrfs_root *root, in may_commit_transaction()
4694 static int flush_space(struct btrfs_root *root, in flush_space()
4748 btrfs_calc_reclaim_metadata_size(struct btrfs_root *root, in btrfs_calc_reclaim_metadata_size()
4871 static int reserve_metadata_bytes(struct btrfs_root *root, in reserve_metadata_bytes()
5029 const struct btrfs_root *root) in get_block_rsv()
5163 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root, in btrfs_alloc_block_rsv()
5179 void btrfs_free_block_rsv(struct btrfs_root *root, in btrfs_free_block_rsv()
5193 int btrfs_block_rsv_add(struct btrfs_root *root, in btrfs_block_rsv_add()
5211 int btrfs_block_rsv_check(struct btrfs_root *root, in btrfs_block_rsv_check()
5229 int btrfs_block_rsv_refill(struct btrfs_root *root, in btrfs_block_rsv_refill()
5266 void btrfs_block_rsv_release(struct btrfs_root *root, in btrfs_block_rsv_release()
5391 struct btrfs_root *root) in btrfs_trans_release_metadata()
5427 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_reserve_metadata() local
5444 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_release_metadata() local
5465 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
5502 void btrfs_subvolume_release_metadata(struct btrfs_root *root, in btrfs_subvolume_release_metadata()
5572 struct btrfs_root *root = BTRFS_I(inode)->root; in calc_csum_metadata_size() local
5599 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_delalloc_reserve_metadata() local
5764 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_delalloc_release_metadata() local
5848 struct btrfs_root *root, u64 bytenr, in update_block_group()
5955 static u64 first_logical_byte(struct btrfs_root *root, u64 search_start) in first_logical_byte()
5977 static int pin_down_extent(struct btrfs_root *root, in pin_down_extent()
6002 int btrfs_pin_extent(struct btrfs_root *root, in btrfs_pin_extent()
6019 int btrfs_pin_extent_for_log_replay(struct btrfs_root *root, in btrfs_pin_extent_for_log_replay()
6045 static int __exclude_logged_extent(struct btrfs_root *root, u64 start, u64 num_bytes) in __exclude_logged_extent()
6181 struct btrfs_root *root) in btrfs_prepare_extent_commit()
6217 fetch_cluster_info(struct btrfs_root *root, struct btrfs_space_info *space_info, in fetch_cluster_info()
6240 static int unpin_extent_range(struct btrfs_root *root, u64 start, u64 end, in unpin_extent_range()
6327 struct btrfs_root *root) in btrfs_finish_extent_commit()
6414 struct btrfs_root *root, in __btrfs_free_extent()
6687 struct btrfs_root *root, u64 bytenr) in check_ref_cleanup()
6753 struct btrfs_root *root, in btrfs_free_tree_block()
6811 int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_free_extent()
7023 struct btrfs_root *root = orig_root->fs_info->extent_root; in find_free_extent() local
7538 int btrfs_reserve_extent(struct btrfs_root *root, in btrfs_reserve_extent()
7575 static int __btrfs_free_reserved_extent(struct btrfs_root *root, in __btrfs_free_reserved_extent()
7605 int btrfs_free_reserved_extent(struct btrfs_root *root, in btrfs_free_reserved_extent()
7611 int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root, in btrfs_free_and_pin_reserved_extent()
7618 struct btrfs_root *root, in alloc_reserved_file_extent()
7689 struct btrfs_root *root, in alloc_reserved_tree_block()
7771 struct btrfs_root *root, in btrfs_alloc_reserved_file_extent()
7794 struct btrfs_root *root, in btrfs_alloc_logged_file_extent()
7825 btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_init_new_buffer()
7866 struct btrfs_root *root, u32 blocksize) in use_block_rsv()
7930 struct btrfs_root *root, in btrfs_alloc_tree_block()
8033 struct btrfs_root *root, in reada_walk_down()
8118 struct btrfs_root *root, u64 bytenr, in record_one_subtree_extent()
8142 struct btrfs_root *root, in account_leaf_items()
8195 static int adjust_slots_upwards(struct btrfs_root *root, in adjust_slots_upwards()
8247 struct btrfs_root *root, in account_shared_subtree()
8362 struct btrfs_root *root, in walk_down_proc()
8443 struct btrfs_root *root, in do_walk_down()
8602 struct btrfs_root *root, in walk_up_proc()
8704 struct btrfs_root *root, in walk_down_tree()
8736 struct btrfs_root *root, in walk_up_tree()
8781 int btrfs_drop_snapshot(struct btrfs_root *root, in btrfs_drop_snapshot()
9002 struct btrfs_root *root, in btrfs_drop_subtree()
9066 static u64 update_block_group_flags(struct btrfs_root *root, u64 flags) in update_block_group_flags()
9160 int btrfs_inc_block_group_ro(struct btrfs_root *root, in btrfs_inc_block_group_ro()
9233 struct btrfs_root *root, u64 type) in btrfs_force_chunk_alloc()
9281 void btrfs_dec_block_group_ro(struct btrfs_root *root, in btrfs_dec_block_group_ro()
9308 int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr) in btrfs_can_relocate()
9436 static int find_first_block_group(struct btrfs_root *root, in find_first_block_group()
9638 btrfs_create_block_group_cache(struct btrfs_root *root, u64 start, u64 size) in btrfs_create_block_group_cache()
9677 int btrfs_read_block_groups(struct btrfs_root *root) in btrfs_read_block_groups()
9856 struct btrfs_root *root) in btrfs_create_pending_block_groups()
9890 struct btrfs_root *root, u64 bytes_used, in btrfs_make_block_group()
10004 struct btrfs_root *root, u64 group_start, in btrfs_remove_block_group()
10347 struct btrfs_root *root = fs_info->extent_root; in btrfs_delete_unused_bgs() local
10545 int btrfs_error_unpin_extent_range(struct btrfs_root *root, u64 start, u64 end) in btrfs_error_unpin_extent_range()
10637 int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range) in btrfs_trim_fs()
10721 void btrfs_end_write_no_snapshoting(struct btrfs_root *root) in btrfs_end_write_no_snapshoting()
10732 int btrfs_start_write_no_snapshoting(struct btrfs_root *root) in btrfs_start_write_no_snapshoting()