/linux/fs/btrfs/ |
A D | transaction.h | 118 struct btrfs_trans_handle { struct 183 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup() 202 int btrfs_end_transaction(struct btrfs_trans_handle *trans); 205 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( 212 struct btrfs_trans_handle *btrfs_attach_transaction_barrier( 219 int btrfs_commit_transaction(struct btrfs_trans_handle *trans); 220 int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans); 221 int btrfs_end_transaction_throttle(struct btrfs_trans_handle *trans); 222 bool btrfs_should_end_transaction(struct btrfs_trans_handle *trans); 224 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, [all …]
|
A D | tree-log.h | 53 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit() 58 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit() 64 int btrfs_sync_log(struct btrfs_trans_handle *trans, 66 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root); 67 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans, 70 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans, 73 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans, 77 void btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans, 83 void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans, 86 void btrfs_record_snapshot_destroy(struct btrfs_trans_handle *trans, [all …]
|
A D | qgroup.h | 252 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, 254 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, 256 int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid); 258 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid, 301 int btrfs_qgroup_trace_extent_post(struct btrfs_trans_handle *trans, 326 int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans, 338 int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *trans, 344 int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans); 345 int btrfs_run_qgroups(struct btrfs_trans_handle *trans); 346 int btrfs_qgroup_inherit(struct btrfs_trans_handle *trans, u64 srcid, [all …]
|
A D | free-space-tree.h | 23 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 D | block-group.h | 265 struct btrfs_trans_handle *btrfs_start_trans_remove_block_group( 268 int btrfs_remove_block_group(struct btrfs_trans_handle *trans, 279 void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans); 283 int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans); 284 int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans); 285 int btrfs_setup_space_cache(struct btrfs_trans_handle *trans); 286 int btrfs_update_block_group(struct btrfs_trans_handle *trans, 292 int btrfs_chunk_alloc(struct btrfs_trans_handle *trans, u64 flags, 294 int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans, u64 type); 295 void check_system_chunk(struct btrfs_trans_handle *trans, const u64 type); [all …]
|
A D | delayed-inode.h | 88 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,
|
A D | ctree.h | 38 struct btrfs_trans_handle; 2862 int btrfs_cow_block(struct btrfs_trans_handle *trans, 2867 int btrfs_copy_root(struct btrfs_trans_handle *trans, 2875 int btrfs_split_item(struct btrfs_trans_handle *trans, 3049 int btrfs_del_root(struct btrfs_trans_handle *trans, 3154 int btrfs_del_csums(struct btrfs_trans_handle *trans, 3205 int btrfs_add_link(struct btrfs_trans_handle *trans, 3255 int btrfs_orphan_add(struct btrfs_trans_handle *trans, 3266 struct btrfs_trans_handle *trans, int mode, 3332 struct btrfs_trans_handle **trans_out); [all …]
|
A D | transaction.c | 407 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans() 469 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root() 488 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans() 567 static struct btrfs_trans_handle * 574 struct btrfs_trans_handle *h; in start_transaction() 832 struct btrfs_trans_handle * 835 struct btrfs_trans_handle *trans; in btrfs_attach_transaction_barrier() 1006 int btrfs_end_transaction(struct btrfs_trans_handle *trans) in btrfs_end_transaction() 1392 struct btrfs_trans_handle *trans; in btrfs_defrag_root() 1869 struct btrfs_trans_handle *newtrans; [all …]
|
A D | props.h | 13 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct inode *inode, 20 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans, 24 int btrfs_subvol_inherit_props(struct btrfs_trans_handle *trans,
|
A D | delayed-ref.h | 352 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, 355 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, 358 int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans, 361 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, 383 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans); 389 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans);
|
A D | free-space-cache.h | 82 int create_free_space_inode(struct btrfs_trans_handle *trans, 85 int btrfs_remove_free_space_inode(struct btrfs_trans_handle *trans, 91 int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans, 95 int btrfs_wait_cache_io(struct btrfs_trans_handle *trans, 98 int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
|
A D | dir-item.c | 18 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() 174 struct btrfs_trans_handle *trans, in btrfs_lookup_match_dir() 208 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_item() 305 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item() 373 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr() 434 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
|
A D | free-space-tree.c | 15 static int __add_block_group_free_space(struct btrfs_trans_handle *trans, 50 static int add_new_free_space_info(struct btrfs_trans_handle *trans, in add_new_free_space_info() 83 struct btrfs_trans_handle *trans, in search_free_space_info() 114 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot() 186 int convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in convert_free_space_to_bitmaps() 813 int remove_from_free_space_tree(struct btrfs_trans_handle *trans, in remove_from_free_space_tree() 977 int __add_to_free_space_tree(struct btrfs_trans_handle *trans, in __add_to_free_space_tree() 1006 int add_to_free_space_tree(struct btrfs_trans_handle *trans, in add_to_free_space_tree() 1141 struct btrfs_trans_handle *trans; in btrfs_create_free_space_tree() 1233 struct btrfs_trans_handle *trans; in btrfs_clear_free_space_tree() [all …]
|
A D | disk-io.h | 120 int btrfs_alloc_log_tree_node(struct btrfs_trans_handle *trans, 122 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, 124 int btrfs_add_log_tree(struct btrfs_trans_handle *trans, 130 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
|
A D | inode-item.c | 74 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() 169 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans, in btrfs_del_inode_ref() 247 static int btrfs_insert_inode_extref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_extref() 304 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans, in btrfs_insert_inode_ref() 382 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans, in btrfs_insert_empty_inode() 397 int btrfs_lookup_inode(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_lookup_inode()
|
A D | tree-log.c | 96 static int btrfs_log_inode(struct btrfs_trans_handle *trans, 100 static int link_to_fixup_dir(struct btrfs_trans_handle *trans, 138 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans() 325 struct btrfs_trans_handle *trans; 599 static int overwrite_item(struct btrfs_trans_handle *trans, in overwrite_item() 1417 static int add_link(struct btrfs_trans_handle *trans, in add_link() 2935 static int walk_log_tree(struct btrfs_trans_handle *trans, in walk_log_tree() 3108 int btrfs_sync_log(struct btrfs_trans_handle *trans, in btrfs_sync_log() 4269 static int log_csums(struct btrfs_trans_handle *trans, in log_csums() 6518 struct btrfs_trans_handle *trans; in btrfs_recover_log_trees() [all …]
|
A D | root-tree.c | 116 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root() 195 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() 257 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots() 292 int btrfs_del_root(struct btrfs_trans_handle *trans, in btrfs_del_root() 314 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_del_root_ref() 388 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_add_root_ref() 455 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times()
|
A D | delayed-inode.c | 602 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata() 677 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item() 793 static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, in btrfs_batch_delete_items() 1038 __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_commit_inode_delayed_items() 1108 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans) in btrfs_run_delayed_items() 1158 struct btrfs_trans_handle *trans; in btrfs_commit_inode_delayed_inode() 1231 struct btrfs_trans_handle *trans; in btrfs_async_run_delayed_root() 1350 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_dir_index() 1425 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans, in btrfs_delete_delayed_dir_index() 1647 static void fill_stack_inode_item(struct btrfs_trans_handle *trans, in fill_stack_inode_item() [all …]
|
A D | xattr.h | 15 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode, 21 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
|
A D | extent-tree.c | 43 static int __btrfs_free_extent(struct btrfs_trans_handle *trans, 115 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info() 1390 int btrfs_inc_extent_ref(struct btrfs_trans_handle *trans, in btrfs_inc_extent_ref() 1861 struct btrfs_trans_handle *trans) in btrfs_obtain_ref_head() 2122 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_run_delayed_refs() 2383 static int __btrfs_mod_ref(struct btrfs_trans_handle *trans, in __btrfs_mod_ref() 2520 static int pin_down_extent(struct btrfs_trans_handle *trans, in pin_down_extent() 2543 int btrfs_pin_extent(struct btrfs_trans_handle *trans, in btrfs_pin_extent() 4034 struct btrfs_trans_handle *trans; in find_free_extent_update_loop() 5572 struct btrfs_trans_handle *trans; in btrfs_drop_snapshot() [all …]
|
A D | delayed-ref.c | 54 int btrfs_should_throttle_delayed_refs(struct btrfs_trans_handle *trans) in btrfs_should_throttle_delayed_refs() 100 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans) in btrfs_update_delayed_refs_rsv() 418 static inline void drop_delayed_ref(struct btrfs_trans_handle *trans, in drop_delayed_ref() 433 static bool merge_ref(struct btrfs_trans_handle *trans, in merge_ref() 480 void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans, in btrfs_merge_delayed_refs() 582 static int insert_delayed_ref(struct btrfs_trans_handle *trans, in insert_delayed_ref() 637 static noinline void update_existing_head_ref(struct btrfs_trans_handle *trans, in update_existing_head_ref() 784 add_delayed_ref_head(struct btrfs_trans_handle *trans, in add_delayed_ref_head() 890 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_tree_ref() 984 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans, in btrfs_add_delayed_data_ref() [all …]
|
A D | orphan.c | 9 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()
|
/linux/fs/btrfs/tests/ |
A D | free-space-tree-tests.c | 19 static int __check_free_space_extents(struct btrfs_trans_handle *trans, in __check_free_space_extents() 163 static int test_remove_all(struct btrfs_trans_handle *trans, in test_remove_all() 184 static int test_remove_beginning(struct btrfs_trans_handle *trans, in test_remove_beginning() 207 static int test_remove_end(struct btrfs_trans_handle *trans, in test_remove_end() 230 static int test_remove_middle(struct btrfs_trans_handle *trans, in test_remove_middle() 254 static int test_merge_left(struct btrfs_trans_handle *trans, in test_merge_left() 291 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right() 329 static int test_merge_both(struct btrfs_trans_handle *trans, in test_merge_both() 372 static int test_merge_none(struct btrfs_trans_handle *trans, in test_merge_none() 417 typedef int (*test_func_t)(struct btrfs_trans_handle *, [all …]
|
A D | qgroup-tests.c | 17 struct btrfs_trans_handle trans; in insert_normal_tree_ref() 69 struct btrfs_trans_handle trans; in add_tree_ref() 120 struct btrfs_trans_handle trans; in remove_extent_item() 151 struct btrfs_trans_handle trans; in remove_extent_ref() 206 struct btrfs_trans_handle trans; in test_no_shared_qgroup() 303 struct btrfs_trans_handle trans; in test_multiple_refs()
|
A D | btrfs-tests.h | 31 struct btrfs_trans_handle; 47 void btrfs_init_dummy_trans(struct btrfs_trans_handle *trans,
|