Home
last modified time | relevance | path

Searched refs:btrfs_root (Results 1 – 25 of 64) sorted by relevance

123

/Linux-v6.1/fs/btrfs/
Ddisk-io.h59 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
62 struct btrfs_root *root);
65 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info,
67 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info,
69 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info,
72 int btrfs_global_root_insert(struct btrfs_root *root);
73 void btrfs_global_root_delete(struct btrfs_root *root);
74 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info,
76 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr);
77 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr);
[all …]
Dtransaction.h155 struct btrfs_root *root;
157 struct btrfs_root *snap;
204 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
207 struct btrfs_root *root,
209 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
210 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
211 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
212 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
214 struct btrfs_root *root);
217 void btrfs_add_dead_root(struct btrfs_root *root);
[all …]
Dinode-item.h9 struct btrfs_root;
64 struct btrfs_root *root,
67 struct btrfs_root *root,
71 struct btrfs_root *root,
75 struct btrfs_root *root,
77 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root
83 struct btrfs_root *root,
Dqgroup.h367 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
369 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
373 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans()
380 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc()
389 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes,
393 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans()
401 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc()
412 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root);
420 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes);
428 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *root);
[all …]
Dtree-log.h79 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
80 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
83 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
88 struct btrfs_root *root,
92 struct btrfs_root *root,
95 void btrfs_end_log_trans(struct btrfs_root *root);
96 void btrfs_pin_log_trans(struct btrfs_root *root);
Dctree.h629 struct btrfs_root *tree_root;
630 struct btrfs_root *chunk_root;
631 struct btrfs_root *dev_root;
632 struct btrfs_root *fs_root;
633 struct btrfs_root *quota_root;
634 struct btrfs_root *uuid_root;
635 struct btrfs_root *data_reloc_root;
636 struct btrfs_root *block_group_root;
639 struct btrfs_root *log_root_tree;
1314 struct btrfs_root { struct
[all …]
Dlocking.h95 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
96 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root);
97 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root);
137 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb);
143 static inline void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, in btrfs_maybe_reset_lockdep_class()
Droot-tree.c62 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root()
116 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
195 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
207 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots()
211 struct btrfs_root *root; in btrfs_find_orphan_roots()
310 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
334 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
406 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
470 struct btrfs_root *root) in btrfs_update_root_times()
497 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
[all …]
Ddir-item.c20 struct btrfs_root *root, in insert_with_overflow()
54 struct btrfs_root *root, in btrfs_insert_xattr_item()
112 struct btrfs_root *root = dir->root; in btrfs_insert_dir_item()
173 struct btrfs_root *root, struct btrfs_path *path, in btrfs_lookup_match_dir()
207 struct btrfs_root *root, in btrfs_lookup_dir_item()
226 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir, in btrfs_check_dir_item_collision()
304 struct btrfs_root *root, in btrfs_lookup_dir_index_item()
324 btrfs_search_dir_index_item(struct btrfs_root *root, in btrfs_search_dir_index_item()
353 struct btrfs_root *root, in btrfs_lookup_xattr()
414 struct btrfs_root *root, in btrfs_delete_one_dir_name()
Ddisk-io.c54 static void btrfs_destroy_ordered_extents(struct btrfs_root *root);
57 static void btrfs_destroy_delalloc_inodes(struct btrfs_root *root);
715 struct btrfs_root *root; in btree_csum_one_bio()
967 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
1045 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
1048 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root()
1056 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
1058 struct btrfs_root *root; in btrfs_alloc_dummy_root()
1076 const struct btrfs_root *a = rb_entry(a_node, struct btrfs_root, rb_node); in global_root_cmp()
1077 const struct btrfs_root *b = rb_entry(b_node, struct btrfs_root, rb_node); in global_root_cmp()
[all …]
Drelocation.c122 struct btrfs_root *extent_root;
293 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead()
314 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root()
323 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
325 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
353 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
358 struct btrfs_root *root = NULL; in find_reloc_root()
540 struct btrfs_root *src, in clone_backref_node()
541 struct btrfs_root *dest) in clone_backref_node()
543 struct btrfs_root *reloc_root = src->reloc_root; in clone_backref_node()
[all …]
Dtree-log.c102 struct btrfs_root *root,
105 struct btrfs_root *root,
106 struct btrfs_root *log,
109 static void wait_log_commit(struct btrfs_root *root, int transid);
140 struct btrfs_root *root, in start_log_trans()
144 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans()
227 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans()
256 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans()
265 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans()
307 struct btrfs_root *replay_dest;
[all …]
Dtransaction.c163 struct btrfs_root *root, *tmp; in switch_commit_roots()
189 struct btrfs_root, root_list); in switch_commit_roots()
387 struct btrfs_root *root, in record_root_in_trans()
448 struct btrfs_root *root) in btrfs_add_dropped_root()
467 struct btrfs_root *root) in btrfs_record_root_in_trans()
533 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root()
547 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction()
747 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
755 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv()
762 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction()
[all …]
Dbackref.h16 struct btrfs_root *fs_root;
66 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
72 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
76 int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
80 int btrfs_is_data_extent_shared(struct btrfs_root *root, u64 inum, u64 bytenr,
199 struct btrfs_root *root;
Duuid-tree.c22 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, u8 *uuid, in btrfs_uuid_tree_lookup()
86 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add()
150 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove()
228 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem()
260 struct btrfs_root *subvol_root; in btrfs_check_uuid_tree_entry()
292 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
Ddelayed-inode.h46 struct btrfs_root *root;
138 struct btrfs_root *root,
144 void btrfs_kill_all_delayed_nodes(struct btrfs_root *root);
Dctree.c21 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
23 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root,
32 static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
142 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node()
171 static void add_root_to_dirty_list(struct btrfs_root *root) in add_root_to_dirty_list()
198 struct btrfs_root *root, in btrfs_copy_root()
258 int btrfs_block_can_be_shared(struct btrfs_root *root, in btrfs_block_can_be_shared()
277 struct btrfs_root *root, in update_ref_for_cow()
398 struct btrfs_root *root, in __btrfs_cow_block()
517 struct btrfs_root *root, in should_cow_block()
[all …]
Dfree-space-tree.c19 static struct btrfs_root *btrfs_free_space_root( in btrfs_free_space_root()
68 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_new_free_space_info()
102 struct btrfs_root *root = btrfs_free_space_root(block_group); in search_free_space_info()
129 struct btrfs_root *root, in btrfs_search_prev_slot()
205 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_bitmaps()
343 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_extents()
574 struct btrfs_root *root, struct btrfs_path *p) in free_space_next_bitmap()
603 struct btrfs_root *root = btrfs_free_space_root(block_group); in modify_free_space_bitmap()
716 struct btrfs_root *root = btrfs_free_space_root(block_group); in remove_free_space_extent()
868 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_free_space_extent()
[all …]
Dlocking.c94 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class()
248 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root) in btrfs_lock_root_node()
271 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root) in btrfs_read_lock_root_node()
295 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root) in btrfs_try_read_lock_root_node()
Dorphan.c10 struct btrfs_root *root, u64 offset) in btrfs_insert_orphan_item()
31 struct btrfs_root *root, u64 offset) in btrfs_del_orphan_item()
Dverity.c106 struct btrfs_root *root = inode->root; in drop_verity_items()
216 struct btrfs_root *root = inode->root; in write_key_bytes()
295 struct btrfs_root *root = inode->root; in read_key_bytes()
422 struct btrfs_root *root = inode->root; in del_orphan()
455 struct btrfs_root *root = inode->root; in rollback_verity()
522 struct btrfs_root *root = inode->root; in finish_verity()
579 struct btrfs_root *root = inode->root; in btrfs_begin_enable_verity()
Dtree-mod-log.h41 struct extent_buffer *btrfs_get_old_root(struct btrfs_root *root, u64 time_seq);
42 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
Dinode-item.c76 struct btrfs_root *root, in btrfs_lookup_inode_extref()
100 struct btrfs_root *root, in btrfs_del_inode_extref()
171 struct btrfs_root *root, in btrfs_del_inode_ref()
249 struct btrfs_root *root, in btrfs_insert_inode_extref()
304 struct btrfs_root *root, in btrfs_insert_inode_ref()
382 struct btrfs_root *root, in btrfs_insert_empty_inode()
396 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
455 struct btrfs_root *root, in btrfs_truncate_inode_items()
/Linux-v6.1/fs/btrfs/tests/
Dqgroup-tests.c14 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref()
66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref()
117 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item()
148 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref()
203 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup()
302 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs()
442 struct btrfs_root *root; in btrfs_test_qgroups()
443 struct btrfs_root *tmp_root; in btrfs_test_qgroups()
Dbtrfs-tests.h30 struct btrfs_root;
43 void btrfs_free_dummy_root(struct btrfs_root *root);

123