/fs/btrfs/ |
D | locking.c | 17 static void btrfs_assert_spinning_writers_get(struct extent_buffer *eb) in btrfs_assert_spinning_writers_get() 23 static void btrfs_assert_spinning_writers_put(struct extent_buffer *eb) in btrfs_assert_spinning_writers_put() 29 static void btrfs_assert_no_spinning_writers(struct extent_buffer *eb) in btrfs_assert_no_spinning_writers() 34 static void btrfs_assert_spinning_readers_get(struct extent_buffer *eb) in btrfs_assert_spinning_readers_get() 39 static void btrfs_assert_spinning_readers_put(struct extent_buffer *eb) in btrfs_assert_spinning_readers_put() 45 static void btrfs_assert_tree_read_locks_get(struct extent_buffer *eb) in btrfs_assert_tree_read_locks_get() 50 static void btrfs_assert_tree_read_locks_put(struct extent_buffer *eb) in btrfs_assert_tree_read_locks_put() 55 static void btrfs_assert_tree_read_locked(struct extent_buffer *eb) in btrfs_assert_tree_read_locked() 60 static void btrfs_assert_tree_write_locks_get(struct extent_buffer *eb) in btrfs_assert_tree_write_locks_get() 65 static void btrfs_assert_tree_write_locks_put(struct extent_buffer *eb) in btrfs_assert_tree_write_locks_put() [all …]
|
D | locking.h | 14 void btrfs_tree_lock(struct extent_buffer *eb); 15 void btrfs_tree_unlock(struct extent_buffer *eb); 17 void btrfs_tree_read_lock(struct extent_buffer *eb); 18 void btrfs_tree_read_unlock(struct extent_buffer *eb); 19 void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb); 20 void btrfs_set_lock_blocking_read(struct extent_buffer *eb); 21 void btrfs_set_lock_blocking_write(struct extent_buffer *eb); 22 void btrfs_assert_tree_locked(struct extent_buffer *eb); 23 int btrfs_try_tree_read_lock(struct extent_buffer *eb); 24 int btrfs_try_tree_write_lock(struct extent_buffer *eb); [all …]
|
D | extent_io.h | 158 struct extent_buffer { struct 421 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, 423 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 425 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, 427 struct extent_buffer *btrfs_clone_extent_buffer(struct extent_buffer *src); 428 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, 430 void free_extent_buffer(struct extent_buffer *eb); 431 void free_extent_buffer_stale(struct extent_buffer *eb); 435 int read_extent_buffer_pages(struct extent_buffer *eb, int wait, 437 void wait_on_extent_buffer_writeback(struct extent_buffer *eb); [all …]
|
D | disk-io.h | 42 int btrfs_verify_level_key(struct extent_buffer *eb, int level, 44 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr, 48 struct extent_buffer *btrfs_find_create_tree_block( 51 void btrfs_clean_tree_block(struct extent_buffer *buf); 111 void btrfs_mark_buffer_dirty(struct extent_buffer *buf); 112 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, 114 int btrfs_read_buffer(struct extent_buffer *buf, u64 parent_transid, int level, 146 struct extent_buffer *eb, int level); 151 struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class()
|
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); 126 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node() 128 struct extent_buffer *eb; in btrfs_root_node() 154 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node() 156 struct extent_buffer *eb; in btrfs_lock_root_node() 173 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node() 175 struct extent_buffer *eb; in btrfs_read_lock_root_node() [all …]
|
D | ctree.h | 347 struct extent_buffer *nodes[BTRFS_MAX_LEVEL]; 963 struct extent_buffer *node; 965 struct extent_buffer *commit_root; 1292 const struct extent_buffer *eb; 1301 struct extent_buffer *eb) in btrfs_init_map_token() 1328 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \ 1331 void btrfs_set_token_##bits(struct extent_buffer *eb, const void *ptr, \ 1334 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 1336 void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \ 1345 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \ [all …]
|
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 | 49 static void generic_err(const struct extent_buffer *eb, int slot, in generic_err() 74 static void file_extent_err(const struct extent_buffer *eb, int slot, in file_extent_err() 110 static u64 file_extent_end(struct extent_buffer *leaf, in file_extent_end() 127 static int check_extent_data_item(struct extent_buffer *leaf, in check_extent_data_item() 245 static int check_csum_item(struct extent_buffer *leaf, struct btrfs_key *key, in check_csum_item() 293 static void dir_item_err(const struct extent_buffer *eb, int slot, in dir_item_err() 315 static int check_dir_item(struct extent_buffer *leaf, in check_dir_item() 427 static void block_group_err(const struct extent_buffer *eb, int slot, in block_group_err() 449 static int check_block_group_item(struct extent_buffer *leaf, in check_block_group_item() 520 static void chunk_err(const struct extent_buffer *leaf, in chunk_err() [all …]
|
D | print-tree.c | 10 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk() 23 static void print_dev_item(struct extent_buffer *eb, in print_dev_item() 31 static void print_extent_data_ref(struct extent_buffer *eb, in print_extent_data_ref() 41 static void print_extent_item(struct extent_buffer *eb, int slot, int type) in print_extent_item() 128 static void print_uuid_item(struct extent_buffer *l, unsigned long offset, in print_uuid_item() 151 static void print_eb_refs_lock(struct extent_buffer *eb) in print_eb_refs_lock() 166 void btrfs_print_leaf(struct extent_buffer *l) in btrfs_print_leaf() 324 void btrfs_print_tree(struct extent_buffer *c, bool follow) in btrfs_print_tree() 357 struct extent_buffer *next; in btrfs_print_tree()
|
D | struct-funcs.c | 41 u##bits btrfs_get_token_##bits(const struct extent_buffer *eb, \ 79 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \ 104 void btrfs_set_token_##bits(struct extent_buffer *eb, \ 142 void btrfs_set_##bits(struct extent_buffer *eb, void *ptr, \ 172 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
|
D | qgroup.h | 316 struct extent_buffer *eb); 328 struct extent_buffer *root_eb, 412 struct extent_buffer *subvol_parent, int subvol_slot, 413 struct extent_buffer *reloc_parent, int reloc_slot, 416 struct btrfs_root *root, struct extent_buffer *eb);
|
D | extent_io.c | 66 struct extent_buffer *eb; in btrfs_leak_debug_check() 79 eb = list_entry(buffers.next, struct extent_buffer, leak_list); in btrfs_leak_debug_check() 208 sizeof(struct extent_buffer), 0, in extent_io_init() 2256 int btrfs_repair_eb_io_failure(struct extent_buffer *eb, int mirror_num) in btrfs_repair_eb_io_failure() 2791 struct extent_buffer *eb; in end_bio_extent_readpage() 2793 eb = (struct extent_buffer *)page->private; in end_bio_extent_readpage() 2996 static void attach_extent_buffer_page(struct extent_buffer *eb, in attach_extent_buffer_page() 3625 void wait_on_extent_buffer_writeback(struct extent_buffer *eb) in wait_on_extent_buffer_writeback() 3631 static void end_extent_buffer_writeback(struct extent_buffer *eb) in end_extent_buffer_writeback() 3645 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() 71 struct extent_buffer *l; in btrfs_find_root() 110 struct extent_buffer *node) in btrfs_set_root_node() 126 struct extent_buffer *l; in btrfs_update_root() 212 struct extent_buffer *leaf; in btrfs_find_orphan_roots() 359 struct extent_buffer *leaf; in btrfs_del_root_ref() 433 struct extent_buffer *leaf; in btrfs_add_root_ref()
|
D | print-tree.h | 9 void btrfs_print_leaf(struct extent_buffer *l); 10 void btrfs_print_tree(struct extent_buffer *c, bool follow);
|
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.c | 27 const struct extent_buffer *eb, in check_extent_in_eb() 74 static int find_extent_in_eb(const struct extent_buffer *eb, in find_extent_in_eb() 419 struct extent_buffer *eb; in add_all_parents() 511 struct extent_buffer *eb; in resolve_indirect_ref() 718 struct extent_buffer *eb; in add_missing_keys() 883 struct extent_buffer *leaf; in add_inline_refs() 1006 struct extent_buffer *leaf; in add_keyed_refs() 1208 struct extent_buffer *leaf; 1281 struct extent_buffer *eb; 1539 const struct extent_buffer *leaf; [all …]
|
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() 257 struct extent_buffer *leaf; in btrfs_uuid_tree_iterate()
|
D | extent-tree.c | 45 struct extent_buffer *leaf, 158 struct extent_buffer *leaf; in btrfs_lookup_extent_info() 388 int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, in btrfs_get_extent_inline_ref_type() 433 btrfs_print_leaf((struct extent_buffer *)eb); in btrfs_get_extent_inline_ref_type() 457 static u64 hash_extent_data_ref_item(struct extent_buffer *leaf, in hash_extent_data_ref_item() 465 static int match_extent_data_ref(struct extent_buffer *leaf, in match_extent_data_ref() 485 struct extent_buffer *leaf; in lookup_extent_data_ref() 560 struct extent_buffer *leaf; in insert_extent_data_ref() 638 struct extent_buffer *leaf; in remove_extent_data_ref() 681 struct extent_buffer *leaf; in extent_data_ref_count() [all …]
|
D | tree-log.c | 229 static int btrfs_write_tree_block(struct extent_buffer *buf) in btrfs_write_tree_block() 235 static void btrfs_wait_tree_block_writeback(struct extent_buffer *buf) in btrfs_wait_tree_block_writeback() 289 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb, 297 struct extent_buffer *eb, in process_one_buffer() 345 struct extent_buffer *eb, int slot, in overwrite_item() 494 struct extent_buffer *dst_eb = path->nodes[0]; in overwrite_item() 583 struct extent_buffer *eb, int slot, in replay_one_extent() 640 struct extent_buffer *leaf; in replay_one_extent() 859 struct extent_buffer *leaf; in drop_one_dir_item() 1012 struct extent_buffer *leaf; in __add_inode_ref() [all …]
|
D | backref.h | 26 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb, 48 struct extent_buffer *eb_in, u64 parent,
|
D | qgroup.c | 333 struct extent_buffer *l; in btrfs_read_qgroup_config() 595 struct extent_buffer *leaf; in add_qgroup_item() 708 struct extent_buffer *l; in update_qgroup_limit_item() 751 struct extent_buffer *l; in update_qgroup_info_item() 796 struct extent_buffer *l; in update_qgroup_status_item() 839 struct extent_buffer *leaf = NULL; in btrfs_clean_quota_tree() 885 struct extent_buffer *leaf; in btrfs_quota_enable() 1636 struct extent_buffer *eb) in btrfs_qgroup_trace_leaf_items() 1695 struct extent_buffer *eb; in adjust_slots_upwards() 1785 struct extent_buffer *src_eb, in qgroup_trace_extent_swap() [all …]
|
D | disk-io.c | 182 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, in btrfs_set_buffer_lockdep_class() 255 static int csum_tree_block(struct extent_buffer *buf, u8 *result) in csum_tree_block() 302 struct extent_buffer *eb, u64 parent_transid, in verify_parent_transid() 391 int btrfs_verify_level_key(struct extent_buffer *eb, int level, in btrfs_verify_level_key() 457 static int btree_read_extent_buffer_pages(struct extent_buffer *eb, in btree_read_extent_buffer_pages() 519 struct extent_buffer *eb; in csum_dirty_buffer() 522 eb = (struct extent_buffer *)page->private; in csum_dirty_buffer() 558 static int check_tree_block_fsid(struct extent_buffer *eb) in check_tree_block_fsid() 595 struct extent_buffer *eb; in btree_readpage_end_io_hook() 606 eb = (struct extent_buffer *)page->private; in btree_readpage_end_io_hook() [all …]
|
D | file-item.c | 45 struct extent_buffer *leaf; in btrfs_insert_file_extent() 91 struct extent_buffer *leaf; in btrfs_lookup_csum() 308 struct extent_buffer *leaf; in btrfs_lookup_csums_range() 547 struct extent_buffer *leaf; in truncate_one_csum() 600 struct extent_buffer *leaf; in btrfs_del_csums() 747 struct extent_buffer *leaf = NULL; in btrfs_csum_file_blocks() 943 struct extent_buffer *leaf = path->nodes[0]; in btrfs_extent_item_to_extent_map()
|
D | reada.c | 95 struct reada_extent *re, struct extent_buffer *eb, in __readahead_hook() 198 int btree_readahead_hook(struct extent_buffer *eb, int err) in btree_readahead_hook() 643 int mirror_num, struct extent_buffer **eb) in reada_tree_block_flagged() 645 struct extent_buffer *buf = NULL; in reada_tree_block_flagged() 676 struct extent_buffer *eb = NULL; in reada_start_machine_dev() 935 struct extent_buffer *node; in btrfs_reada_add()
|