Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/fs/btrfs/
A Dtransaction.h120 struct btrfs_trans_handle { struct
233 int btrfs_end_transaction(struct btrfs_trans_handle *trans);
236 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv(
243 struct btrfs_trans_handle *btrfs_attach_transaction_barrier(
251 int btrfs_commit_transaction(struct btrfs_trans_handle *trans);
252 void btrfs_commit_transaction_async(struct btrfs_trans_handle *trans);
253 int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans);
254 bool btrfs_should_end_transaction(struct btrfs_trans_handle *trans);
256 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans,
264 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans,
[all …]
A Dextent-tree.h107 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
110 int btrfs_pin_extent(struct btrfs_trans_handle *trans, u64 bytenr, u64 num,
112 int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans,
125 void btrfs_free_tree_block(struct btrfs_trans_handle *trans,
129 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
133 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
139 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
141 int btrfs_dec_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
143 int btrfs_set_disk_extent_flags(struct btrfs_trans_handle *trans,
150 int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans);
[all …]
A Dfree-space-tree.h23 int add_block_group_free_space(struct btrfs_trans_handle *trans,
25 int remove_block_group_free_space(struct btrfs_trans_handle *trans,
27 int add_to_free_space_tree(struct btrfs_trans_handle *trans,
29 int remove_from_free_space_tree(struct btrfs_trans_handle *trans,
34 search_free_space_info(struct btrfs_trans_handle *trans,
37 int __add_to_free_space_tree(struct btrfs_trans_handle *trans,
40 int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
43 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans,
46 int convert_free_space_to_extents(struct btrfs_trans_handle *trans,
A Dtree-log.h71 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit()
76 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit()
82 int btrfs_sync_log(struct btrfs_trans_handle *trans,
84 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
85 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
88 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
91 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
95 void btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
101 void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
104 void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans,
[all …]
A Dqgroup.h258 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
260 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
262 int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid);
264 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid,
307 int btrfs_qgroup_trace_extent_post(struct btrfs_trans_handle *trans,
332 int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans,
344 int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans,
350 int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans);
351 int btrfs_run_qgroups(struct btrfs_trans_handle *trans);
352 int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, u64 srcid,
[all …]
A Dinode-item.h8 struct btrfs_trans_handle;
63 int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
66 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
69 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans,
72 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans,
75 int btrfs_lookup_inode(struct btrfs_trans_handle *trans,
80 struct btrfs_trans_handle *trans,
A Droot-tree.h11 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id,
14 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id,
17 int btrfs_del_root(struct btrfs_trans_handle *trans, const struct btrfs_key *key);
18 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
21 int __must_check btrfs_update_root(struct btrfs_trans_handle *trans,
32 void btrfs_update_root_times(struct btrfs_trans_handle *trans, struct btrfs_root *root);
A Dblock-group.h293 struct btrfs_trans_handle *btrfs_start_trans_remove_block_group(
296 int btrfs_remove_block_group(struct btrfs_trans_handle *trans,
307 void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans);
311 int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans);
312 int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans);
313 int btrfs_setup_space_cache(struct btrfs_trans_handle *trans);
314 int btrfs_update_block_group(struct btrfs_trans_handle *trans,
321 int btrfs_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags,
323 int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans, u64 type);
324 void check_system_chunk(struct btrfs_trans_handle *trans, const u64 type);
[all …]
A Ddir-item.h8 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans,
11 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans,
16 struct btrfs_trans_handle *trans,
23 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
27 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
32 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
A Drelocation.h7 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root);
8 int btrfs_update_reloc_root(struct btrfs_trans_handle *trans,
12 int btrfs_reloc_cow_block(struct btrfs_trans_handle *trans,
17 int btrfs_reloc_post_snapshot(struct btrfs_trans_handle *trans,
A Ddelayed-inode.h113 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans,
119 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans,
124 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans);
125 int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr);
129 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
137 int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans,
A Dctree.h41 struct btrfs_trans_handle;
546 int btrfs_cow_block(struct btrfs_trans_handle *trans,
551 int btrfs_copy_root(struct btrfs_trans_handle *trans,
559 int btrfs_split_item(struct btrfs_trans_handle *trans,
564 int btrfs_duplicate_item(struct btrfs_trans_handle *trans,
570 int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root,
579 int btrfs_realloc_node(struct btrfs_trans_handle *trans,
587 int btrfs_del_items(struct btrfs_trans_handle *trans, struct btrfs_root *root,
589 static inline int btrfs_del_item(struct btrfs_trans_handle *trans, in btrfs_del_item()
628 int btrfs_insert_empty_items(struct btrfs_trans_handle *trans,
[all …]
A Dfile-item.h39 int btrfs_del_csums(struct btrfs_trans_handle *trans,
42 int btrfs_insert_hole_extent(struct btrfs_trans_handle *trans,
45 int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
49 int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
A Ddisk-io.h42 void btrfs_clear_buffer_dirty(struct btrfs_trans_handle *trans,
118 int btrfs_alloc_log_tree_node(struct btrfs_trans_handle *trans,
120 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
122 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
128 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
A Dtransaction.c399 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
460 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
479 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
559 static struct btrfs_trans_handle *
566 struct btrfs_trans_handle *h; in start_transaction()
823 struct btrfs_trans_handle *
826 struct btrfs_trans_handle *trans; in btrfs_attach_transaction_barrier()
1040 int btrfs_end_transaction(struct btrfs_trans_handle *trans) in btrfs_end_transaction()
1474 struct btrfs_trans_handle *trans; in btrfs_defrag_root()
2118 int btrfs_commit_transaction(struct btrfs_trans_handle *trans) in btrfs_commit_transaction()
[all …]
A Dfree-space-cache.h97 int create_free_space_inode(struct btrfs_trans_handle *trans,
100 int btrfs_remove_free_space_inode(struct btrfs_trans_handle *trans,
106 int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans,
110 int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
113 int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
A Dfile.h9 int btrfs_drop_extents(struct btrfs_trans_handle *trans,
16 struct btrfs_trans_handle **trans_out);
17 int btrfs_mark_extent_written(struct btrfs_trans_handle *trans,
A Ddir-item.c21 static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle in insert_with_overflow()
56 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, in btrfs_insert_xattr_item()
109 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, in btrfs_insert_dir_item()
178 struct btrfs_trans_handle *trans, in btrfs_lookup_match_dir()
212 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item()
308 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item()
356 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr()
417 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
A Ddelayed-ref.h351 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans,
354 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
357 int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans,
382 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans);
388 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans);
A Dorphan.h6 int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
8 int btrfs_del_orphan_item(struct btrfs_trans_handle *trans,
A Duuid-tree.h6 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
8 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
A Dbtrfs_inode.h420 int btrfs_unlink_inode(struct btrfs_trans_handle *trans,
423 int btrfs_add_link(struct btrfs_trans_handle *trans,
453 int btrfs_create_new_inode(struct btrfs_trans_handle *trans,
481 int btrfs_update_inode(struct btrfs_trans_handle *trans,
483 int btrfs_update_inode_fallback(struct btrfs_trans_handle *trans,
485 int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct btrfs_inode *inode);
495 struct btrfs_trans_handle *trans, int mode,
A Dfree-space-tree.c20 static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
69 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info()
102 struct btrfs_trans_handle *trans, in search_free_space_info()
133 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot()
205 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps()
832 int remove_from_free_space_tree(struct btrfs_trans_handle *trans, in remove_from_free_space_tree()
996 int __add_to_free_space_tree(struct btrfs_trans_handle *trans, in __add_to_free_space_tree()
1025 int add_to_free_space_tree(struct btrfs_trans_handle *trans, in add_to_free_space_tree()
1161 struct btrfs_trans_handle *trans; in btrfs_create_free_space_tree()
1257 struct btrfs_trans_handle *trans; in btrfs_clear_free_space_tree()
[all …]
A Dprops.h13 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode,
22 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
/linux-6.3-rc2/fs/btrfs/tests/
A Dfree-space-tree-tests.c20 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents()
164 static int test_remove_all(struct btrfs_trans_handle *trans, in test_remove_all()
185 static int test_remove_beginning(struct btrfs_trans_handle *trans, in test_remove_beginning()
208 static int test_remove_end(struct btrfs_trans_handle *trans, in test_remove_end()
231 static int test_remove_middle(struct btrfs_trans_handle *trans, in test_remove_middle()
255 static int test_merge_left(struct btrfs_trans_handle *trans, in test_merge_left()
292 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right()
330 static int test_merge_both(struct btrfs_trans_handle *trans, in test_merge_both()
373 static int test_merge_none(struct btrfs_trans_handle *trans, in test_merge_none()
418 typedef int (*test_func_t)(struct btrfs_trans_handle *,
[all …]

Completed in 39 milliseconds

123