Home
last modified time | relevance | path

Searched refs:btrfs_root (Results 1 - 25 of 138) sorted by relevance

123456

/kernel/linux/linux-6.6/fs/btrfs/
H A Ddisk-io.h58 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
61 struct btrfs_root *root);
64 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info,
66 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info,
68 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info,
71 int btrfs_global_root_insert(struct btrfs_root *root);
72 void btrfs_global_root_delete(struct btrfs_root *root);
73 struct btrfs_root *btrfs_global_root(struct btrfs_fs_info *fs_info,
75 struct btrfs_root *btrfs_csum_roo
[all...]
H A Dctree.h192 struct btrfs_root { struct
198 struct btrfs_root *log_root;
199 struct btrfs_root *reloc_root;
338 static inline bool btrfs_root_readonly(const struct btrfs_root *root) in btrfs_root_readonly()
344 static inline bool btrfs_root_dead(const struct btrfs_root *root) in btrfs_root_dead()
350 static inline u64 btrfs_root_id(const struct btrfs_root *root) in btrfs_root_id()
516 int btrfs_previous_item(struct btrfs_root *root,
519 int btrfs_previous_extent_item(struct btrfs_root *root,
524 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
525 int btrfs_find_next_key(struct btrfs_root *roo
[all...]
H A Dtransaction.h158 struct btrfs_root *root;
160 struct btrfs_root *snap;
235 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
238 struct btrfs_root *root,
240 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
241 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
242 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
243 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
245 struct btrfs_root *root);
248 void btrfs_add_dead_root(struct btrfs_root *roo
[all...]
H A Ddir-item.h6 int btrfs_check_dir_item_collision(struct btrfs_root *root, u64 dir,
12 struct btrfs_root *root,
17 struct btrfs_root *root,
20 struct btrfs_dir_item *btrfs_search_dir_index_item(struct btrfs_root *root,
24 struct btrfs_root *root,
28 struct btrfs_root *root,
33 struct btrfs_root *root,
H A Dqgroup.h379 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
381 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
385 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans()
392 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc()
401 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes,
405 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans()
413 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc()
424 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root);
432 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes);
440 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *roo
[all...]
H A Dfile-item.h40 struct btrfs_root *root, u64 bytenr, u64 len);
43 struct btrfs_root *root, u64 objectid, u64 pos,
46 struct btrfs_root *root,
50 struct btrfs_root *root,
54 int btrfs_lookup_csums_range(struct btrfs_root *root, u64 start, u64 end,
57 int btrfs_lookup_csums_list(struct btrfs_root *root, u64 start, u64 end,
60 int btrfs_lookup_csums_bitmap(struct btrfs_root *root, struct btrfs_path *path,
H A Dinode-item.h9 struct btrfs_root;
80 struct btrfs_root *root,
83 struct btrfs_root *root, const struct fscrypt_str *name,
86 struct btrfs_root *root, const struct fscrypt_str *name,
89 struct btrfs_root *root,
92 struct btrfs_root *root, struct btrfs_path *path,
97 struct btrfs_root *root,
H A Droot-tree.h6 int btrfs_subvolume_reserve_metadata(struct btrfs_root *root,
9 void btrfs_subvolume_release_metadata(struct btrfs_root *root,
18 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
22 struct btrfs_root *root,
25 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key,
32 void btrfs_update_root_times(struct btrfs_trans_handle *trans, struct btrfs_root *root);
H A Drelocation.h7 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root);
9 struct btrfs_root *root);
13 struct btrfs_root *root, struct extent_buffer *buf,
20 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr);
21 int btrfs_should_ignore_reloc_root(struct btrfs_root *root);
H A Dtree-log.h83 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
84 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
87 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
92 struct btrfs_root *root,
96 struct btrfs_root *root,
99 void btrfs_end_log_trans(struct btrfs_root *root);
100 void btrfs_pin_log_trans(struct btrfs_root *root);
H A Dextent-tree.h107 int btrfs_cross_ref_exist(struct btrfs_root *root,
111 struct btrfs_root *root,
122 struct btrfs_root *root, u64 owner,
128 int btrfs_reserve_extent(struct btrfs_root *root, u64 ram_bytes, u64 num_bytes,
131 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
133 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
144 int __must_check btrfs_drop_snapshot(struct btrfs_root *root, int update_ref,
147 struct btrfs_root *root,
H A Dlocking.h171 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
172 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root);
173 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root);
212 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb);
218 static inline void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, in btrfs_maybe_reset_lockdep_class()
H A Drelocation.c131 struct btrfs_root *extent_root;
302 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead()
323 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root()
332 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
334 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
362 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
367 struct btrfs_root *root = NULL; in find_reloc_root()
550 struct btrfs_root *src, in clone_backref_node()
551 struct btrfs_root *dest) in clone_backref_node()
553 struct btrfs_root *reloc_roo in clone_backref_node()
[all...]
H A Dtree-log.c111 struct btrfs_root *root,
114 struct btrfs_root *root,
115 struct btrfs_root *log,
118 static void wait_log_commit(struct btrfs_root *root, int transid);
149 struct btrfs_root *root, in start_log_trans()
153 struct btrfs_root *tree_root = fs_info->tree_root; in start_log_trans()
236 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans()
265 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans()
274 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans()
310 struct btrfs_root *replay_des
[all...]
H A Droot-tree.c67 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root()
121 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
200 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
212 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots()
216 struct btrfs_root *root; in btrfs_find_orphan_roots()
315 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
338 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
410 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
474 struct btrfs_root *root) in btrfs_update_root_times()
501 int btrfs_subvolume_reserve_metadata(struct btrfs_root *roo
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dtransaction.h137 struct btrfs_root *root;
153 struct btrfs_root *root;
155 struct btrfs_root *snap;
202 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
205 struct btrfs_root *root,
207 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
208 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
209 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
210 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
212 struct btrfs_root *roo
[all...]
H A Ddisk-io.h62 struct btrfs_root *btrfs_read_tree_root(struct btrfs_root *tree_root,
65 struct btrfs_root *root);
68 struct btrfs_root *btrfs_get_fs_root(struct btrfs_fs_info *fs_info,
70 struct btrfs_root *btrfs_get_new_fs_root(struct btrfs_fs_info *fs_info,
72 struct btrfs_root *btrfs_get_fs_root_commit_root(struct btrfs_fs_info *fs_info,
81 struct btrfs_root *root);
88 struct btrfs_root *btrfs_alloc_dummy_root(struct btrfs_fs_info *fs_info);
98 static inline struct btrfs_root *btrfs_grab_root(struct btrfs_root *roo
[all...]
H A Dinode-map.h6 void btrfs_init_free_ino_ctl(struct btrfs_root *root);
7 void btrfs_unpin_free_ino(struct btrfs_root *root);
8 void btrfs_return_ino(struct btrfs_root *root, u64 objectid);
9 int btrfs_find_free_ino(struct btrfs_root *root, u64 *objectid);
10 int btrfs_save_ino_cache(struct btrfs_root *root,
H A Dqgroup.h364 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
366 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
369 static inline int btrfs_qgroup_reserve_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_pertrans()
375 static inline int btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_reserve_meta_prealloc()
382 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes,
386 static inline void btrfs_qgroup_free_meta_pertrans(struct btrfs_root *root, in btrfs_qgroup_free_meta_pertrans()
394 static inline void btrfs_qgroup_free_meta_prealloc(struct btrfs_root *root, in btrfs_qgroup_free_meta_prealloc()
405 void btrfs_qgroup_free_meta_all_pertrans(struct btrfs_root *root);
413 void btrfs_qgroup_convert_reserved_meta(struct btrfs_root *root, int num_bytes);
421 void btrfs_qgroup_clean_swapped_blocks(struct btrfs_root *roo
[all...]
H A Dtree-log.h63 struct btrfs_root *root, struct btrfs_log_ctx *ctx);
64 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
67 int btrfs_recover_log_trees(struct btrfs_root *tree_root);
72 struct btrfs_root *root,
76 struct btrfs_root *root,
79 void btrfs_end_log_trans(struct btrfs_root *root);
80 void btrfs_pin_log_trans(struct btrfs_root *root);
H A Dctree.h586 struct btrfs_root *extent_root;
587 struct btrfs_root *tree_root;
588 struct btrfs_root *chunk_root;
589 struct btrfs_root *dev_root;
590 struct btrfs_root *fs_root;
591 struct btrfs_root *csum_root;
592 struct btrfs_root *quota_root;
593 struct btrfs_root *uuid_root;
594 struct btrfs_root *free_space_root;
595 struct btrfs_root *data_reloc_roo
1051 struct btrfs_root { global() struct
[all...]
H A Drelocation.c119 struct btrfs_root *extent_root;
290 static bool reloc_root_is_dead(struct btrfs_root *root) in reloc_root_is_dead()
311 static bool have_reloc_root(struct btrfs_root *root) in have_reloc_root()
320 int btrfs_should_ignore_reloc_root(struct btrfs_root *root) in btrfs_should_ignore_reloc_root()
322 struct btrfs_root *reloc_root; in btrfs_should_ignore_reloc_root()
350 struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) in find_reloc_root()
355 struct btrfs_root *root = NULL; in find_reloc_root()
362 root = (struct btrfs_root *)node->data; in find_reloc_root()
537 struct btrfs_root *src, in clone_backref_node()
538 struct btrfs_root *des in clone_backref_node()
[all...]
H A Droot-tree.c64 int btrfs_find_root(struct btrfs_root *root, const struct btrfs_key *search_key, in btrfs_find_root()
118 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
197 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
209 struct btrfs_root *tree_root = fs_info->tree_root; in btrfs_find_orphan_roots()
213 struct btrfs_root *root; in btrfs_find_orphan_roots()
297 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
321 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
395 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
459 struct btrfs_root *root) in btrfs_update_root_times()
486 int btrfs_subvolume_reserve_metadata(struct btrfs_root *roo
[all...]
H A Dfree-space-cache.h100 struct inode *lookup_free_ino_inode(struct btrfs_root *root,
102 int create_free_ino_inode(struct btrfs_root *root,
106 struct btrfs_root *root);
107 int btrfs_write_out_ino_cache(struct btrfs_root *root,
129 u64 btrfs_find_ino_for_alloc(struct btrfs_root *fs_root);
H A Dtree-log.c97 struct btrfs_root *root, struct btrfs_inode *inode,
101 struct btrfs_root *root,
104 struct btrfs_root *root,
105 struct btrfs_root *log,
138 struct btrfs_root *root, in start_log_trans()
193 static int join_running_log_trans(struct btrfs_root *root) in join_running_log_trans()
214 void btrfs_pin_log_trans(struct btrfs_root *root) in btrfs_pin_log_trans()
223 void btrfs_end_log_trans(struct btrfs_root *root) in btrfs_end_log_trans()
281 struct btrfs_root *replay_dest;
291 int (*process_func)(struct btrfs_root *lo
[all...]

Completed in 23 milliseconds

123456