/kernel/linux/linux-5.10/fs/btrfs/ |
D | locking.h | 88 void __btrfs_tree_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest); 89 void btrfs_tree_lock(struct extent_buffer *eb); 90 void btrfs_tree_unlock(struct extent_buffer *eb); 92 void __btrfs_tree_read_lock(struct extent_buffer *eb, enum btrfs_lock_nesting nest, 94 void btrfs_tree_read_lock(struct extent_buffer *eb); 95 void btrfs_tree_read_unlock(struct extent_buffer *eb); 96 void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb); 97 void btrfs_set_lock_blocking_read(struct extent_buffer *eb); 98 void btrfs_set_lock_blocking_write(struct extent_buffer *eb); 99 int btrfs_try_tree_read_lock(struct extent_buffer *eb); [all …]
|
D | extent_io.h | 79 struct extent_buffer { struct 201 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 203 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 205 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 207 struct extent_buffer *btrfs_clone_extent_buffer(const struct extent_buffer *src); 208 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 210 void free_extent_buffer(struct extent_buffer *eb); 211 void free_extent_buffer_stale(struct extent_buffer *eb); 215 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, 217 void wait_on_extent_buffer_writeback(struct extent_buffer *eb); [all …]
|
D | locking.c | 121 static inline void btrfs_assert_spinning_writers_get(struct extent_buffer *eb) in btrfs_assert_spinning_writers_get() 127 static inline void btrfs_assert_spinning_writers_put(struct extent_buffer *eb) in btrfs_assert_spinning_writers_put() 133 static inline void btrfs_assert_no_spinning_writers(struct extent_buffer *eb) in btrfs_assert_no_spinning_writers() 138 static inline void btrfs_assert_spinning_readers_get(struct extent_buffer *eb) in btrfs_assert_spinning_readers_get() 143 static inline void btrfs_assert_spinning_readers_put(struct extent_buffer *eb) in btrfs_assert_spinning_readers_put() 149 static inline void btrfs_assert_tree_read_locks_get(struct extent_buffer *eb) in btrfs_assert_tree_read_locks_get() 154 static inline void btrfs_assert_tree_read_locks_put(struct extent_buffer *eb) in btrfs_assert_tree_read_locks_put() 159 static inline void btrfs_assert_tree_read_locked(struct extent_buffer *eb) in btrfs_assert_tree_read_locked() 164 static inline void btrfs_assert_tree_write_locks_get(struct extent_buffer *eb) in btrfs_assert_tree_write_locks_get() 169 static inline void btrfs_assert_tree_write_locks_put(struct extent_buffer *eb) in btrfs_assert_tree_write_locks_put() [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, 49 struct extent_buffer *btrfs_find_create_tree_block( 52 void btrfs_clean_tree_block(struct extent_buffer *buf); 108 void btrfs_mark_buffer_dirty(struct extent_buffer *buf); 109 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 111 int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level, 140 struct extent_buffer *eb, int level); 145 struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class()
|
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 | ctree.c | 24 struct extent_buffer *dst, 25 struct extent_buffer *src, int empty); 27 struct extent_buffer *dst_buf, 28 struct extent_buffer *src_buf); 123 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() 125 struct extent_buffer *eb; in btrfs_root_node() 180 struct extent_buffer *buf, in btrfs_copy_root() 181 struct extent_buffer **cow_ret, u64 new_root_objectid) in btrfs_copy_root() 184 struct extent_buffer *cow; in btrfs_copy_root() 404 struct extent_buffer *eb) { in tree_mod_dont_log() [all …]
|
D | ctree.h | 358 struct extent_buffer *nodes[BTRFS_MAX_LEVEL]; 1054 struct extent_buffer *node; 1056 struct extent_buffer *commit_root; 1410 struct extent_buffer *eb; 1419 struct extent_buffer *eb) in btrfs_init_map_token() 1462 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 1464 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 1473 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ 1479 static inline void btrfs_set_##name(const struct extent_buffer *eb, type *s, \ 1499 static inline u##bits btrfs_##name(const struct extent_buffer *eb) \ [all …]
|
D | tree-checker.c | 50 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() 75 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() 111 static u64 file_extent_end(struct extent_buffer *leaf, in file_extent_end() 134 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() 165 static bool check_prev_ino(struct extent_buffer *leaf, in check_prev_ino() 196 static int check_extent_data_item(struct extent_buffer *leaf, in check_extent_data_item() 334 static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, in check_csum_item() 380 static int check_inode_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_inode_key() 431 static int check_root_key(struct extent_buffer *leaf, struct btrfs_key *key, in check_root_key() 474 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() 191 static void print_eb_refs_lock(struct extent_buffer *eb) in print_eb_refs_lock() 206 void btrfs_print_leaf(struct extent_buffer *l) in btrfs_print_leaf() 364 void btrfs_print_tree(struct extent_buffer *c, bool follow) in btrfs_print_tree() 397 struct extent_buffer *next; in btrfs_print_tree()
|
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 | print-tree.h | 12 void btrfs_print_leaf(struct extent_buffer *l); 13 void btrfs_print_tree(struct extent_buffer *c, bool follow);
|
D | extent_io.c | 64 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check() 77 struct extent_buffer, leak_list); in btrfs_extent_buffer_leak_debug_check() 228 sizeof(struct extent_buffer), 0, in extent_io_init() 2334 int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num) in btrfs_repair_eb_io_failure() 2889 struct extent_buffer *eb; in end_bio_extent_readpage() 2891 eb = (struct extent_buffer *)page->private; in end_bio_extent_readpage() 3094 static void attach_extent_buffer_page(struct extent_buffer *eb, in attach_extent_buffer_page() 3643 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback() 3649 static void end_extent_buffer_writeback(struct extent_buffer *eb) in end_extent_buffer_writeback() 3663 static noinline_for_stack int lock_extent_buffer_for_io(struct extent_buffer *eb, in lock_extent_buffer_for_io() [all …]
|
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() 211 struct extent_buffer *leaf; in btrfs_check_dir_item_collision() 300 struct extent_buffer *leaf; in btrfs_search_dir_index_item() 380 struct extent_buffer *leaf; in btrfs_match_dir_item_name() 413 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() 324 struct extent_buffer *leaf; in btrfs_del_root_ref() 399 struct extent_buffer *leaf; in btrfs_add_root_ref()
|
D | struct-funcs.c | 10 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds() 84 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 135 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \ 163 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
|
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() 179 struct extent_buffer *leaf; in btrfs_del_inode_ref() 262 struct extent_buffer *leaf; in btrfs_insert_inode_extref() 411 struct extent_buffer *leaf; in btrfs_lookup_inode()
|
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() 155 struct extent_buffer *eb; in btrfs_uuid_tree_remove() 297 struct extent_buffer *leaf; in btrfs_uuid_tree_iterate()
|
D | backref.c | 28 const struct extent_buffer *eb, in check_extent_in_eb() 75 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb() 423 struct extent_buffer *eb; in add_all_parents() 541 struct extent_buffer *eb; in resolve_indirect_ref() 774 struct extent_buffer *eb; in add_missing_keys() 937 struct extent_buffer *leaf; in add_inline_refs() 1059 struct extent_buffer *leaf; in add_keyed_refs() 1264 struct extent_buffer *leaf; 1336 struct extent_buffer *eb; 1603 const struct extent_buffer *leaf; [all …]
|
D | extent-tree.c | 47 struct extent_buffer *leaf, 121 struct extent_buffer *leaf; in btrfs_lookup_extent_info() 351 int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, in btrfs_get_extent_inline_ref_type() 394 btrfs_print_leaf((struct extent_buffer *)eb); in btrfs_get_extent_inline_ref_type() 419 static u64 hash_extent_data_ref_item(struct extent_buffer *leaf, in hash_extent_data_ref_item() 427 static int match_extent_data_ref(struct extent_buffer *leaf, in match_extent_data_ref() 447 struct extent_buffer *leaf; in lookup_extent_data_ref() 522 struct extent_buffer *leaf; in insert_extent_data_ref() 600 struct extent_buffer *leaf; in remove_extent_data_ref() 643 struct extent_buffer *leaf; in extent_data_ref_count() [all …]
|
D | tree-log.c | 231 static int btrfs_write_tree_block(struct extent_buffer *buf) in btrfs_write_tree_block() 237 static void btrfs_wait_tree_block_writeback(struct extent_buffer *buf) in btrfs_wait_tree_block_writeback() 291 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 299 struct extent_buffer *eb, in process_one_buffer() 347 struct extent_buffer *eb, int slot, in overwrite_item() 496 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item() 576 struct extent_buffer *eb, int slot, in replay_one_extent() 633 struct extent_buffer *leaf; in replay_one_extent() 859 struct extent_buffer *leaf; in drop_one_dir_item() 998 struct extent_buffer *leaf; in __add_inode_ref() [all …]
|
D | file-item.c | 136 struct extent_buffer *leaf; in btrfs_insert_file_extent() 182 struct extent_buffer *leaf; in btrfs_lookup_csum() 401 struct extent_buffer *leaf; in btrfs_lookup_csums_range() 650 struct extent_buffer *leaf; in truncate_one_csum() 703 struct extent_buffer *leaf; in btrfs_del_csums() 850 struct extent_buffer *leaf = NULL; in btrfs_csum_file_blocks() 1052 struct extent_buffer *leaf = path->nodes[0]; in btrfs_extent_item_to_extent_map() 1117 const struct extent_buffer *leaf = path->nodes[0]; in btrfs_file_extent_end()
|
D | qgroup.c | 334 struct extent_buffer *l; in btrfs_read_qgroup_config() 645 struct extent_buffer *leaf; in add_qgroup_item() 758 struct extent_buffer *l; in update_qgroup_limit_item() 801 struct extent_buffer *l; in update_qgroup_info_item() 846 struct extent_buffer *l; in update_qgroup_status_item() 889 struct extent_buffer *leaf = NULL; in btrfs_clean_quota_tree() 935 struct extent_buffer *leaf; in btrfs_quota_enable() 1785 struct extent_buffer *eb) in btrfs_qgroup_trace_leaf_items() 1844 struct extent_buffer *eb; in adjust_slots_upwards() 1934 struct extent_buffer *src_eb, in qgroup_trace_extent_swap() [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | btrfs.h | 25 struct extent_buffer; 371 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 426 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 467 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 476 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 485 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 494 TP_PROTO(const struct btrfs_inode *bi, const struct extent_buffer *l, 1021 TP_PROTO(const struct btrfs_root *root, const struct extent_buffer *buf, 1022 const struct extent_buffer *cow), 2029 TP_PROTO(const struct extent_buffer *eb, u64 start_ns), [all …]
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
D | extent-io-tests.c | 271 static int check_eb_bitmap(unsigned long *bitmap, struct extent_buffer *eb, in check_eb_bitmap() 296 static int __test_eb_bitmaps(unsigned long *bitmap, struct extent_buffer *eb, in __test_eb_bitmaps() 384 struct extent_buffer *eb = NULL; in test_eb_bitmaps()
|