Home
last modified time | relevance | path

Searched refs:extent_buffer (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.1.9/fs/btrfs/
Dextent_io.h78 struct extent_buffer { struct
163 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
165 struct extent_buffer *__alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
167 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info,
169 struct extent_buffer *btrfs_clone_extent_buffer(const struct extent_buffer *src);
170 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info,
172 void free_extent_buffer(struct extent_buffer *eb);
173 void free_extent_buffer_stale(struct extent_buffer *eb);
177 int read_extent_buffer_pages(struct extent_buffer *eb, int wait,
179 void wait_on_extent_buffer_writeback(struct extent_buffer *eb);
[all …]
Dlocking.h86 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 …]
Dtree-mod-log.h31 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,
Dlocking.c80 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 …]
Dtree-checker.h17 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,
28 int btrfs_check_eb_owner(const struct extent_buffer *eb, u64 root_owner);
Dctree.c27 struct extent_buffer *dst,
28 struct extent_buffer *src, int empty);
30 struct extent_buffer *dst_buf,
31 struct extent_buffer *src_buf);
142 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node()
144 struct extent_buffer *eb; in btrfs_root_node()
199 struct extent_buffer *buf, in btrfs_copy_root()
200 struct extent_buffer **cow_ret, u64 new_root_objectid) in btrfs_copy_root()
203 struct extent_buffer *cow; in btrfs_copy_root()
259 struct extent_buffer *buf) in btrfs_block_can_be_shared()
[all …]
Ddisk-io.h33 int btrfs_verify_level_key(struct extent_buffer *eb, int level,
35 struct extent_buffer *read_tree_block(struct btrfs_fs_info *fs_info, u64 bytenr,
38 struct extent_buffer *btrfs_find_create_tree_block(
42 void btrfs_clean_tree_block(struct extent_buffer *buf);
117 void btrfs_mark_buffer_dirty(struct extent_buffer *buf);
118 int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
120 int btrfs_read_extent_buffer(struct extent_buffer *buf, u64 parent_transid,
Dtree-mod-log.c170 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 …]
Dctree.h422 struct extent_buffer *nodes[BTRFS_MAX_LEVEL];
1323 struct extent_buffer *node;
1325 struct extent_buffer *commit_root;
1732 struct extent_buffer *eb;
1741 struct extent_buffer *eb) in btrfs_init_map_token()
1784 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
1786 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \
1795 static inline u##bits btrfs_##name(const struct extent_buffer *eb, \
1801 static inline void btrfs_set_##name(const struct extent_buffer *eb, type *s, \
1821 static inline u##bits btrfs_##name(const struct extent_buffer *eb) \
[all …]
Dextent_io.c37 static inline void btrfs_leak_debug_add_eb(struct extent_buffer *eb) in btrfs_leak_debug_add_eb()
47 static inline void btrfs_leak_debug_del_eb(struct extent_buffer *eb) in btrfs_leak_debug_del_eb()
59 struct extent_buffer *eb; in btrfs_extent_buffer_leak_debug_check()
73 struct extent_buffer, leak_list); in btrfs_extent_buffer_leak_debug_check()
167 sizeof(struct extent_buffer), 0, in extent_buffer_init_cachep()
630 int btrfs_repair_eb_io_failure(const struct extent_buffer *eb, int mirror_num) in btrfs_repair_eb_io_failure()
1141 static struct extent_buffer *find_extent_buffer_readpage( in find_extent_buffer_readpage()
1144 struct extent_buffer *eb; in find_extent_buffer_readpage()
1152 return (struct extent_buffer *)page->private; in find_extent_buffer_readpage()
1276 struct extent_buffer *eb; in end_bio_extent_readpage()
[all …]
Dprint-tree.c49 static void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk) in print_chunk()
62 static void print_dev_item(struct extent_buffer *eb, in print_dev_item()
70 static void print_extent_data_ref(struct extent_buffer *eb, in print_extent_data_ref()
80 static void print_extent_item(struct extent_buffer *eb, int slot, int type) in print_extent_item()
169 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()
199 void btrfs_print_leaf(struct extent_buffer *l) in btrfs_print_leaf()
355 void btrfs_print_tree(struct extent_buffer *c, bool follow) in btrfs_print_tree()
388 struct extent_buffer *next; in btrfs_print_tree()
Dtree-checker.c51 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()
480 static int check_dir_item(struct extent_buffer *leaf, in check_dir_item()
[all …]
Dzoned.h56 struct extent_buffer *eb);
63 struct extent_buffer *eb,
66 struct extent_buffer *eb);
78 struct extent_buffer *eb);
184 struct extent_buffer *eb) { } in btrfs_redirty_list_add()
201 struct extent_buffer *eb, in btrfs_check_meta_write_pointer()
209 struct extent_buffer *eb) in btrfs_revert_meta_write_pointer()
253 struct extent_buffer *eb) { } in btrfs_schedule_zone_finish_bg()
Dinode-item.h14 struct extent_buffer;
89 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf,
93 struct extent_buffer *leaf, int slot, u64 ref_objectid,
Dqgroup.h330 struct extent_buffer *eb);
342 struct extent_buffer *root_eb,
432 struct extent_buffer *subvol_parent, int subvol_slot,
433 struct extent_buffer *reloc_parent, int reloc_slot,
436 struct btrfs_root *root, struct extent_buffer *eb);
Dprint-tree.h12 void btrfs_print_leaf(struct extent_buffer *l);
13 void btrfs_print_tree(struct extent_buffer *c, bool follow);
Droot-tree.c22 static void btrfs_read_root_item(struct extent_buffer *eb, int slot, in btrfs_read_root_item()
67 struct extent_buffer *l; in btrfs_find_root()
106 struct extent_buffer *node) in btrfs_set_root_node()
122 struct extent_buffer *l; in btrfs_update_root()
208 struct extent_buffer *leaf; in btrfs_find_orphan_roots()
337 struct extent_buffer *leaf; in btrfs_del_root_ref()
411 struct extent_buffer *leaf; in btrfs_add_root_ref()
Dstruct-funcs.c10 static bool check_setget_bounds(const struct extent_buffer *eb, in check_setget_bounds()
80 u##bits btrfs_get_##bits(const struct extent_buffer *eb, \
132 void btrfs_set_##bits(const struct extent_buffer *eb, void *ptr, \
160 void btrfs_node_key(const struct extent_buffer *eb, in btrfs_node_key()
Ddir-item.c30 struct extent_buffer *leaf; in insert_with_overflow()
64 struct extent_buffer *leaf; in btrfs_insert_xattr_item()
115 struct extent_buffer *leaf; in btrfs_insert_dir_item()
233 struct extent_buffer *leaf; in btrfs_check_dir_item_collision()
386 struct extent_buffer *leaf; in btrfs_match_dir_item_name()
419 struct extent_buffer *leaf; in btrfs_delete_one_dir_name()
Dinode-item.c12 struct btrfs_inode_ref *btrfs_find_name_in_backref(struct extent_buffer *leaf, in btrfs_find_name_in_backref()
39 struct extent_buffer *leaf, int slot, u64 ref_objectid, in btrfs_find_name_in_ext_backref()
108 struct extent_buffer *leaf; in btrfs_del_inode_extref()
178 struct extent_buffer *leaf; in btrfs_del_inode_ref()
259 struct extent_buffer *leaf; in btrfs_insert_inode_extref()
404 struct extent_buffer *leaf; in btrfs_lookup_inode()
423 struct extent_buffer *leaf, in btrfs_trace_truncate()
460 struct extent_buffer *leaf; in btrfs_truncate_inode_items()
Dbackref.h42 int tree_backref_for_extent(unsigned long *ptr, struct extent_buffer *eb,
68 struct extent_buffer *eb_in, u64 parent,
125 static inline struct extent_buffer *btrfs_backref_get_eb( in btrfs_backref_get_eb()
201 struct extent_buffer *eb;
Duuid-tree.c27 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()
Dbackref.c29 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()
973 struct extent_buffer *leaf; in add_inline_refs()
1097 struct extent_buffer *leaf; in add_keyed_refs()
1297 struct extent_buffer *leaf; in find_parent_nodes()
1369 struct extent_buffer *eb; in find_parent_nodes()
1812 const struct extent_buffer *leaf; in btrfs_find_one_extref()
[all …]
Dextent-tree.c49 struct extent_buffer *leaf,
125 struct extent_buffer *leaf; in btrfs_lookup_extent_info()
356 int btrfs_get_extent_inline_ref_type(const struct extent_buffer *eb, in btrfs_get_extent_inline_ref_type()
399 btrfs_print_leaf((struct extent_buffer *)eb); in btrfs_get_extent_inline_ref_type()
424 static u64 hash_extent_data_ref_item(struct extent_buffer *leaf, in hash_extent_data_ref_item()
432 static int match_extent_data_ref(struct extent_buffer *leaf, in match_extent_data_ref()
452 struct extent_buffer *leaf; in lookup_extent_data_ref()
527 struct extent_buffer *leaf; in insert_extent_data_ref()
606 struct extent_buffer *leaf; in remove_extent_data_ref()
648 struct extent_buffer *leaf; in extent_data_ref_count()
[all …]
Dtree-log.c273 static void btrfs_wait_tree_block_writeback(struct extent_buffer *buf) in btrfs_wait_tree_block_writeback()
317 int (*process_func)(struct btrfs_root *log, struct extent_buffer *eb,
325 struct extent_buffer *eb, in process_one_buffer()
357 struct extent_buffer *eb, int slot, in do_overwrite_item()
518 struct extent_buffer *dst_eb = path->nodes[0]; in do_overwrite_item()
585 struct extent_buffer *eb, int slot, in overwrite_item()
628 struct extent_buffer *eb, int slot, in replay_one_extent()
686 struct extent_buffer *leaf; in replay_one_extent()
938 struct extent_buffer *leaf; in drop_one_dir_item()
1071 struct extent_buffer *leaf; in __add_inode_ref()
[all …]

123