Home
last modified time | relevance | path

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

123

/fs/btrfs/
Dtransaction.h108 struct btrfs_trans_handle { struct
155 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans() argument
169 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup()
179 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup()
188 int btrfs_end_transaction(struct btrfs_trans_handle *trans,
190 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
192 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv(
196 struct btrfs_trans_handle *btrfs_start_transaction_lflush(
199 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
200 struct btrfs_trans_handle *btrfs_join_transaction_nolock(struct btrfs_root *root);
[all …]
Dqgroup.h43 int btrfs_quota_enable(struct btrfs_trans_handle *trans,
45 int btrfs_quota_disable(struct btrfs_trans_handle *trans,
51 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans,
53 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans,
55 int btrfs_create_qgroup(struct btrfs_trans_handle *trans,
57 int btrfs_remove_qgroup(struct btrfs_trans_handle *trans,
59 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans,
65 int btrfs_qgroup_prepare_account_extents(struct btrfs_trans_handle *trans,
92 int btrfs_qgroup_insert_dirty_extent(struct btrfs_trans_handle *trans,
97 btrfs_qgroup_account_extent(struct btrfs_trans_handle *trans,
[all …]
Dtree-log.h49 struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit()
55 struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit()
61 int btrfs_sync_log(struct btrfs_trans_handle *trans,
63 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
64 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
67 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
72 int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
76 int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
82 void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
85 void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans,
[all …]
Dfree-space-tree.h34 int add_block_group_free_space(struct btrfs_trans_handle *trans,
37 int remove_block_group_free_space(struct btrfs_trans_handle *trans,
40 int add_to_free_space_tree(struct btrfs_trans_handle *trans,
43 int remove_from_free_space_tree(struct btrfs_trans_handle *trans,
49 search_free_space_info(struct btrfs_trans_handle *trans,
53 int __add_to_free_space_tree(struct btrfs_trans_handle *trans,
57 int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
61 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans,
65 int convert_free_space_to_extents(struct btrfs_trans_handle *trans,
Dctree.h45 struct btrfs_trans_handle;
2553 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans,
2555 int btrfs_check_space_for_delayed_refs(struct btrfs_trans_handle *trans,
2564 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
2569 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
2578 int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
2587 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
2592 void btrfs_free_tree_block(struct btrfs_trans_handle *trans,
2596 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
2601 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
[all …]
Ddelayed-ref.h243 struct btrfs_trans_handle *trans,
248 struct btrfs_trans_handle *trans,
254 struct btrfs_trans_handle *trans,
257 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
263 btrfs_find_delayed_ref_head(struct btrfs_trans_handle *trans, u64 bytenr);
264 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans,
273 btrfs_select_ref_head(struct btrfs_trans_handle *trans);
Ddelayed-inode.h101 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans,
107 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans,
113 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans,
115 int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans,
120 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
128 int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans,
Dfree-space-cache.h58 struct btrfs_trans_handle *trans,
65 struct btrfs_trans_handle *trans,
71 struct btrfs_trans_handle *trans,
76 struct btrfs_trans_handle *trans,
82 struct btrfs_trans_handle *trans,
87 struct btrfs_trans_handle *trans,
Dtransaction.c313 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
372 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
390 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
468 static struct btrfs_trans_handle *
472 struct btrfs_trans_handle *h; in start_transaction()
604 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
610 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( in btrfs_start_transaction_fallback_global_rsv()
615 struct btrfs_trans_handle *trans; in btrfs_start_transaction_fallback_global_rsv()
645 struct btrfs_trans_handle *btrfs_start_transaction_lflush( in btrfs_start_transaction_lflush()
653 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction()
[all …]
Ddisk-io.h54 void clean_tree_block(struct btrfs_trans_handle *trans,
60 int write_ctree_super(struct btrfs_trans_handle *trans,
135 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
137 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
143 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
Dfree-space-tree.c27 static int __add_block_group_free_space(struct btrfs_trans_handle *trans,
60 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info()
93 search_free_space_info(struct btrfs_trans_handle *trans, in search_free_space_info()
124 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot()
174 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps()
312 int convert_free_space_to_extents(struct btrfs_trans_handle *trans, in convert_free_space_to_extents()
462 static int update_free_space_extent_count(struct btrfs_trans_handle *trans, in update_free_space_extent_count()
565 static int free_space_next_bitmap(struct btrfs_trans_handle *trans, in free_space_next_bitmap()
590 static int modify_free_space_bitmap(struct btrfs_trans_handle *trans, in modify_free_space_bitmap()
704 static int remove_free_space_extent(struct btrfs_trans_handle *trans, in remove_free_space_extent()
[all …]
Ddelayed-ref.c157 int btrfs_delayed_ref_lock(struct btrfs_trans_handle *trans, in btrfs_delayed_ref_lock()
181 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref()
200 static bool merge_ref(struct btrfs_trans_handle *trans, in merge_ref()
267 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs()
339 btrfs_select_ref_head(struct btrfs_trans_handle *trans) in btrfs_select_ref_head()
393 add_delayed_ref_tail_merge(struct btrfs_trans_handle *trans, in add_delayed_ref_tail_merge()
536 struct btrfs_trans_handle *trans, in add_delayed_ref_head()
647 struct btrfs_trans_handle *trans, in add_delayed_tree_ref()
701 struct btrfs_trans_handle *trans, in add_delayed_data_ref()
755 struct btrfs_trans_handle *trans, in btrfs_add_delayed_tree_ref()
[all …]
Dinode-item.c96 btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, in btrfs_lookup_inode_extref()
121 static int btrfs_del_inode_extref(struct btrfs_trans_handle *trans, in btrfs_del_inode_extref()
193 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, in btrfs_del_inode_ref()
270 static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_extref()
326 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_ref()
401 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, in btrfs_insert_empty_inode()
416 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
Droot-tree.c131 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
209 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
293 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots()
339 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_del_root()
360 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, in btrfs_del_root_ref()
431 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, in btrfs_add_root_ref()
498 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times()
Ddir-item.c32 static struct btrfs_dir_item *insert_with_overflow(struct btrfs_trans_handle in insert_with_overflow()
68 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans, in btrfs_insert_xattr_item()
120 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_insert_dir_item()
191 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item()
284 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item()
354 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr()
420 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
Dtree-log.c100 static int btrfs_log_inode(struct btrfs_trans_handle *trans,
106 static int link_to_fixup_dir(struct btrfs_trans_handle *trans,
109 static noinline int replay_dir_deletes(struct btrfs_trans_handle *trans,
143 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans()
279 struct btrfs_trans_handle *trans;
338 static noinline int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item()
581 static noinline int replay_one_extent(struct btrfs_trans_handle *trans, in replay_one_extent()
840 static noinline int drop_one_dir_item(struct btrfs_trans_handle *trans, in drop_one_dir_item()
986 static inline int __add_inode_ref(struct btrfs_trans_handle *trans, in __add_inode_ref()
1215 static noinline int add_inode_ref(struct btrfs_trans_handle *trans, in add_inode_ref()
[all …]
Dqgroup.c506 static int add_qgroup_relation_item(struct btrfs_trans_handle *trans, in add_qgroup_relation_item()
530 static int del_qgroup_relation_item(struct btrfs_trans_handle *trans, in del_qgroup_relation_item()
561 static int add_qgroup_item(struct btrfs_trans_handle *trans, in add_qgroup_item()
629 static int del_qgroup_item(struct btrfs_trans_handle *trans, in del_qgroup_item()
675 static int update_qgroup_limit_item(struct btrfs_trans_handle *trans, in update_qgroup_limit_item()
717 static int update_qgroup_info_item(struct btrfs_trans_handle *trans, in update_qgroup_info_item()
762 static int update_qgroup_status_item(struct btrfs_trans_handle *trans, in update_qgroup_status_item()
806 static int btrfs_clean_quota_tree(struct btrfs_trans_handle *trans, in btrfs_clean_quota_tree()
852 int btrfs_quota_enable(struct btrfs_trans_handle *trans, in btrfs_quota_enable()
983 int btrfs_quota_disable(struct btrfs_trans_handle *trans, in btrfs_quota_disable()
[all …]
Dvolumes.h390 int btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
416 int btrfs_grow_device(struct btrfs_trans_handle *trans,
437 int find_free_dev_extent(struct btrfs_trans_handle *trans,
445 int btrfs_run_dev_stats(struct btrfs_trans_handle *trans,
461 int btrfs_finish_chunk_alloc(struct btrfs_trans_handle *trans,
464 int btrfs_remove_chunk(struct btrfs_trans_handle *trans,
Dprops.h34 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
38 int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans,
Dxattr.h28 extern int __btrfs_setxattr(struct btrfs_trans_handle *trans,
32 extern int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
Ddelayed-inode.c537 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata()
581 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata()
811 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item()
841 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items()
880 static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, in btrfs_batch_delete_items()
943 static int btrfs_delete_delayed_items(struct btrfs_trans_handle *trans, in btrfs_delete_delayed_items()
1015 static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in __btrfs_update_delayed_inode()
1097 static inline int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in btrfs_update_delayed_inode()
1116 __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_commit_inode_delayed_items()
1140 static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_run_delayed_items()
[all …]
Dextent-tree.c63 static int update_block_group(struct btrfs_trans_handle *trans,
66 static int __btrfs_free_extent(struct btrfs_trans_handle *trans,
75 static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
80 static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans,
85 static int do_chunk_alloc(struct btrfs_trans_handle *trans,
809 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info()
1046 static int convert_extent_item_v0(struct btrfs_trans_handle *trans, in convert_extent_item_v0()
1162 static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans, in lookup_extent_data_ref()
1249 static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, in insert_extent_data_ref()
1328 static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans, in remove_extent_data_ref()
[all …]
/fs/btrfs/tests/
Dfree-space-tree-tests.c31 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents()
120 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents()
163 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group()
177 static int test_remove_all(struct btrfs_trans_handle *trans, in test_remove_all()
198 static int test_remove_beginning(struct btrfs_trans_handle *trans, in test_remove_beginning()
222 static int test_remove_end(struct btrfs_trans_handle *trans, in test_remove_end()
246 static int test_remove_middle(struct btrfs_trans_handle *trans, in test_remove_middle()
271 static int test_merge_left(struct btrfs_trans_handle *trans, in test_merge_left()
309 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right()
348 static int test_merge_both(struct btrfs_trans_handle *trans, in test_merge_both()
[all …]
Dqgroup-tests.c30 struct btrfs_trans_handle trans; in insert_normal_tree_ref()
83 struct btrfs_trans_handle trans; in add_tree_ref()
135 struct btrfs_trans_handle trans; in remove_extent_item()
167 struct btrfs_trans_handle trans; in remove_extent_ref()
223 struct btrfs_trans_handle trans; in test_no_shared_qgroup()
320 struct btrfs_trans_handle trans; in test_multiple_refs()
Dbtrfs-tests.h28 struct btrfs_trans_handle;
43 void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans);

123