Lines Matching defs:root

230 static int add_excluded_extent(struct btrfs_root *root,  in add_excluded_extent()
241 static void free_excluded_extents(struct btrfs_root *root, in free_excluded_extents()
255 static int exclude_super_stripes(struct btrfs_root *root, in exclude_super_stripes()
715 int btrfs_lookup_data_extent(struct btrfs_root *root, u64 start, u64 len) in btrfs_lookup_data_extent()
744 struct btrfs_root *root, u64 bytenr, in btrfs_lookup_extent_info()
981 struct btrfs_root *root, in convert_extent_item_v0()
1097 struct btrfs_root *root, in lookup_extent_data_ref()
1184 struct btrfs_root *root, in insert_extent_data_ref()
1263 struct btrfs_root *root, in remove_extent_data_ref()
1320 static noinline u32 extent_data_ref_count(struct btrfs_root *root, in extent_data_ref_count()
1363 struct btrfs_root *root, in lookup_tree_block_ref()
1396 struct btrfs_root *root, in insert_tree_block_ref()
1471 struct btrfs_root *root, in lookup_inline_extent_backref()
1663 void setup_inline_extent_backref(struct btrfs_root *root, in setup_inline_extent_backref()
1724 struct btrfs_root *root, in lookup_extent_backref()
1755 void update_inline_extent_backref(struct btrfs_root *root, in update_inline_extent_backref()
1820 struct btrfs_root *root, in insert_inline_extent_backref()
1847 struct btrfs_root *root, in insert_extent_backref()
1866 struct btrfs_root *root, in remove_extent_backref()
1893 int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, in btrfs_discard_extent()
1943 struct btrfs_root *root, in btrfs_inc_extent_ref()
1969 struct btrfs_root *root, in __btrfs_inc_extent_ref()
2059 struct btrfs_root *root, in run_delayed_data_ref()
2126 struct btrfs_root *root, in run_delayed_extent_op()
2219 struct btrfs_root *root, in run_delayed_tree_ref()
2275 struct btrfs_root *root, in run_one_delayed_ref()
2355 struct btrfs_root *root, in __btrfs_run_delayed_refs()
2582 static u64 find_middle(struct rb_root *root) in find_middle()
2619 static inline u64 heads_to_leaves(struct btrfs_root *root, u64 heads) in heads_to_leaves()
2639 u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes) in btrfs_csum_bytes_to_leaves()
2655 struct btrfs_root *root) in btrfs_check_space_for_delayed_refs()
2691 struct btrfs_root *root) in btrfs_should_throttle_delayed_refs()
2711 struct btrfs_root *root; member
2752 int btrfs_async_run_delayed_refs(struct btrfs_root *root, in btrfs_async_run_delayed_refs()
2796 struct btrfs_root *root, unsigned long count) in btrfs_run_delayed_refs()
2875 struct btrfs_root *root, in btrfs_set_disk_extent_flags()
2900 struct btrfs_root *root, in check_delayed_ref()
2967 struct btrfs_root *root, in check_committed_ref()
3038 struct btrfs_root *root, in btrfs_cross_ref_exist()
3074 struct btrfs_root *root, in __btrfs_mod_ref()
3148 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_inc_ref()
3154 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_dec_ref()
3161 struct btrfs_root *root, in write_one_cache_group()
3188 next_block_group(struct btrfs_root *root, in next_block_group()
3221 struct btrfs_root *root = block_group->fs_info->tree_root; in cache_save_setup() local
3357 struct btrfs_root *root) in btrfs_setup_space_cache()
3395 struct btrfs_root *root) in btrfs_start_dirty_block_groups()
3555 struct btrfs_root *root) in btrfs_write_dirty_block_groups()
3644 int btrfs_extent_readonly(struct btrfs_root *root, u64 bytenr) in btrfs_extent_readonly()
3797 static u64 btrfs_reduce_alloc_profile(struct btrfs_root *root, u64 flags) in btrfs_reduce_alloc_profile()
3846 static u64 get_alloc_profile(struct btrfs_root *root, u64 orig_flags) in get_alloc_profile()
3866 u64 btrfs_get_alloc_profile(struct btrfs_root *root, int data) in btrfs_get_alloc_profile()
3889 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_check_data_free_space() local
4027 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_free_reserved_data_space() local
4060 static int should_alloc_chunk(struct btrfs_root *root, in should_alloc_chunk()
4097 static u64 get_system_chunk_thresh(struct btrfs_root *root, u64 type) in get_system_chunk_thresh()
4116 struct btrfs_root *root, u64 type) in check_system_chunk()
4247 static int can_overcommit(struct btrfs_root *root, in can_overcommit()
4304 static void btrfs_writeback_inodes_sb_nr(struct btrfs_root *root, in btrfs_writeback_inodes_sb_nr()
4326 static inline int calc_reclaim_items_nr(struct btrfs_root *root, u64 to_reclaim) in calc_reclaim_items_nr()
4343 static void shrink_delalloc(struct btrfs_root *root, u64 to_reclaim, u64 orig, in shrink_delalloc()
4431 static int may_commit_transaction(struct btrfs_root *root, in may_commit_transaction()
4482 static int flush_space(struct btrfs_root *root, in flush_space()
4536 btrfs_calc_reclaim_metadata_size(struct btrfs_root *root, in btrfs_calc_reclaim_metadata_size()
4659 static int reserve_metadata_bytes(struct btrfs_root *root, in reserve_metadata_bytes()
4817 const struct btrfs_root *root) in get_block_rsv()
4955 struct btrfs_block_rsv *btrfs_alloc_block_rsv(struct btrfs_root *root, in btrfs_alloc_block_rsv()
4971 void btrfs_free_block_rsv(struct btrfs_root *root, in btrfs_free_block_rsv()
4985 int btrfs_block_rsv_add(struct btrfs_root *root, in btrfs_block_rsv_add()
5003 int btrfs_block_rsv_check(struct btrfs_root *root, in btrfs_block_rsv_check()
5021 int btrfs_block_rsv_refill(struct btrfs_root *root, in btrfs_block_rsv_refill()
5058 void btrfs_block_rsv_release(struct btrfs_root *root, in btrfs_block_rsv_release()
5183 struct btrfs_root *root) in btrfs_trans_release_metadata()
5201 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_reserve_metadata() local
5218 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_orphan_release_metadata() local
5239 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
5278 void btrfs_subvolume_release_metadata(struct btrfs_root *root, in btrfs_subvolume_release_metadata()
5348 struct btrfs_root *root = BTRFS_I(inode)->root; in calc_csum_metadata_size() local
5375 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_delalloc_reserve_metadata() local
5540 struct btrfs_root *root = BTRFS_I(inode)->root; in btrfs_delalloc_release_metadata() local
5616 struct btrfs_root *root, u64 bytenr, in update_block_group()
5720 static u64 first_logical_byte(struct btrfs_root *root, u64 search_start) in first_logical_byte()
5742 static int pin_down_extent(struct btrfs_root *root, in pin_down_extent()
5767 int btrfs_pin_extent(struct btrfs_root *root, in btrfs_pin_extent()
5784 int btrfs_pin_extent_for_log_replay(struct btrfs_root *root, in btrfs_pin_extent_for_log_replay()
5810 static int __exclude_logged_extent(struct btrfs_root *root, u64 start, u64 num_bytes) in __exclude_logged_extent()
5946 struct btrfs_root *root) in btrfs_prepare_extent_commit()
5977 static int unpin_extent_range(struct btrfs_root *root, u64 start, u64 end, in unpin_extent_range()
6040 struct btrfs_root *root) in btrfs_finish_extent_commit()
6100 struct btrfs_root *root, in __btrfs_free_extent()
6389 struct btrfs_root *root, u64 bytenr) in check_ref_cleanup()
6455 struct btrfs_root *root, in btrfs_free_tree_block()
6513 int btrfs_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_free_extent()
6725 struct btrfs_root *root = orig_root->fs_info->extent_root; in find_free_extent() local
7172 int btrfs_reserve_extent(struct btrfs_root *root, in btrfs_reserve_extent()
7209 static int __btrfs_free_reserved_extent(struct btrfs_root *root, in __btrfs_free_reserved_extent()
7239 int btrfs_free_reserved_extent(struct btrfs_root *root, in btrfs_free_reserved_extent()
7245 int btrfs_free_and_pin_reserved_extent(struct btrfs_root *root, in btrfs_free_and_pin_reserved_extent()
7252 struct btrfs_root *root, in alloc_reserved_file_extent()
7330 struct btrfs_root *root, in alloc_reserved_tree_block()
7421 struct btrfs_root *root, in btrfs_alloc_reserved_file_extent()
7442 struct btrfs_root *root, in btrfs_alloc_logged_file_extent()
7473 btrfs_init_new_buffer(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_init_new_buffer()
7514 struct btrfs_root *root, u32 blocksize) in use_block_rsv()
7581 struct btrfs_root *root, in btrfs_alloc_tree_block()
7684 struct btrfs_root *root, in reada_walk_down()
7765 struct btrfs_root *root, in account_leaf_items()
7817 static int adjust_slots_upwards(struct btrfs_root *root, in adjust_slots_upwards()
7869 struct btrfs_root *root, in account_shared_subtree()
7985 struct btrfs_root *root, in walk_down_proc()
8066 struct btrfs_root *root, in do_walk_down()
8222 struct btrfs_root *root, in walk_up_proc()
8323 struct btrfs_root *root, in walk_down_tree()
8355 struct btrfs_root *root, in walk_up_tree()
8400 int btrfs_drop_snapshot(struct btrfs_root *root, in btrfs_drop_snapshot()
8647 struct btrfs_root *root, in btrfs_drop_subtree()
8711 static u64 update_block_group_flags(struct btrfs_root *root, u64 flags) in update_block_group_flags()
8805 int btrfs_set_block_group_ro(struct btrfs_root *root, in btrfs_set_block_group_ro()
8880 struct btrfs_root *root, u64 type) in btrfs_force_chunk_alloc()
8928 void btrfs_set_block_group_rw(struct btrfs_root *root, in btrfs_set_block_group_rw()
8953 int btrfs_can_relocate(struct btrfs_root *root, u64 bytenr) in btrfs_can_relocate()
9081 static int find_first_block_group(struct btrfs_root *root, in find_first_block_group()
9283 btrfs_create_block_group_cache(struct btrfs_root *root, u64 start, u64 size) in btrfs_create_block_group_cache()
9322 int btrfs_read_block_groups(struct btrfs_root *root) in btrfs_read_block_groups()
9501 struct btrfs_root *root) in btrfs_create_pending_block_groups()
9532 struct btrfs_root *root, u64 bytes_used, in btrfs_make_block_group()
9621 struct btrfs_root *root, u64 group_start, in btrfs_remove_block_group()
9918 struct btrfs_root *root = fs_info->extent_root; in btrfs_delete_unused_bgs() local
10078 int btrfs_error_unpin_extent_range(struct btrfs_root *root, u64 start, u64 end) in btrfs_error_unpin_extent_range()
10083 int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range) in btrfs_trim_fs()
10153 void btrfs_end_write_no_snapshoting(struct btrfs_root *root) in btrfs_end_write_no_snapshoting()
10165 int btrfs_start_write_no_snapshoting(struct btrfs_root *root) in btrfs_start_write_no_snapshoting()