Home
last modified time | relevance | path

Searched defs:trans (Results 1 – 25 of 48) sorted by relevance

12

/fs/btrfs/
Dtransaction.c82 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots()
115 static inline void extwriter_counter_inc(struct btrfs_transaction *trans, in extwriter_counter_inc()
122 static inline void extwriter_counter_dec(struct btrfs_transaction *trans, in extwriter_counter_dec()
129 static inline void extwriter_counter_init(struct btrfs_transaction *trans, in extwriter_counter_init()
135 static inline int extwriter_counter_read(struct btrfs_transaction *trans) in extwriter_counter_read()
144 void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans) in btrfs_trans_release_chunk_metadata()
285 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
346 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
365 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
389 static inline int is_transaction_blocked(struct btrfs_transaction *trans) in is_transaction_blocked()
[all …]
Dfree-space-tree.c47 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info()
80 struct btrfs_trans_handle *trans, in search_free_space_info()
111 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot()
182 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps()
322 int convert_free_space_to_extents(struct btrfs_trans_handle *trans, in convert_free_space_to_extents()
455 static int update_free_space_extent_count(struct btrfs_trans_handle *trans, in update_free_space_extent_count()
558 static int free_space_next_bitmap(struct btrfs_trans_handle *trans, in free_space_next_bitmap()
583 static int modify_free_space_bitmap(struct btrfs_trans_handle *trans, in modify_free_space_bitmap()
696 static int remove_free_space_extent(struct btrfs_trans_handle *trans, in remove_free_space_extent()
783 int __remove_from_free_space_tree(struct btrfs_trans_handle *trans, in __remove_from_free_space_tree()
[all …]
Dtree-log.c137 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans()
286 struct btrfs_trans_handle *trans; member
346 static noinline int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item()
584 static noinline int replay_one_extent(struct btrfs_trans_handle *trans, in replay_one_extent()
856 static noinline int drop_one_dir_item(struct btrfs_trans_handle *trans, in drop_one_dir_item()
1012 static inline int __add_inode_ref(struct btrfs_trans_handle *trans, in __add_inode_ref()
1247 static int unlink_old_inode_refs(struct btrfs_trans_handle *trans, in unlink_old_inode_refs()
1377 static int add_link(struct btrfs_trans_handle *trans, struct btrfs_root *root, in add_link()
1444 static noinline int add_inode_ref(struct btrfs_trans_handle *trans, in add_inode_ref()
1626 static int insert_orphan_item(struct btrfs_trans_handle *trans, in insert_orphan_item()
[all …]
Dqgroup.c575 static int add_qgroup_relation_item(struct btrfs_trans_handle *trans, u64 src, in add_qgroup_relation_item()
599 static int del_qgroup_relation_item(struct btrfs_trans_handle *trans, u64 src, in del_qgroup_relation_item()
630 static int add_qgroup_item(struct btrfs_trans_handle *trans, in add_qgroup_item()
698 static int del_qgroup_item(struct btrfs_trans_handle *trans, u64 qgroupid) in del_qgroup_item()
744 static int update_qgroup_limit_item(struct btrfs_trans_handle *trans, in update_qgroup_limit_item()
786 static int update_qgroup_info_item(struct btrfs_trans_handle *trans, in update_qgroup_info_item()
832 static int update_qgroup_status_item(struct btrfs_trans_handle *trans) in update_qgroup_status_item()
876 static int btrfs_clean_quota_tree(struct btrfs_trans_handle *trans, in btrfs_clean_quota_tree()
931 struct btrfs_trans_handle *trans = NULL; in btrfs_quota_enable() local
1163 struct btrfs_trans_handle *trans = NULL; in btrfs_quota_disable() local
[all …]
Droot-tree.c120 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
199 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
281 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots() local
329 int btrfs_del_root(struct btrfs_trans_handle *trans, in btrfs_del_root()
351 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_del_root_ref()
426 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_add_root_ref()
493 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times()
Ddelayed-inode.c547 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata()
603 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata()
802 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item()
835 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items()
874 static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, in btrfs_batch_delete_items()
937 static int btrfs_delete_delayed_items(struct btrfs_trans_handle *trans, in btrfs_delete_delayed_items()
1012 static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in __btrfs_update_delayed_inode()
1107 static inline int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in btrfs_update_delayed_inode()
1126 __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_commit_inode_delayed_items()
1150 static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) in __btrfs_run_delayed_items()
[all …]
Dextent-tree.c151 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info()
476 static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans, in lookup_extent_data_ref()
552 static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, in insert_extent_data_ref()
631 static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans, in remove_extent_data_ref()
719 static noinline int lookup_tree_block_ref(struct btrfs_trans_handle *trans, in lookup_tree_block_ref()
743 static noinline int insert_tree_block_ref(struct btrfs_trans_handle *trans, in insert_tree_block_ref()
818 int lookup_inline_extent_backref(struct btrfs_trans_handle *trans, in lookup_inline_extent_backref()
1076 static int lookup_extent_backref(struct btrfs_trans_handle *trans, in lookup_extent_backref()
1174 int insert_inline_extent_backref(struct btrfs_trans_handle *trans, in insert_inline_extent_backref()
1200 static int insert_extent_backref(struct btrfs_trans_handle *trans, in insert_extent_backref()
[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, const char *name, in btrfs_insert_dir_item()
175 struct btrfs_trans_handle *trans, in btrfs_lookup_match_dir()
209 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item()
306 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item()
374 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr()
435 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
Dinode-item.c74 btrfs_lookup_inode_extref(struct btrfs_trans_handle *trans, in btrfs_lookup_inode_extref()
98 static int btrfs_del_inode_extref(struct btrfs_trans_handle *trans, in btrfs_del_inode_extref()
171 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, in btrfs_del_inode_ref()
251 static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_extref()
309 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_ref()
388 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, in btrfs_insert_empty_inode()
403 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
Ddelayed-ref.c53 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans) in btrfs_should_throttle_delayed_refs()
99 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans) in btrfs_update_delayed_refs_rsv()
415 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref()
430 static bool merge_ref(struct btrfs_trans_handle *trans, in merge_ref()
477 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs()
595 static int insert_delayed_ref(struct btrfs_trans_handle *trans, in insert_delayed_ref()
650 static noinline void update_existing_head_ref(struct btrfs_trans_handle *trans, in update_existing_head_ref()
799 add_delayed_ref_head(struct btrfs_trans_handle *trans, in add_delayed_ref_head()
911 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_tree_ref()
1008 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_data_ref()
[all …]
Dxattr.c79 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, in btrfs_setxattr()
229 struct btrfs_trans_handle *trans; in btrfs_setxattr_trans() local
404 struct btrfs_trans_handle *trans; in btrfs_xattr_handler_set_prop() local
468 struct btrfs_trans_handle *trans = fs_private; in btrfs_initxattrs() local
498 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans, in btrfs_xattr_security_init()
Dblock-group.c867 int btrfs_remove_block_group(struct btrfs_trans_handle *trans, in btrfs_remove_block_group()
1276 struct btrfs_trans_handle *trans; in btrfs_delete_unused_bgs() local
1887 void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans) in btrfs_create_pending_block_groups()
1927 int btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, in btrfs_make_block_group()
2064 struct btrfs_trans_handle *trans; in btrfs_inc_block_group_ro() local
2155 static int write_one_cache_group(struct btrfs_trans_handle *trans, in write_one_cache_group()
2183 struct btrfs_trans_handle *trans, in cache_save_setup()
2343 int btrfs_setup_space_cache(struct btrfs_trans_handle *trans) in btrfs_setup_space_cache()
2381 int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans) in btrfs_start_dirty_block_groups()
2548 int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans) in btrfs_write_dirty_block_groups()
[all …]
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()
Drelocation.c470 static int update_backref_cache(struct btrfs_trans_handle *trans, in update_backref_cache()
1201 static int clone_backref_node(struct btrfs_trans_handle *trans, in clone_backref_node()
1382 static struct btrfs_root *create_reloc_root(struct btrfs_trans_handle *trans, in create_reloc_root()
1459 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, in btrfs_init_reloc_root()
1519 int btrfs_update_reloc_root(struct btrfs_trans_handle *trans, in btrfs_update_reloc_root()
1675 int replace_file_extents(struct btrfs_trans_handle *trans, in replace_file_extents()
1818 int replace_path(struct btrfs_trans_handle *trans, struct reloc_control *rc, in replace_path()
2211 static void insert_dirty_subvol(struct btrfs_trans_handle *trans, in insert_dirty_subvol()
2283 struct btrfs_trans_handle *trans = NULL; in merge_reloc_root() local
2453 struct btrfs_trans_handle *trans; in prepare_to_merge() local
[all …]
Dtree-log.h35 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit()
40 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit()
Dctree.c218 int btrfs_copy_root(struct btrfs_trans_handle *trans, in btrfs_copy_root()
887 static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans, in update_ref_for_cow()
999 struct btrfs_trans_handle *trans, in alloc_tree_block_no_bg_flush()
1052 static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans, in __btrfs_cow_block()
1484 static inline int should_cow_block(struct btrfs_trans_handle *trans, in should_cow_block()
1519 noinline int btrfs_cow_block(struct btrfs_trans_handle *trans, in btrfs_cow_block()
1619 int btrfs_realloc_node(struct btrfs_trans_handle *trans, in btrfs_realloc_node()
1877 static noinline int balance_level(struct btrfs_trans_handle *trans, in balance_level()
2105 static noinline int push_nodes_for_insert(struct btrfs_trans_handle *trans, in push_nodes_for_insert()
2546 setup_nodes_for_search(struct btrfs_trans_handle *trans, in setup_nodes_for_search()
[all …]
Dacl.c55 static int __btrfs_set_acl(struct btrfs_trans_handle *trans, in __btrfs_set_acl()
126 int btrfs_init_acl(struct btrfs_trans_handle *trans, in btrfs_init_acl()
Duuid-tree.c82 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add()
147 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove()
232 struct btrfs_trans_handle *trans; in btrfs_uuid_iter_rem() local
Dprops.c75 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, in btrfs_set_prop()
323 static int inherit_props(struct btrfs_trans_handle *trans, in inherit_props()
396 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, in btrfs_inode_inherit_props()
406 int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans, in btrfs_subvol_inherit_props()
Ddev-replace.c300 int btrfs_run_dev_replace(struct btrfs_trans_handle *trans) in btrfs_run_dev_replace()
421 struct btrfs_trans_handle *trans; in btrfs_dev_replace_start() local
642 struct btrfs_trans_handle *trans; in btrfs_dev_replace_finishing() local
883 struct btrfs_trans_handle *trans; in btrfs_dev_replace_cancel() local
Dinode.c150 static int btrfs_init_inode_security(struct btrfs_trans_handle *trans, in btrfs_init_inode_security()
167 static int insert_inline_extent(struct btrfs_trans_handle *trans, in insert_inline_extent()
276 struct btrfs_trans_handle *trans; in cow_file_range_inline() local
2226 static noinline int add_pending_csums(struct btrfs_trans_handle *trans, in add_pending_csums()
2443 static int insert_reserved_file_extent(struct btrfs_trans_handle *trans, in insert_reserved_file_extent()
2803 struct btrfs_trans_handle *trans; in relink_extent_backref() local
3196 struct btrfs_trans_handle *trans = NULL; in btrfs_finish_ordered_io() local
3614 int btrfs_orphan_add(struct btrfs_trans_handle *trans, in btrfs_orphan_add()
3632 static int btrfs_orphan_del(struct btrfs_trans_handle *trans, in btrfs_orphan_del()
3648 struct btrfs_trans_handle *trans; in btrfs_orphan_cleanup() local
[all …]
Dtransaction.h139 #define TRANS_ABORTED(trans) (unlikely(READ_ONCE((trans)->aborted))) argument
157 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans()
171 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup()
181 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup()
/fs/btrfs/tests/
Dfree-space-tree-tests.c19 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents()
108 static int check_free_space_extents(struct btrfs_trans_handle *trans, in check_free_space_extents()
151 static int test_empty_block_group(struct btrfs_trans_handle *trans, in test_empty_block_group()
165 static int test_remove_all(struct btrfs_trans_handle *trans, in test_remove_all()
186 static int test_remove_beginning(struct btrfs_trans_handle *trans, in test_remove_beginning()
210 static int test_remove_end(struct btrfs_trans_handle *trans, in test_remove_end()
234 static int test_remove_middle(struct btrfs_trans_handle *trans, in test_remove_middle()
259 static int test_merge_left(struct btrfs_trans_handle *trans, in test_merge_left()
297 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right()
336 static int test_merge_both(struct btrfs_trans_handle *trans, in test_merge_both()
[all …]
Dqgroup-tests.c17 struct btrfs_trans_handle trans; in insert_normal_tree_ref() local
70 struct btrfs_trans_handle trans; in add_tree_ref() local
122 struct btrfs_trans_handle trans; in remove_extent_item() local
154 struct btrfs_trans_handle trans; in remove_extent_ref() local
210 struct btrfs_trans_handle trans; in test_no_shared_qgroup() local
313 struct btrfs_trans_handle trans; in test_multiple_refs() local
/fs/xfs/
Dxfs_attr_inactive.c82 struct xfs_trans **trans, in xfs_attr3_leaf_inactive()
130 struct xfs_trans **trans, in xfs_attr3_node_inactive()
249 struct xfs_trans **trans, in xfs_attr3_root_inactive()
318 struct xfs_trans *trans; in xfs_attr_inactive() local

12