Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/btrfs/
Dtransaction.h110 struct btrfs_trans_handle { struct
148 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans() argument
162 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup()
172 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup()
181 int btrfs_end_transaction(struct btrfs_trans_handle *trans);
182 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
184 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv(
188 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
189 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root);
190 struct btrfs_trans_handle *btrfs_attach_transaction(struct btrfs_root *root);
[all …]
Dtree-log.h36 struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit()
42 struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit()
48 int btrfs_sync_log(struct btrfs_trans_handle *trans,
50 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
51 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
54 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
59 int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
63 int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
69 void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
72 void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans,
[all …]
Dfree-space-tree.h21 int add_block_group_free_space(struct btrfs_trans_handle *trans,
23 int remove_block_group_free_space(struct btrfs_trans_handle *trans,
25 int add_to_free_space_tree(struct btrfs_trans_handle *trans,
27 int remove_from_free_space_tree(struct btrfs_trans_handle *trans,
32 search_free_space_info(struct btrfs_trans_handle *trans,
36 int __add_to_free_space_tree(struct btrfs_trans_handle *trans,
39 int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
42 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans,
45 int convert_free_space_to_extents(struct btrfs_trans_handle *trans,
Dqgroup.h150 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
152 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
154 int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid);
155 int btrfs_remove_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid);
156 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid,
215 int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr,
224 int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans,
236 int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans,
239 int btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans, u64 bytenr,
242 int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans);
[all …]
Ddelayed-inode.h88 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans,
94 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans,
99 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans);
100 int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr);
104 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
112 int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans,
Dfree-space-cache.h45 struct btrfs_trans_handle *trans,
51 int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans,
56 int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
60 struct btrfs_trans_handle *trans,
66 struct btrfs_trans_handle *trans,
71 struct btrfs_trans_handle *trans,
Ddelayed-ref.h237 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans,
242 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
248 struct btrfs_trans_handle *trans,
251 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
258 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans,
267 btrfs_select_ref_head(struct btrfs_trans_handle *trans);
Dctree.h35 struct btrfs_trans_handle;
2610 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans,
2612 int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans,
2621 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
2626 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
2642 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
2648 void btrfs_free_tree_block(struct btrfs_trans_handle *trans,
2652 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
2656 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
2662 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
[all …]
Dtransaction.c294 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
355 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
374 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
452 static struct btrfs_trans_handle *
459 struct btrfs_trans_handle *h; in start_transaction()
590 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
597 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( in btrfs_start_transaction_fallback_global_rsv()
603 struct btrfs_trans_handle *trans; in btrfs_start_transaction_fallback_global_rsv()
638 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction()
644 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root) in btrfs_join_transaction_nolock()
[all …]
Dprops.h21 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
25 int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans,
Dxattr.h15 int btrfs_setxattr(struct btrfs_trans_handle *trans,
20 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
Dfree-space-tree.c14 static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
46 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info()
78 search_free_space_info(struct btrfs_trans_handle *trans, in search_free_space_info()
109 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot()
179 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps()
318 int convert_free_space_to_extents(struct btrfs_trans_handle *trans, in convert_free_space_to_extents()
451 static int update_free_space_extent_count(struct btrfs_trans_handle *trans, in update_free_space_extent_count()
554 static int free_space_next_bitmap(struct btrfs_trans_handle *trans, in free_space_next_bitmap()
579 static int modify_free_space_bitmap(struct btrfs_trans_handle *trans, in modify_free_space_bitmap()
692 static int remove_free_space_extent(struct btrfs_trans_handle *trans, in remove_free_space_extent()
[all …]
Ddir-item.c18 static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle in insert_with_overflow()
55 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, in btrfs_insert_xattr_item()
108 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_insert_dir_item()
179 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item()
272 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item()
343 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr()
407 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
Droot-tree.c118 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
196 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
276 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots()
322 int btrfs_del_root(struct btrfs_trans_handle *trans, in btrfs_del_root()
344 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_del_root_ref()
415 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_add_root_ref()
482 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times()
Dinode-item.c81 btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, in btrfs_lookup_inode_extref()
108 static int btrfs_del_inode_extref(struct btrfs_trans_handle *trans, in btrfs_del_inode_extref()
181 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, in btrfs_del_inode_ref()
259 static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_extref()
317 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_ref()
396 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, in btrfs_insert_empty_inode()
411 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
Dorphan.c9 int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, in btrfs_insert_orphan_item()
30 int btrfs_del_orphan_item(struct btrfs_trans_handle *trans, in btrfs_del_orphan_item()
Dtree-log.c88 static int btrfs_log_inode(struct btrfs_trans_handle *trans,
94 static int link_to_fixup_dir(struct btrfs_trans_handle *trans,
97 static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans,
131 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans()
265 struct btrfs_trans_handle *trans;
325 static noinline int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item()
565 static noinline int replay_one_extent(struct btrfs_trans_handle *trans, in replay_one_extent()
829 static noinline int drop_one_dir_item(struct btrfs_trans_handle *trans, in drop_one_dir_item()
978 static inline int __add_inode_ref(struct btrfs_trans_handle *trans, in __add_inode_ref()
1207 static int unlink_old_inode_refs(struct btrfs_trans_handle *trans, in unlink_old_inode_refs()
[all …]
Dvolumes.h400 int btrfs_alloc_chunk(struct btrfs_trans_handle *trans, u64 type);
427 int btrfs_grow_device(struct btrfs_trans_handle *trans,
446 int find_free_dev_extent(struct btrfs_trans_handle *trans,
454 int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
465 int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
467 int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset);
Ddelayed-inode.c539 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata()
595 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata()
798 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item()
828 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items()
867 static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, in btrfs_batch_delete_items()
930 static int btrfs_delete_delayed_items(struct btrfs_trans_handle *trans, in btrfs_delete_delayed_items()
1002 static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in __btrfs_update_delayed_inode()
1085 static inline int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in btrfs_update_delayed_inode()
1104 __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_commit_inode_delayed_items()
1128 static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) in __btrfs_run_delayed_items()
[all …]
Ddisk-io.h128 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
130 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
136 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
Ddelayed-ref.c200 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, in btrfs_delayed_ref_lock()
224 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref()
241 static bool merge_ref(struct btrfs_trans_handle *trans, in merge_ref()
288 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs()
349 btrfs_select_ref_head(struct btrfs_trans_handle *trans) in btrfs_select_ref_head()
402 static int insert_delayed_ref(struct btrfs_trans_handle *trans, in insert_delayed_ref()
600 add_delayed_ref_head(struct btrfs_trans_handle *trans, in add_delayed_ref_head()
712 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_tree_ref()
793 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_data_ref()
872 struct btrfs_trans_handle *trans, in btrfs_add_delayed_extent_op()
Dacl.c54 static int __btrfs_set_acl(struct btrfs_trans_handle *trans, in __btrfs_set_acl()
113 int btrfs_init_acl(struct btrfs_trans_handle *trans, in btrfs_init_acl()
/Linux-v4.19/fs/btrfs/tests/
Dfree-space-tree-tests.c18 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents()
107 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents()
150 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group()
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()
209 static int test_remove_end(struct btrfs_trans_handle *trans, in test_remove_end()
233 static int test_remove_middle(struct btrfs_trans_handle *trans, in test_remove_middle()
258 static int test_merge_left(struct btrfs_trans_handle *trans, in test_merge_left()
296 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right()
335 static int test_merge_both(struct btrfs_trans_handle *trans, in test_merge_both()
[all …]
Dbtrfs-tests.h16 struct btrfs_trans_handle;
32 void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans,
Dqgroup-tests.c17 struct btrfs_trans_handle trans; in insert_normal_tree_ref()
70 struct btrfs_trans_handle trans; in add_tree_ref()
122 struct btrfs_trans_handle trans; in remove_extent_item()
154 struct btrfs_trans_handle trans; in remove_extent_ref()
210 struct btrfs_trans_handle trans; in test_no_shared_qgroup()
311 struct btrfs_trans_handle trans; in test_multiple_refs()

12