Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
H A Ddisk-io.h65 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
68 struct btrfs_root *root);
71 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info,
73 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info,
75 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info,
78 int btrfs_global_root_insert(struct btrfs_root *root);
79 void btrfs_global_root_delete(struct btrfs_root *root);
80 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info,
82 struct btrfs_root *btrfs_csum_root(struct btrfs_fs_info *fs_info, u64 bytenr);
83 struct btrfs_root *btrfs_extent_root(struct btrfs_fs_info *fs_info, u64 bytenr);
[all …]
H A Dctree.h172 struct btrfs_root { struct
178 struct btrfs_root *log_root; argument
179 struct btrfs_root *reloc_root; argument
321 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly() argument
327 static inline bool btrfs_root_dead(const struct btrfs_root *root) in btrfs_root_dead()
333 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id()
338 static inline int btrfs_get_root_log_transid(const struct btrfs_root *root) in btrfs_get_root_log_transid()
343 static inline void btrfs_set_root_log_transid(struct btrfs_root *root, int log_transid) in btrfs_set_root_log_transid()
348 static inline int btrfs_get_root_last_log_commit(const struct btrfs_root *root) in btrfs_get_root_last_log_commit()
353 static inline void btrfs_set_root_last_log_commit(struct btrfs_root *root, int commit_id) in btrfs_set_root_last_log_commit()
[all …]
H A Dtransaction.h24 struct btrfs_root;
200 struct btrfs_root *root;
202 struct btrfs_root *snap;
309 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
312 struct btrfs_root *root,
314 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
315 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
316 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
317 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
319 struct btrfs_root *root);
[all …]
H A Ddir-item.h14 struct btrfs_root;
17 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir_ino,
23 struct btrfs_root *root,
28 struct btrfs_root *root,
31 struct btrfs_dir_item *btrfs_search_dir_index_item(struct btrfs_root *root,
35 struct btrfs_root *root,
39 struct btrfs_root *root,
44 struct btrfs_root *root,
H A Dinode-item.h12 struct btrfs_root;
89 struct btrfs_root *root,
92 struct btrfs_root *root, const struct fscrypt_str *name,
95 struct btrfs_root *root, const struct fscrypt_str *name,
98 struct btrfs_root *root,
101 struct btrfs_root *root, struct btrfs_path *path,
104 struct btrfs_inode_extref *btrfs_lookup_inode_extref(struct btrfs_root *root,
H A Droot-tree.h11 struct btrfs_root;
18 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
28 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
31 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
33 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key,
40 void btrfs_update_root_times(struct btrfs_trans_handle *trans, struct btrfs_root *root);
H A Dlocking.h17 struct btrfs_root;
193 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
194 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root);
195 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root);
239 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb);
245 static inline void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, in btrfs_maybe_reset_lockdep_class()
H A Dorphan.h9 struct btrfs_root;
12 struct btrfs_root *root, u64 offset);
14 struct btrfs_root *root, u64 offset);
H A Ddisk-io.c633 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
636 struct btrfs_root *root; in btrfs_alloc_root()
698 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
700 struct btrfs_root *root; in btrfs_alloc_dummy_root()
718 const struct btrfs_root *a = rb_entry(a_node, struct btrfs_root, rb_node); in global_root_cmp()
719 const struct btrfs_root *b = rb_entry(b_node, struct btrfs_root, rb_node); in global_root_cmp()
727 const struct btrfs_root *root = rb_entry(node, struct btrfs_root, rb_node); in global_root_key_cmp()
732 int btrfs_global_root_insert(struct btrfs_root *root) in btrfs_global_root_insert()
750 void btrfs_global_root_delete(struct btrfs_root *root) in btrfs_global_root_delete()
759 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info, in btrfs_global_root()
[all …]
H A Droot-tree.c67 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root()
128 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
203 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
215 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots()
219 struct btrfs_root *root; in btrfs_find_orphan_roots()
312 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
333 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
401 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
462 struct btrfs_root *root) in btrfs_update_root_times()
490 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
H A Dtree-mod-log.h11 struct btrfs_root;
46 struct extent_buffer *btrfs_get_old_root(struct btrfs_root *root, u64 time_seq);
47 int btrfs_old_root_level(struct btrfs_root *root, u64 time_seq);
H A Duuid-tree.c26 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, const u8 *uuid, in btrfs_uuid_tree_lookup()
82 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add()
134 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove()
237 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem()
265 struct btrfs_root *subvol_root; in btrfs_check_uuid_tree_entry()
297 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
394 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
529 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree()
530 struct btrfs_root *uuid_root; in btrfs_create_uuid_tree()
H A Dfs.h45 struct btrfs_root;
506 struct btrfs_root *tree_root;
507 struct btrfs_root *chunk_root;
508 struct btrfs_root *dev_root;
509 struct btrfs_root *fs_root;
510 struct btrfs_root *quota_root;
511 struct btrfs_root *uuid_root;
512 struct btrfs_root *data_reloc_root;
513 struct btrfs_root *block_group_root;
514 struct btrfs_root *stripe_root;
[all …]
H A Dtransaction.c184 struct btrfs_root *root, *tmp; in switch_commit_roots()
211 struct btrfs_root, root_list); in switch_commit_roots()
410 struct btrfs_root *root, in record_root_in_trans()
483 struct btrfs_root *root) in btrfs_add_dropped_root()
502 struct btrfs_root *root) in btrfs_record_root_in_trans()
569 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root()
612 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction()
838 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
846 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv()
853 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *roo in btrfs_join_transaction()
[all...]
H A Dbtrfs_inode.h29 struct btrfs_root;
129 struct btrfs_root *root;
355 const struct btrfs_root *root) in btrfs_inode_hash()
534 int btrfs_start_delalloc_snapshot(struct btrfs_root *root, bool in_reclaim_context);
579 struct btrfs_inode *btrfs_iget_path(u64 ino, struct btrfs_root *root,
581 struct btrfs_inode *btrfs_iget(u64 ino, struct btrfs_root *root);
589 int btrfs_orphan_cleanup(struct btrfs_root *root);
621 struct btrfs_inode *btrfs_find_first_inode(struct btrfs_root *root, u64 min_ino);
H A Drelocation.c150 struct btrfs_root *extent_root;
202 static void __del_reloc_root(struct btrfs_root *root);
206 struct btrfs_root *reloc_root, *tmp; in free_reloc_roots()
234 static void __del_reloc_root(struct btrfs_root *root) in __del_reloc_root()
253 ASSERT(!node || (struct btrfs_root *)node->data == root); in __del_reloc_root()
340 static bool reloc_root_is_dead(const struct btrfs_root *root) in reloc_root_is_dead()
362 static bool have_reloc_root(const struct btrfs_root *root) in have_reloc_root()
371 bool btrfs_should_ignore_reloc_root(const struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
373 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
400 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
[all …]
H A Dverity.c104 static struct btrfs_trans_handle *start_verity_cleanup_trans(struct btrfs_root *root, in start_verity_cleanup_trans()
125 struct btrfs_root *root = inode->root; in drop_verity_items()
230 struct btrfs_root *root = inode->root; in write_key_bytes()
306 struct btrfs_root *root = inode->root; in read_key_bytes()
432 struct btrfs_root *root = inode->root; in del_orphan()
465 struct btrfs_root *root = inode->root; in rollback_verity()
532 struct btrfs_root *root = inode->root; in finish_verity()
586 struct btrfs_root *root = inode->root; in btrfs_begin_enable_verity()
H A Dfree-space-tree.c24 struct btrfs_root *btrfs_free_space_root(struct btrfs_block_group *block_group) in btrfs_free_space_root()
72 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_new_free_space_info()
101 struct btrfs_root *root = btrfs_free_space_root(block_group); in btrfs_search_free_space_info()
128 struct btrfs_root *root, in btrfs_search_prev_slot()
202 struct btrfs_root *root = btrfs_free_space_root(block_group); in btrfs_convert_free_space_to_bitmaps()
348 struct btrfs_root *root = btrfs_free_space_root(block_group); in btrfs_convert_free_space_to_extents()
586 struct btrfs_root *root, struct btrfs_path *p) in free_space_next_bitmap()
615 struct btrfs_root *root = btrfs_free_space_root(block_group); in modify_free_space_bitmap()
721 struct btrfs_root *root = btrfs_free_space_root(block_group); in remove_free_space_extent()
881 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_free_space_extent()
[all …]
H A Dtree-log.c129 struct btrfs_root *root;
132 struct btrfs_root *log;
224 static bool wait_log_commit(struct btrfs_root *root, int transid);
249 static struct btrfs_inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging()
277 struct btrfs_root *root, in start_log_trans()
281 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans()
351 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans()
376 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans()
385 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans()
399 struct btrfs_root *log = wc->log; in process_one_buffer()
[all …]
H A Ddefrag.h12 struct btrfs_root;
24 int btrfs_defrag_root(struct btrfs_root *root);
H A Dctree.c30 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
32 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root,
188 struct extent_buffer *btrfs_root_node(struct btrfs_root *root) in btrfs_root_node()
217 static void add_root_to_dirty_list(struct btrfs_root *root) in add_root_to_dirty_list()
244 struct btrfs_root *root, in btrfs_copy_root()
313 const struct btrfs_root *root, in btrfs_block_can_be_shared()
350 struct btrfs_root *root, in update_ref_for_cow()
466 struct btrfs_root *root, in btrfs_force_cow_block()
604 const struct btrfs_root *root, in should_cow_block()
649 struct btrfs_root *root, struct extent_buffer *buf, in btrfs_cow_block()
[all …]
H A Dorphan.c10 struct btrfs_root *root, u64 offset) in btrfs_insert_orphan_item()
27 struct btrfs_root *root, u64 offset) in btrfs_del_orphan_item()
H A Dsend.h14 struct btrfs_root;
185 long btrfs_ioctl_send(struct btrfs_root *send_root, const struct btrfs_ioctl_send_args *arg);
H A Dfile.h18 struct btrfs_root;
27 struct btrfs_root *root, struct btrfs_inode *inode,
/linux/fs/btrfs/tests/
H A Dqgroup-tests.c16 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()
115 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item()
144 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref()
196 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup()
308 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs()
465 struct btrfs_root *root; in btrfs_test_qgroups()
466 struct btrfs_root *tmp_root; in btrfs_test_qgroups()

123