/linux-6.6.21/fs/btrfs/ |
D | extent_io.h | 75 struct extent_buffer { struct 98 struct extent_buffer *eb; argument 111 static inline size_t get_eb_offset_in_page(const struct extent_buffer *eb, in get_eb_offset_in_page() 200 struct extent_buffer *alloc_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 *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 206 struct extent_buffer *btrfs_clone_extent_buffer(const struct extent_buffer *src); 207 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 209 void free_extent_buffer(struct extent_buffer *eb); 210 void free_extent_buffer_stale(struct extent_buffer *eb); [all …]
|
D | locking.h | 162 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 163 void btrfs_tree_lock(struct extent_buffer *eb); 164 void btrfs_tree_unlock(struct extent_buffer *eb); 166 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 167 void btrfs_tree_read_lock(struct extent_buffer *eb); 168 void btrfs_tree_read_unlock(struct extent_buffer *eb); 169 int btrfs_try_tree_read_lock(struct extent_buffer *eb); 170 int btrfs_try_tree_write_lock(struct extent_buffer *eb); 171 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); 172 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 | tree-checker.h | 11 struct extent_buffer; 60 enum btrfs_tree_block_status __btrfs_check_leaf(struct extent_buffer *leaf); 61 enum btrfs_tree_block_status __btrfs_check_node(struct extent_buffer *node); 63 int btrfs_check_leaf(struct extent_buffer *leaf); 64 int btrfs_check_node(struct extent_buffer *node); 66 int btrfs_check_chunk_valid(struct extent_buffer *leaf, 68 int btrfs_check_eb_owner(const struct extent_buffer *eb, u64 root_owner); 69 int btrfs_verify_level_key(struct extent_buffer *eb, int level,
|
D | locking.c | 82 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class() 96 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class() 129 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_read_lock() 140 void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock() 150 int btrfs_try_tree_read_lock(struct extent_buffer *eb) in btrfs_try_tree_read_lock() 164 int btrfs_try_tree_write_lock(struct extent_buffer *eb) in btrfs_try_tree_write_lock() 177 void btrfs_tree_read_unlock(struct extent_buffer *eb) in btrfs_tree_read_unlock() 190 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest) in __btrfs_tree_lock() 203 void btrfs_tree_lock(struct extent_buffer *eb) in btrfs_tree_lock() 211 void btrfs_tree_unlock(struct extent_buffer *eb) in btrfs_tree_unlock() [all …]
|
D | accessors.h | 9 struct extent_buffer *eb; 14 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb); 53 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 55 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 64 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 70 static inline void btrfs_set_##name(const struct extent_buffer *eb, type *s, \ 90 static inline u##bits btrfs_##name(const struct extent_buffer *eb) \ 96 static inline void btrfs_set_##name(const struct extent_buffer *eb, \ 113 static inline u64 btrfs_device_total_bytes(const struct extent_buffer *eb, in btrfs_device_total_bytes() 119 static inline void btrfs_set_device_total_bytes(const struct extent_buffer *eb, in btrfs_set_device_total_bytes() [all …]
|
D | extent-tree.h | 89 int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, 106 int btrfs_exclude_logged_extents(struct extent_buffer *eb); 110 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans, 119 struct extent_buffer *buf, 132 struct extent_buffer *buf, int full_backref); 134 struct extent_buffer *buf, int full_backref); 136 struct extent_buffer *eb, u64 flags); 148 struct extent_buffer *node, 149 struct extent_buffer *parent);
|
D | ctree.h | 87 struct extent_buffer *nodes[BTRFS_MAX_LEVEL]; 195 struct extent_buffer *node; 197 struct extent_buffer *commit_root; 512 int btrfs_bin_search(struct extent_buffer *eb, int first_slot, 524 struct extent_buffer *btrfs_root_node(struct btrfs_root *root); 531 struct extent_buffer *btrfs_read_node_slot(struct extent_buffer *parent, 535 struct btrfs_root *root, struct extent_buffer *buf, 536 struct extent_buffer *parent, int parent_slot, 537 struct extent_buffer **cow_ret, 541 struct extent_buffer *buf, [all …]
|
D | disk-io.h | 34 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 36 struct extent_buffer *btrfs_find_create_tree_block( 41 struct extent_buffer *buf); 84 int btrfs_validate_extent_buffer(struct extent_buffer *eb, 108 struct extent_buffer *buf); 109 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 111 int btrfs_read_extent_buffer(struct extent_buffer *buf,
|
D | ctree.c | 35 struct extent_buffer *dst, 36 struct extent_buffer *src, int empty); 38 struct extent_buffer *dst_buf, 39 struct extent_buffer *src_buf); 57 static unsigned int leaf_data_end(const struct extent_buffer *leaf) in leaf_data_end() 79 static inline void memmove_leaf_data(const struct extent_buffer *leaf, in memmove_leaf_data() 102 static inline void copy_leaf_data(const struct extent_buffer *dst, in copy_leaf_data() 103 const struct extent_buffer *src, in copy_leaf_data() 122 static inline void memmove_leaf_items(const struct extent_buffer *leaf, in memmove_leaf_items() 142 static inline void copy_leaf_items(const struct extent_buffer *dst, in copy_leaf_items() [all …]
|
D | extent_io.c | 44 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb() 54 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb() 66 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() 80 struct extent_buffer, leak_list); in btrfs_extent_buffer_leak_debug_check() 151 sizeof(struct extent_buffer), 0, in extent_buffer_init_cachep() 865 static int attach_extent_buffer_page(struct extent_buffer *eb, in attach_extent_buffer_page() 1469 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback() 1482 static noinline_for_stack bool lock_extent_buffer_for_io(struct extent_buffer *eb, in lock_extent_buffer_for_io() 1518 static void set_btree_ioerr(struct extent_buffer *eb) in set_btree_ioerr() 1595 static struct extent_buffer *find_extent_buffer_nolock( in find_extent_buffer_nolock() [all …]
|
D | tree-mod-log.c | 174 struct extent_buffer *eb) in tree_mod_dont_log() 192 struct extent_buffer *eb) in tree_mod_need_log() 202 static struct tree_mod_elem *alloc_tree_mod_elem(struct extent_buffer *eb, in alloc_tree_mod_elem() 225 int btrfs_tree_mod_log_insert_key(struct extent_buffer *eb, int slot, in btrfs_tree_mod_log_insert_key() 262 static struct tree_mod_elem *tree_mod_log_alloc_move(struct extent_buffer *eb, in tree_mod_log_alloc_move() 282 int btrfs_tree_mod_log_insert_move(struct extent_buffer *eb, in btrfs_tree_mod_log_insert_move() 390 int btrfs_tree_mod_log_insert_root(struct extent_buffer *old_root, in btrfs_tree_mod_log_insert_root() 391 struct extent_buffer *new_root, in btrfs_tree_mod_log_insert_root() 538 int btrfs_tree_mod_log_eb_copy(struct extent_buffer *dst, in btrfs_tree_mod_log_eb_copy() 539 struct extent_buffer *src, in btrfs_tree_mod_log_eb_copy() [all …]
|
D | print-tree.c | 52 static void print_chunk(const struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() 65 static void print_dev_item(const struct extent_buffer *eb, in print_dev_item() 73 static void print_extent_data_ref(const struct extent_buffer *eb, in print_extent_data_ref() 83 static void print_extent_item(const struct extent_buffer *eb, int slot, int type) in print_extent_item() 174 static void print_uuid_item(const struct extent_buffer *l, unsigned long offset, in print_uuid_item() 196 static void print_eb_refs_lock(const struct extent_buffer *eb) in print_eb_refs_lock() 204 void btrfs_print_leaf(const struct extent_buffer *l) in btrfs_print_leaf() 356 void btrfs_print_tree(const struct extent_buffer *c, bool follow) in btrfs_print_tree() 394 struct extent_buffer *next; in btrfs_print_tree()
|
D | tree-checker.c | 55 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() 80 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() 117 static u64 file_extent_end(struct extent_buffer *leaf, in file_extent_end() 140 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() 171 static bool check_prev_ino(struct extent_buffer *leaf, in check_prev_ino() 202 static int check_extent_data_item(struct extent_buffer *leaf, in check_extent_data_item() 342 static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, in check_csum_item() 388 static int check_inode_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_inode_key() 440 static int check_root_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_root_key() 498 static int check_dir_item(struct extent_buffer *leaf, in check_dir_item() [all …]
|
D | qgroup.h | 342 struct extent_buffer *eb); 354 struct extent_buffer *root_eb, 444 struct extent_buffer *subvol_parent, int subvol_slot, 445 struct extent_buffer *reloc_parent, int reloc_slot, 448 struct btrfs_root *root, struct extent_buffer *eb);
|
D | inode-item.h | 14 struct extent_buffer; 103 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, 107 struct extent_buffer *leaf, int slot, u64 ref_objectid,
|
D | print-tree.h | 12 void btrfs_print_leaf(const struct extent_buffer *l); 13 void btrfs_print_tree(const struct extent_buffer *c, bool follow);
|
D | accessors.c | 11 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() 27 void btrfs_init_map_token(struct btrfs_map_token *token, struct extent_buffer *eb) in btrfs_init_map_token() 88 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 140 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 168 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
|
D | relocation.h | 13 struct btrfs_root *root, struct extent_buffer *buf, 14 struct extent_buffer *cow);
|
D | root-tree.c | 27 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item() 72 struct extent_buffer *l; in btrfs_find_root() 111 struct extent_buffer *node) in btrfs_set_root_node() 127 struct extent_buffer *l; in btrfs_update_root() 213 struct extent_buffer *leaf; in btrfs_find_orphan_roots() 341 struct extent_buffer *leaf; in btrfs_del_root_ref() 415 struct extent_buffer *leaf; in btrfs_add_root_ref()
|
D | backref.h | 124 const struct extent_buffer *leaf, void *user_ctx); 208 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb, 227 struct extent_buffer *eb_in, u64 parent, 282 static inline struct extent_buffer *btrfs_backref_get_eb( in btrfs_backref_get_eb() 358 struct extent_buffer *eb;
|
D | dir-item.c | 33 struct extent_buffer *leaf; in insert_with_overflow() 67 struct extent_buffer *leaf; in btrfs_insert_xattr_item() 118 struct extent_buffer *leaf; in btrfs_insert_dir_item() 240 struct extent_buffer *leaf; in btrfs_check_dir_item_collision() 390 struct extent_buffer *leaf; in btrfs_match_dir_item_name() 423 struct extent_buffer *leaf; in btrfs_delete_one_dir_name()
|
D | inode-item.c | 18 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, in btrfs_find_name_in_backref() 46 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref() 116 struct extent_buffer *leaf; in btrfs_del_inode_extref() 185 struct extent_buffer *leaf; in btrfs_del_inode_ref() 266 struct extent_buffer *leaf; in btrfs_insert_inode_extref() 409 struct extent_buffer *leaf; in btrfs_lookup_inode() 428 struct extent_buffer *leaf, in btrfs_trace_truncate() 465 struct extent_buffer *leaf; in btrfs_truncate_inode_items()
|
D | uuid-tree.c | 30 struct extent_buffer *eb; in btrfs_uuid_tree_lookup() 93 struct extent_buffer *eb; in btrfs_uuid_tree_add() 157 struct extent_buffer *eb; in btrfs_uuid_tree_remove() 299 struct extent_buffer *leaf; in btrfs_uuid_tree_iterate()
|
/linux-6.6.21/fs/btrfs/tests/ |
D | extent-io-tests.c | 322 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb) in check_eb_bitmap() 364 struct extent_buffer *eb, in test_bitmap_set() 379 struct extent_buffer *eb, in test_bitmap_clear() 392 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb) in __test_eb_bitmaps() 490 struct extent_buffer *eb = NULL; in test_eb_bitmaps() 651 static void dump_eb_and_memory_contents(struct extent_buffer *eb, void *memory, in dump_eb_and_memory_contents() 667 static int verify_eb_and_memory(struct extent_buffer *eb, void *memory, in verify_eb_and_memory() 685 static void init_eb_and_memory(struct extent_buffer *eb, void *memory) in init_eb_and_memory() 694 struct extent_buffer *eb = NULL; in test_eb_mem_ops()
|