/fs/btrfs/ |
D | disk-io.h | 47 struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, 49 void readahead_tree_block(struct btrfs_root *root, u64 bytenr); 50 int reada_tree_block_flagged(struct btrfs_root *root, u64 bytenr, 52 struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, 59 void close_ctree(struct btrfs_root *root); 61 struct btrfs_root *root, int max_mirrors); 65 int btrfs_commit_super(struct btrfs_root *root); 68 struct btrfs_root *btrfs_read_fs_root(struct btrfs_root *tree_root, 70 int btrfs_init_fs_root(struct btrfs_root *root); 71 struct btrfs_root *btrfs_lookup_fs_root(struct btrfs_fs_info *fs_info, [all …]
|
D | transaction.h | 131 struct btrfs_root *root; 141 struct btrfs_root *root; 143 struct btrfs_root *snap; 189 struct btrfs_root *root); 190 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, 193 struct btrfs_root *root, 197 struct btrfs_root *root, 199 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root); 200 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root); 201 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root); [all …]
|
D | ctree.h | 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; [all …]
|
D | free-space-cache.h | 54 struct inode *lookup_free_space_inode(struct btrfs_root *root, 57 int create_free_space_inode(struct btrfs_root *root, 62 int btrfs_check_trunc_cache_free_space(struct btrfs_root *root, 64 int btrfs_truncate_free_space_cache(struct btrfs_root *root, 70 int btrfs_wait_cache_io(struct btrfs_root *root, 75 int btrfs_write_out_cache(struct btrfs_root *root, 79 struct inode *lookup_free_ino_inode(struct btrfs_root *root, 81 int create_free_ino_inode(struct btrfs_root *root, 85 struct btrfs_root *root); 86 int btrfs_write_out_ino_cache(struct btrfs_root *root, [all …]
|
D | delayed-inode.h | 58 struct btrfs_root *root; 102 struct btrfs_root *root, const char *name, 108 struct btrfs_root *root, struct inode *dir, 114 struct btrfs_root *root); 116 struct btrfs_root *root, int nr); 118 void btrfs_balance_delayed_items(struct btrfs_root *root); 129 struct btrfs_root *root, struct inode *inode); 134 void btrfs_kill_all_delayed_nodes(struct btrfs_root *root); 137 void btrfs_destroy_delayed_inodes(struct btrfs_root *root); 156 void btrfs_assert_delayed_root_empty(struct btrfs_root *root);
|
D | inode-map.h | 4 void btrfs_init_free_ino_ctl(struct btrfs_root *root); 5 void btrfs_unpin_free_ino(struct btrfs_root *root); 6 void btrfs_return_ino(struct btrfs_root *root, u64 objectid); 7 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid); 8 int btrfs_save_ino_cache(struct btrfs_root *root, 11 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid); 12 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid);
|
D | tree-log.h | 62 struct btrfs_root *root, struct btrfs_log_ctx *ctx); 63 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 66 int btrfs_recover_log_trees(struct btrfs_root *tree_root); 68 struct btrfs_root *root, struct dentry *dentry, 73 struct btrfs_root *root, 77 struct btrfs_root *root, 80 void btrfs_end_log_trans(struct btrfs_root *root); 81 int btrfs_pin_log_trans(struct btrfs_root *root);
|
D | volumes.h | 55 struct btrfs_root *dev_root; 388 int btrfs_read_sys_array(struct btrfs_root *root); 389 int btrfs_read_chunk_tree(struct btrfs_root *root); 391 struct btrfs_root *extent_root, u64 type); 394 int btrfs_map_bio(struct btrfs_root *root, struct bio *bio, 404 int btrfs_find_device_missing_or_by_path(struct btrfs_root *root, 407 int btrfs_find_device_by_devspec(struct btrfs_root *root, u64 devid, 413 int btrfs_rm_device(struct btrfs_root *root, char *device_path, u64 devid); 421 int btrfs_init_new_device(struct btrfs_root *root, char *path); 422 int btrfs_init_dev_replace_tgtdev(struct btrfs_root *root, char *device_path, [all …]
|
D | transaction.c | 132 struct btrfs_root *root, *tmp; in switch_commit_roots() 149 struct btrfs_root, root_list); in switch_commit_roots() 187 static noinline int join_transaction(struct btrfs_root *root, unsigned int type) in join_transaction() 314 struct btrfs_root *root, in record_root_in_trans() 373 struct btrfs_root *root) in btrfs_add_dropped_root() 391 struct btrfs_root *root) in btrfs_record_root_in_trans() 423 static void wait_current_trans(struct btrfs_root *root) in wait_current_trans() 442 static int may_wait_transaction(struct btrfs_root *root, int type) in may_wait_transaction() 457 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root() 469 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction() [all …]
|
D | disk-io.c | 66 static void free_fs_root(struct btrfs_root *root); 69 static void btrfs_destroy_ordered_extents(struct btrfs_root *root); 71 struct btrfs_root *root); 72 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root); 73 static int btrfs_destroy_marked_extents(struct btrfs_root *root, 76 static int btrfs_destroy_pinned_extent(struct btrfs_root *root, 78 static int btrfs_cleanup_transaction(struct btrfs_root *root); 79 static void btrfs_error_commit_super(struct btrfs_root *root); 443 static int btree_read_extent_buffer_pages(struct btrfs_root *root, in btree_read_extent_buffer_pages() 554 static noinline int check_leaf(struct btrfs_root *root, in check_leaf() [all …]
|
D | dir-item.c | 34 struct btrfs_root *root, in insert_with_overflow() 69 struct btrfs_root *root, in btrfs_insert_xattr_item() 120 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_insert_dir_item() 192 struct btrfs_root *root, in btrfs_lookup_dir_item() 216 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, in btrfs_check_dir_item_collision() 285 struct btrfs_root *root, in btrfs_lookup_dir_index_item() 308 btrfs_search_dir_index_item(struct btrfs_root *root, in btrfs_search_dir_index_item() 355 struct btrfs_root *root, in btrfs_lookup_xattr() 382 struct btrfs_dir_item *btrfs_match_dir_item_name(struct btrfs_root *root, in btrfs_match_dir_item_name() 421 struct btrfs_root *root, in btrfs_delete_one_dir_name() [all …]
|
D | tree-log.c | 101 struct btrfs_root *root, struct inode *inode, 107 struct btrfs_root *root, 110 struct btrfs_root *root, 111 struct btrfs_root *log, 144 struct btrfs_root *root, in start_log_trans() 197 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans() 219 int btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans() 233 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans() 276 struct btrfs_root *replay_dest; 286 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, [all …]
|
D | raid56.h | 45 int raid56_parity_recover(struct btrfs_root *root, struct bio *bio, 48 int raid56_parity_write(struct btrfs_root *root, struct bio *bio, 55 raid56_parity_alloc_scrub_rbio(struct btrfs_root *root, struct bio *bio, 62 raid56_alloc_missing_rbio(struct btrfs_root *root, struct bio *bio,
|
D | extent-tree.c | 64 struct btrfs_root *root, u64 bytenr, 67 struct btrfs_root *root, 76 struct btrfs_root *root, 81 struct btrfs_root *root, 86 struct btrfs_root *extent_root, u64 flags, 99 int btrfs_pin_extent(struct btrfs_root *root, 101 static int __reserve_metadata_bytes(struct btrfs_root *root, 226 static int add_excluded_extent(struct btrfs_root *root, in add_excluded_extent() 237 static void free_excluded_extents(struct btrfs_root *root, in free_excluded_extents() 251 static int exclude_super_stripes(struct btrfs_root *root, in exclude_super_stripes() [all …]
|
D | relocation.c | 61 struct btrfs_root *root; 162 struct btrfs_root *extent_root; 529 static int should_ignore_root(struct btrfs_root *root) in should_ignore_root() 531 struct btrfs_root *reloc_root; in should_ignore_root() 554 static struct btrfs_root *find_reloc_root(struct reloc_control *rc, in find_reloc_root() 559 struct btrfs_root *root = NULL; in find_reloc_root() 565 root = (struct btrfs_root *)node->data; in find_reloc_root() 586 static struct btrfs_root *read_fs_root(struct btrfs_fs_info *fs_info, in read_fs_root() 603 struct btrfs_root *find_tree_root(struct reloc_control *rc, in find_tree_root() 607 struct btrfs_root *root; in find_tree_root() [all …]
|
D | backref.h | 28 struct btrfs_root *fs_root; 57 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path, 63 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, 67 int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
|
D | root-tree.c | 77 int btrfs_find_root(struct btrfs_root *root, struct btrfs_key *search_key, in btrfs_find_root() 131 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() 209 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() 219 int btrfs_find_orphan_roots(struct btrfs_root *tree_root) in btrfs_find_orphan_roots() 225 struct btrfs_root *root; in btrfs_find_orphan_roots() 339 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_del_root() 361 struct btrfs_root *tree_root, in btrfs_del_root_ref() 432 struct btrfs_root *tree_root, in btrfs_add_root_ref() 499 struct btrfs_root *root) in btrfs_update_root_times()
|
D | ordered-data.h | 148 static inline int btrfs_ordered_sum_size(struct btrfs_root *root, in btrfs_ordered_sum_size() 200 int btrfs_wait_ordered_extents(struct btrfs_root *root, int nr, 210 struct btrfs_root *log); 212 struct btrfs_root *log, u64 transid); 213 void btrfs_free_logged_extents(struct btrfs_root *log, u64 transid);
|
D | delayed-inode.c | 51 struct btrfs_root *root, u64 inode_id) in btrfs_init_delayed_node() 76 struct btrfs_root *root) in btrfs_get_delayed_root() 84 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_delayed_node() 120 struct btrfs_root *root = btrfs_inode->root; in btrfs_get_or_create_delayed_node() 265 struct btrfs_root *root = delayed_node->root; in __btrfs_release_delayed_node() 538 struct btrfs_root *root, in btrfs_delayed_item_reserve_metadata() 564 static void btrfs_delayed_item_release_metadata(struct btrfs_root *root, in btrfs_delayed_item_release_metadata() 582 struct btrfs_root *root, in btrfs_delayed_inode_reserve_metadata() 681 static void btrfs_delayed_inode_release_metadata(struct btrfs_root *root, in btrfs_delayed_inode_release_metadata() 701 static int btrfs_batch_insert_items(struct btrfs_root *root, in btrfs_batch_insert_items() [all …]
|
D | ctree.c | 29 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root 31 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root 35 struct btrfs_root *root, struct extent_buffer *dst, 38 struct btrfs_root *root, 41 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path, 147 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() 175 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node() 194 static struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node() 213 static void add_root_to_dirty_list(struct btrfs_root *root) in add_root_to_dirty_list() 238 struct btrfs_root *root, in btrfs_copy_root() [all …]
|
D | inode-map.c | 31 struct btrfs_root *root = data; in caching_kthread() 137 static void start_caching(struct btrfs_root *root) in start_caching() 187 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_ino() 211 void btrfs_return_ino(struct btrfs_root *root, u64 objectid) in btrfs_return_ino() 247 void btrfs_unpin_free_ino(struct btrfs_root *root) in btrfs_unpin_free_ino() 367 void btrfs_init_free_ino_ctl(struct btrfs_root *root) in btrfs_init_free_ino_ctl() 395 int btrfs_save_ino_cache(struct btrfs_root *root, in btrfs_save_ino_cache() 520 int btrfs_find_highest_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_highest_objectid() 555 int btrfs_find_free_objectid(struct btrfs_root *root, u64 *objectid) in btrfs_find_free_objectid()
|
D | inode-item.c | 97 struct btrfs_root *root, in btrfs_lookup_inode_extref() 122 struct btrfs_root *root, in btrfs_del_inode_extref() 194 struct btrfs_root *root, in btrfs_del_inode_ref() 271 struct btrfs_root *root, in btrfs_insert_inode_extref() 327 struct btrfs_root *root, in btrfs_insert_inode_ref() 402 struct btrfs_root *root, in btrfs_insert_empty_inode() 416 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
|
D | inode.c | 67 struct btrfs_root *root; 146 struct btrfs_root *root, struct inode *inode, in insert_inline_extent() 247 static noinline int cow_file_range_inline(struct btrfs_root *root, in cow_file_range_inline() 345 struct btrfs_root *root; 376 struct btrfs_root *root = BTRFS_I(inode)->root; in inode_need_compress() 414 struct btrfs_root *root = BTRFS_I(inode)->root; in compress_file_range() 692 struct btrfs_root *root = BTRFS_I(inode)->root; in submit_compressed_extents() 945 struct btrfs_root *root = BTRFS_I(inode)->root; in cow_file_range() 1125 struct btrfs_root *root; in async_cow_submit() 1160 struct btrfs_root *root = BTRFS_I(inode)->root; in cow_file_range_async() [all …]
|
D | qgroup.c | 304 struct btrfs_root *quota_root = fs_info->quota_root; in btrfs_read_qgroup_config() 507 struct btrfs_root *quota_root, in add_qgroup_relation_item() 531 struct btrfs_root *quota_root, in del_qgroup_relation_item() 562 struct btrfs_root *quota_root, u64 qgroupid) in add_qgroup_item() 630 struct btrfs_root *quota_root, u64 qgroupid) in del_qgroup_item() 676 struct btrfs_root *root, in update_qgroup_limit_item() 718 struct btrfs_root *root, in update_qgroup_info_item() 764 struct btrfs_root *root) in update_qgroup_status_item() 807 struct btrfs_root *root) in btrfs_clean_quota_tree() 855 struct btrfs_root *quota_root; in btrfs_quota_enable() [all …]
|
/fs/btrfs/tests/ |
D | qgroup-tests.c | 27 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() 80 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() 132 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() 164 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() 220 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup() 317 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs() 457 struct btrfs_root *root; in btrfs_test_qgroups() 458 struct btrfs_root *tmp_root; in btrfs_test_qgroups()
|