/fs/btrfs/ |
D | extent_io.h | 81 struct extent_buffer { struct 198 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 200 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 202 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 204 struct extent_buffer *btrfs_clone_extent_buffer(const struct extent_buffer *src); 205 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 207 void free_extent_buffer(struct extent_buffer *eb); 208 void free_extent_buffer_stale(struct extent_buffer *eb); 212 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, 214 void wait_on_extent_buffer_writeback(struct extent_buffer *eb); [all …]
|
D | locking.h | 86 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 87 void btrfs_tree_lock(struct extent_buffer *eb); 88 void btrfs_tree_unlock(struct extent_buffer *eb); 90 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 91 void btrfs_tree_read_lock(struct extent_buffer *eb); 92 void btrfs_tree_read_unlock(struct extent_buffer *eb); 93 int btrfs_try_tree_read_lock(struct extent_buffer *eb); 94 int btrfs_try_tree_write_lock(struct extent_buffer *eb); 95 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); 96 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root); [all …]
|
D | tree-mod-log.h | 31 int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root, 32 struct extent_buffer *new_root, 34 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, 36 int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb); 37 struct extent_buffer *btrfs_tree_mod_log_rewind(struct btrfs_fs_info *fs_info, 39 struct extent_buffer *eb, 41 struct extent_buffer *btrfs_get_old_root(struct btrfs_root *root, u64 time_seq); 43 int btrfs_tree_mod_log_eb_copy(struct extent_buffer *dst, 44 struct extent_buffer *src, 48 int btrfs_tree_mod_log_insert_move(struct extent_buffer *eb,
|
D | locking.c | 80 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class() 94 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class() 127 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_read_lock() 138 void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock() 148 int btrfs_try_tree_read_lock(struct extent_buffer *eb) in btrfs_try_tree_read_lock() 162 int btrfs_try_tree_write_lock(struct extent_buffer *eb) in btrfs_try_tree_write_lock() 175 void btrfs_tree_read_unlock(struct extent_buffer *eb) in btrfs_tree_read_unlock() 188 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_lock() 201 void btrfs_tree_lock(struct extent_buffer *eb) in btrfs_tree_lock() 209 void btrfs_tree_unlock(struct extent_buffer *eb) in btrfs_tree_unlock() [all …]
|
D | ctree.c | 25 struct extent_buffer *dst, 26 struct extent_buffer *src, int empty); 28 struct extent_buffer *dst_buf, 29 struct extent_buffer *src_buf); 124 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() 126 struct extent_buffer *eb; in btrfs_root_node() 181 struct extent_buffer *buf, in btrfs_copy_root() 182 struct extent_buffer **cow_ret, u64 new_root_objectid) in btrfs_copy_root() 185 struct extent_buffer *cow; in btrfs_copy_root() 241 struct extent_buffer *buf) in btrfs_block_can_be_shared() [all …]
|
D | ctree.h | 392 struct extent_buffer *nodes[BTRFS_MAX_LEVEL]; 1151 struct extent_buffer *node; 1153 struct extent_buffer *commit_root; 1561 struct extent_buffer *eb; 1570 struct extent_buffer *eb) in btrfs_init_map_token() 1613 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 1615 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 1624 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 1630 static inline void btrfs_set_##name(const struct extent_buffer *eb, type *s, \ 1650 static inline u##bits btrfs_##name(const struct extent_buffer *eb) \ [all …]
|
D | tree-mod-log.c | 170 struct extent_buffer *eb) in tree_mod_dont_log() 188 struct extent_buffer *eb) in tree_mod_need_log() 198 static struct tree_mod_elem *alloc_tree_mod_elem(struct extent_buffer *eb, in alloc_tree_mod_elem() 222 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() 248 int btrfs_tree_mod_log_insert_move(struct extent_buffer *eb, in btrfs_tree_mod_log_insert_move() 343 int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root, in btrfs_tree_mod_log_insert_root() 344 struct extent_buffer *new_root, in btrfs_tree_mod_log_insert_root() 477 int btrfs_tree_mod_log_eb_copy(struct extent_buffer *dst, in btrfs_tree_mod_log_eb_copy() 478 struct extent_buffer *src, in btrfs_tree_mod_log_eb_copy() 550 int btrfs_tree_mod_log_free_eb(struct extent_buffer *eb) in btrfs_tree_mod_log_free_eb() [all …]
|
D | disk-io.h | 43 int btrfs_verify_level_key(struct extent_buffer *eb, int level, 45 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 48 struct extent_buffer *btrfs_find_create_tree_block( 52 void btrfs_clean_tree_block(struct extent_buffer *buf); 114 void btrfs_mark_buffer_dirty(struct extent_buffer *buf); 115 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 117 int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level,
|
D | tree-checker.h | 17 int btrfs_check_leaf_full(struct extent_buffer *leaf); 23 int btrfs_check_leaf_relaxed(struct extent_buffer *leaf); 24 int btrfs_check_node(struct extent_buffer *node); 26 int btrfs_check_chunk_valid(struct extent_buffer *leaf,
|
D | tree-checker.c | 51 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() 76 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() 113 static u64 file_extent_end(struct extent_buffer *leaf, in file_extent_end() 136 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() 167 static bool check_prev_ino(struct extent_buffer *leaf, in check_prev_ino() 198 static int check_extent_data_item(struct extent_buffer *leaf, in check_extent_data_item() 338 static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, in check_csum_item() 384 static int check_inode_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_inode_key() 436 static int check_root_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_root_key() 494 static int check_dir_item(struct extent_buffer *leaf, in check_dir_item() [all …]
|
D | print-tree.c | 48 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() 61 static void print_dev_item(struct extent_buffer *eb, in print_dev_item() 69 static void print_extent_data_ref(struct extent_buffer *eb, in print_extent_data_ref() 79 static void print_extent_item(struct extent_buffer *eb, int slot, int type) in print_extent_item() 168 static void print_uuid_item(struct extent_buffer *l, unsigned long offset, in print_uuid_item() 190 static void print_eb_refs_lock(struct extent_buffer *eb) in print_eb_refs_lock() 198 void btrfs_print_leaf(struct extent_buffer *l) in btrfs_print_leaf() 356 void btrfs_print_tree(struct extent_buffer *c, bool follow) in btrfs_print_tree() 389 struct extent_buffer *next; in btrfs_print_tree()
|
D | extent_io.c | 69 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() 82 struct extent_buffer, leak_list); in btrfs_extent_buffer_leak_debug_check() 238 sizeof(struct extent_buffer), 0, in extent_io_init() 2371 int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num) in btrfs_repair_eb_io_failure() 2944 static struct extent_buffer *find_extent_buffer_readpage( in find_extent_buffer_readpage() 2947 struct extent_buffer *eb; in find_extent_buffer_readpage() 2955 return (struct extent_buffer *)page->private; in find_extent_buffer_readpage() 3069 struct extent_buffer *eb; in end_bio_extent_readpage() 3444 static int attach_extent_buffer_page(struct extent_buffer *eb, in attach_extent_buffer_page() 4164 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback() [all …]
|
D | qgroup.h | 327 struct extent_buffer *eb); 339 struct extent_buffer *root_eb, 425 struct extent_buffer *subvol_parent, int subvol_slot, 426 struct extent_buffer *reloc_parent, int reloc_slot, 429 struct btrfs_root *root, struct extent_buffer *eb);
|
D | zoned.h | 56 struct extent_buffer *eb); 63 struct extent_buffer *eb, 66 struct extent_buffer *eb); 161 struct extent_buffer *eb) { } in btrfs_redirty_list_add() 178 struct extent_buffer *eb, in btrfs_check_meta_write_pointer() 186 struct extent_buffer *eb) in btrfs_revert_meta_write_pointer()
|
D | dir-item.c | 31 struct extent_buffer *leaf; in insert_with_overflow() 66 struct extent_buffer *leaf; in btrfs_insert_xattr_item() 117 struct extent_buffer *leaf; in btrfs_insert_dir_item() 235 struct extent_buffer *leaf; in btrfs_check_dir_item_collision() 330 struct extent_buffer *leaf; in btrfs_search_dir_index_item() 407 struct extent_buffer *leaf; in btrfs_match_dir_item_name() 440 struct extent_buffer *leaf; in btrfs_delete_one_dir_name()
|
D | root-tree.c | 22 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() 69 struct extent_buffer *l; in btrfs_find_root() 108 struct extent_buffer *node) in btrfs_set_root_node() 124 struct extent_buffer *l; in btrfs_update_root() 210 struct extent_buffer *leaf; in btrfs_find_orphan_roots() 339 struct extent_buffer *leaf; in btrfs_del_root_ref() 415 struct extent_buffer *leaf; in btrfs_add_root_ref()
|
D | inode-item.c | 11 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, in btrfs_find_name_in_backref() 38 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() 107 struct extent_buffer *leaf; in btrfs_del_inode_extref() 177 struct extent_buffer *leaf; in btrfs_del_inode_ref() 258 struct extent_buffer *leaf; in btrfs_insert_inode_extref() 405 struct extent_buffer *leaf; in btrfs_lookup_inode()
|
D | struct-funcs.c | 10 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() 85 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 137 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 165 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
|
D | print-tree.h | 12 void btrfs_print_leaf(struct extent_buffer *l); 13 void btrfs_print_tree(struct extent_buffer *c, bool follow);
|
D | backref.h | 27 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb, 53 struct extent_buffer *eb_in, u64 parent, 108 static inline struct extent_buffer *btrfs_backref_get_eb( in btrfs_backref_get_eb() 184 struct extent_buffer *eb;
|
D | uuid-tree.c | 27 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() 90 struct extent_buffer *eb; in btrfs_uuid_tree_add() 154 struct extent_buffer *eb; in btrfs_uuid_tree_remove() 296 struct extent_buffer *leaf; in btrfs_uuid_tree_iterate()
|
D | backref.c | 29 const struct extent_buffer *eb, in check_extent_in_eb() 76 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb() 427 struct extent_buffer *eb; in add_all_parents() 549 struct extent_buffer *eb; in resolve_indirect_ref() 798 struct extent_buffer *eb; in add_missing_keys() 971 struct extent_buffer *leaf; in add_inline_refs() 1095 struct extent_buffer *leaf; in add_keyed_refs() 1301 struct extent_buffer *leaf; 1373 struct extent_buffer *eb; 1642 const struct extent_buffer *leaf; [all …]
|
D | tree-log.c | 272 static int btrfs_write_tree_block(struct extent_buffer *buf) in btrfs_write_tree_block() 278 static void btrfs_wait_tree_block_writeback(struct extent_buffer *buf) in btrfs_wait_tree_block_writeback() 332 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 340 struct extent_buffer *eb, in process_one_buffer() 388 struct extent_buffer *eb, int slot, in overwrite_item() 537 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item() 617 struct extent_buffer *eb, int slot, in replay_one_extent() 675 struct extent_buffer *leaf; in replay_one_extent() 924 struct extent_buffer *leaf; in drop_one_dir_item() 1058 struct extent_buffer *leaf; in __add_inode_ref() [all …]
|
D | extent-tree.c | 49 struct extent_buffer *leaf, 123 struct extent_buffer *leaf; in btrfs_lookup_extent_info() 353 int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, in btrfs_get_extent_inline_ref_type() 396 btrfs_print_leaf((struct extent_buffer *)eb); in btrfs_get_extent_inline_ref_type() 421 static u64 hash_extent_data_ref_item(struct extent_buffer *leaf, in hash_extent_data_ref_item() 429 static int match_extent_data_ref(struct extent_buffer *leaf, in match_extent_data_ref() 449 struct extent_buffer *leaf; in lookup_extent_data_ref() 524 struct extent_buffer *leaf; in insert_extent_data_ref() 602 struct extent_buffer *leaf; in remove_extent_data_ref() 645 struct extent_buffer *leaf; in extent_data_ref_count() [all …]
|
D | qgroup.c | 335 struct extent_buffer *l; in btrfs_read_qgroup_config() 646 struct extent_buffer *leaf; in add_qgroup_item() 759 struct extent_buffer *l; in update_qgroup_limit_item() 802 struct extent_buffer *l; in update_qgroup_info_item() 847 struct extent_buffer *l; in update_qgroup_status_item() 890 struct extent_buffer *leaf = NULL; in btrfs_clean_quota_tree() 934 struct extent_buffer *leaf; in btrfs_quota_enable() 1871 struct extent_buffer *eb) in btrfs_qgroup_trace_leaf_items() 1930 struct extent_buffer *eb; in adjust_slots_upwards() 2020 struct extent_buffer *src_eb, in qgroup_trace_extent_swap() [all …]
|