Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
H A Dctree.h168 struct btrfs_root { struct
174 struct btrfs_root *log_root; argument
175 struct btrfs_root *reloc_root; argument
326 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly() argument
332 static inline bool btrfs_root_dead(const struct btrfs_root *root) in btrfs_root_dead()
338 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id()
343 static inline int btrfs_get_root_log_transid(const struct btrfs_root *root) in btrfs_get_root_log_transid()
348 static inline void btrfs_set_root_log_transid(struct btrfs_root *root, int log_transid) in btrfs_set_root_log_transid()
353 static inline int btrfs_get_root_last_log_commit(const struct btrfs_root *root) in btrfs_get_root_last_log_commit()
358 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.h27 struct btrfs_root;
182 struct btrfs_root *root;
184 struct btrfs_root *snap;
259 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
262 struct btrfs_root *root,
264 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
265 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
266 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
267 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
269 struct btrfs_root *root);
[all …]
H A Dtree-log.h18 struct btrfs_root;
74 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
75 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
78 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
83 struct btrfs_root *root,
87 struct btrfs_root *root,
90 void btrfs_end_log_trans(struct btrfs_root *root);
91 void btrfs_pin_log_trans(struct btrfs_root *root);
H A Dqgroup.h20 struct btrfs_root;
392 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
394 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
398 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans()
405 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc()
414 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes,
418 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans()
426 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc()
433 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root);
434 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes);
[all …]
H A Dfile-item.h16 struct btrfs_root;
53 struct btrfs_root *root, u64 bytenr, u64 len);
56 struct btrfs_root *root, u64 objectid, u64 pos,
59 struct btrfs_root *root,
63 struct btrfs_root *root,
67 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
70 int btrfs_lookup_csums_list(struct btrfs_root *root, u64 start, u64 end,
72 int btrfs_lookup_csums_bitmap(struct btrfs_root *root, struct btrfs_path *path,
H A Drelocation.h10 struct btrfs_root;
16 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root);
18 struct btrfs_root *root);
22 struct btrfs_root *root,
30 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
31 bool btrfs_should_ignore_reloc_root(const 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,
106 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 Dextent-tree.h14 struct btrfs_root;
119 int btrfs_cross_ref_exist(struct btrfs_root *root,
123 struct btrfs_root *root,
135 struct btrfs_root *root, u64 owner,
141 int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes,
144 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
146 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
160 int btrfs_drop_snapshot(struct btrfs_root *root, int update_ref,
163 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);
234 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb);
240 static inline void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, in btrfs_maybe_reset_lockdep_class()
H A Ddisk-io.c646 static void __setup_root(struct btrfs_root *root, struct btrfs_fs_info *fs_info, in __setup_root()
719 static struct btrfs_root *btrfs_alloc_root(struct btrfs_fs_info *fs_info, in btrfs_alloc_root()
722 struct btrfs_root *root = kzalloc(sizeof(*root), flags); in btrfs_alloc_root()
730 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info) in btrfs_alloc_dummy_root()
732 struct btrfs_root *root; in btrfs_alloc_dummy_root()
750 const struct btrfs_root *a = rb_entry(a_node, struct btrfs_root, rb_node); in global_root_cmp()
751 const struct btrfs_root *b = rb_entry(b_node, struct btrfs_root, rb_node); in global_root_cmp()
759 const struct btrfs_root *root = rb_entry(node, struct btrfs_root, rb_node); in global_root_key_cmp()
764 int btrfs_global_root_insert(struct btrfs_root *root) in btrfs_global_root_insert()
782 void btrfs_global_root_delete(struct btrfs_root *root) in btrfs_global_root_delete()
[all …]
H A Dorphan.h9 struct btrfs_root;
12 struct btrfs_root *root, u64 offset);
14 struct btrfs_root *root, u64 offset);
H A Drelocation.c139 struct btrfs_root *extent_root;
235 static bool reloc_root_is_dead(const struct btrfs_root *root) in reloc_root_is_dead()
256 static bool have_reloc_root(const struct btrfs_root *root) in have_reloc_root()
265 bool btrfs_should_ignore_reloc_root(const struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
267 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
294 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
299 struct btrfs_root *root = NULL; in find_reloc_root()
479 const struct btrfs_root *src, in clone_backref_node()
480 struct btrfs_root *dest) in clone_backref_node()
482 struct btrfs_root *reloc_root = src->reloc_root; in clone_backref_node()
[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()
206 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
218 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots()
222 struct btrfs_root *root; in btrfs_find_orphan_roots()
321 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
347 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
419 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
483 struct btrfs_root *root) in btrfs_update_root_times()
511 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root, in btrfs_subvolume_reserve_metadata()
H A Dtree-log.c109 struct btrfs_root *root,
112 struct btrfs_root *root,
113 struct btrfs_root *log,
116 static void wait_log_commit(struct btrfs_root *root, int transid);
141 static struct inode *btrfs_iget_logging(u64 objectid, struct btrfs_root *root) in btrfs_iget_logging()
166 struct btrfs_root *root, in start_log_trans()
170 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans()
253 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans()
282 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans()
291 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans()
[all …]
H A Dtransaction.c176 struct btrfs_root *root, *tmp; in switch_commit_roots()
202 struct btrfs_root, root_list); in switch_commit_roots()
398 struct btrfs_root *root, in record_root_in_trans()
459 struct btrfs_root *root) in btrfs_add_dropped_root()
478 struct btrfs_root *root) in btrfs_record_root_in_trans()
544 static inline bool need_reserve_reloc_root(struct btrfs_root *root) in need_reserve_reloc_root()
587 start_transaction(struct btrfs_root *root, unsigned int num_items, in start_transaction()
805 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
813 struct btrfs_root *root, in btrfs_start_transaction_fallback_global_rsv()
820 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction()
[all …]
H A Dfs.h41 struct btrfs_root;
412 struct btrfs_root *tree_root;
413 struct btrfs_root *chunk_root;
414 struct btrfs_root *dev_root;
415 struct btrfs_root *fs_root;
416 struct btrfs_root *quota_root;
417 struct btrfs_root *uuid_root;
418 struct btrfs_root *data_reloc_root;
419 struct btrfs_root *block_group_root;
420 struct btrfs_root *stripe_root;
[all …]
H A Duuid-tree.c26 static int btrfs_uuid_tree_lookup(struct btrfs_root *uuid_root, const u8 *uuid, in btrfs_uuid_tree_lookup()
90 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_add()
154 struct btrfs_root *uuid_root = fs_info->uuid_root; in btrfs_uuid_tree_remove()
232 static int btrfs_uuid_iter_rem(struct btrfs_root *uuid_root, u8 *uuid, u8 type, in btrfs_uuid_iter_rem()
264 struct btrfs_root *subvol_root; in btrfs_check_uuid_tree_entry()
296 struct btrfs_root *root = fs_info->uuid_root; in btrfs_uuid_tree_iterate()
399 struct btrfs_root *root = fs_info->tree_root; in btrfs_uuid_scan_kthread()
534 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_create_uuid_tree()
535 struct btrfs_root *uuid_root; in btrfs_create_uuid_tree()
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 Dbtrfs_inode.h32 struct btrfs_root;
129 struct btrfs_root *root;
362 const struct btrfs_root *root) in btrfs_inode_hash()
544 int btrfs_start_delalloc_snapshot(struct btrfs_root *root, bool in_reclaim_context);
587 struct inode *btrfs_iget_path(u64 ino, struct btrfs_root *root,
589 struct inode *btrfs_iget(u64 ino, struct btrfs_root *root);
597 int btrfs_orphan_cleanup(struct btrfs_root *root);
629 struct btrfs_inode *btrfs_find_first_inode(struct btrfs_root *root, u64 min_ino);
H A Dbackref.h152 struct btrfs_root *fs_root;
237 char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
243 struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
247 int btrfs_find_one_extref(struct btrfs_root *root, u64 inode_objectid,
333 struct btrfs_root *root;
H A Dblock-rsv.h11 struct btrfs_root;
62 void btrfs_init_root_block_rsv(struct btrfs_root *root);
90 struct btrfs_root *root,
H A Ddefrag.h12 struct btrfs_root;
24 int btrfs_defrag_root(struct btrfs_root *root);
H A Dfree-space-tree.c24 static struct btrfs_root *btrfs_free_space_root( in btrfs_free_space_root()
73 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_new_free_space_info()
107 struct btrfs_root *root = btrfs_free_space_root(block_group); in search_free_space_info()
134 struct btrfs_root *root, in btrfs_search_prev_slot()
210 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_bitmaps()
348 struct btrfs_root *root = btrfs_free_space_root(block_group); in convert_free_space_to_extents()
580 struct btrfs_root *root, struct btrfs_path *p) in free_space_next_bitmap()
609 struct btrfs_root *root = btrfs_free_space_root(block_group); in modify_free_space_bitmap()
722 struct btrfs_root *root = btrfs_free_space_root(block_group); in remove_free_space_extent()
874 struct btrfs_root *root = btrfs_free_space_root(block_group); in add_free_space_extent()
[all …]
/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()
68 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref()
119 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item()
150 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref()
205 static int test_no_shared_qgroup(struct btrfs_root *root, in test_no_shared_qgroup()
317 static int test_multiple_refs(struct btrfs_root *root, in test_multiple_refs()
474 struct btrfs_root *root; in btrfs_test_qgroups()
475 struct btrfs_root *tmp_root; in btrfs_test_qgroups()

123