Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
H A Dtree-log.h19 struct btrfs_trans_handle;
62 static inline void btrfs_set_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_set_log_full_commit()
67 static inline int btrfs_need_log_full_commit(struct btrfs_trans_handle *trans) in btrfs_need_log_full_commit()
73 int btrfs_sync_log(struct btrfs_trans_handle *trans,
75 int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
76 int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
79 int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
82 void btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
86 void btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
92 void btrfs_record_unlink_dir(struct btrfs_trans_handle *tran
[all...]
H A Dtransaction.h142 struct btrfs_trans_handle { struct
173 * This accepts btrfs_transaction and btrfs_trans_handle as types. Once it's argument
197 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans()
211 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup()
221 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup()
272 int btrfs_end_transaction(struct btrfs_trans_handle *trans);
273 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
275 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv(
278 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
279 struct btrfs_trans_handle *btrfs_join_transaction_spacecach
143 transidbtrfs_trans_handle global() argument
144 bytes_reservedbtrfs_trans_handle global() argument
145 delayed_refs_bytes_reservedbtrfs_trans_handle global() argument
146 chunk_bytes_reservedbtrfs_trans_handle global() argument
147 delayed_ref_updatesbtrfs_trans_handle global() argument
148 delayed_ref_csum_deletionsbtrfs_trans_handle global() argument
149 transactionbtrfs_trans_handle global() argument
[all...]
H A Dextent-tree.h104 int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans, u64 min_bytes);
109 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
113 int btrfs_pin_extent(struct btrfs_trans_handle *trans, u64 bytenr, u64 num,
115 int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans,
120 struct extent_buffer *btrfs_alloc_tree_block(struct btrfs_trans_handle *trans,
128 int btrfs_free_tree_block(struct btrfs_trans_handle *trans,
132 int btrfs_alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
136 int btrfs_alloc_logged_file_extent(struct btrfs_trans_handle *trans,
142 int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
144 int btrfs_dec_ref(struct btrfs_trans_handle *tran
[all...]
H A Dfree-space-tree.h15 struct btrfs_trans_handle;
30 int btrfs_add_block_group_free_space(struct btrfs_trans_handle *trans,
32 int btrfs_remove_block_group_free_space(struct btrfs_trans_handle *trans,
34 int btrfs_add_to_free_space_tree(struct btrfs_trans_handle *trans,
36 int btrfs_remove_from_free_space_tree(struct btrfs_trans_handle *trans,
41 btrfs_search_free_space_info(struct btrfs_trans_handle *trans,
44 int __btrfs_add_to_free_space_tree(struct btrfs_trans_handle *trans,
47 int __btrfs_remove_from_free_space_tree(struct btrfs_trans_handle *trans,
50 int btrfs_convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans,
53 int btrfs_convert_free_space_to_extents(struct btrfs_trans_handle *tran
[all...]
H A Dqgroup.h22 struct btrfs_trans_handle;
341 int btrfs_add_qgroup_relation(struct btrfs_trans_handle *trans, u64 src, u64 dst,
343 int btrfs_del_qgroup_relation(struct btrfs_trans_handle *trans, u64 src,
345 int btrfs_create_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid);
346 int btrfs_remove_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid);
348 int btrfs_limit_qgroup(struct btrfs_trans_handle *trans, u64 qgroupid,
358 int btrfs_qgroup_trace_extent_post(struct btrfs_trans_handle *trans,
361 int btrfs_qgroup_trace_extent(struct btrfs_trans_handle *trans, u64 bytenr,
363 int btrfs_qgroup_trace_leaf_items(struct btrfs_trans_handle *trans,
365 int btrfs_qgroup_trace_subtree(struct btrfs_trans_handle *tran
[all...]
H A Droot-tree.h16 struct btrfs_trans_handle;
21 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id,
24 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id,
27 int btrfs_del_root(struct btrfs_trans_handle *trans, const struct btrfs_key *key);
28 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
31 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root *root,
40 void btrfs_update_root_times(struct btrfs_trans_handle *trans, struct btrfs_root *root);
H A Ddir-item.h15 struct btrfs_trans_handle;
19 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans,
22 struct btrfs_dir_item *btrfs_lookup_dir_item(struct btrfs_trans_handle *trans,
27 struct btrfs_trans_handle *trans,
34 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans,
38 int btrfs_insert_xattr_item(struct btrfs_trans_handle *trans,
43 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans,
H A Dblock-group.h21 struct btrfs_trans_handle;
195 * 4) struct btrfs_trans_handle::new_bgs
324 struct btrfs_trans_handle *btrfs_start_trans_remove_block_group(
327 int btrfs_remove_block_group(struct btrfs_trans_handle *trans,
335 struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans,
338 void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans);
342 int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans);
343 int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans);
344 int btrfs_setup_space_cache(struct btrfs_trans_handle *trans);
345 int btrfs_update_block_group(struct btrfs_trans_handle *tran
[all...]
H A Dctree.h26 struct btrfs_trans_handle;
544 void btrfs_set_item_key_safe(struct btrfs_trans_handle *trans,
557 int btrfs_cow_block(struct btrfs_trans_handle *trans,
562 int btrfs_force_cow_block(struct btrfs_trans_handle *trans,
569 int btrfs_copy_root(struct btrfs_trans_handle *trans,
573 bool btrfs_block_can_be_shared(const struct btrfs_trans_handle *trans,
576 int btrfs_del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root,
578 void btrfs_extend_item(struct btrfs_trans_handle *trans,
580 void btrfs_truncate_item(struct btrfs_trans_handle *trans,
582 int btrfs_split_item(struct btrfs_trans_handle *tran
[all...]
H A Drelocation.h11 struct btrfs_trans_handle;
17 int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root);
18 int btrfs_update_reloc_root(struct btrfs_trans_handle *trans,
22 int btrfs_reloc_cow_block(struct btrfs_trans_handle *trans,
28 int btrfs_reloc_post_snapshot(struct btrfs_trans_handle *trans,
H A Ddelayed-inode.h25 struct btrfs_trans_handle;
110 int btrfs_insert_delayed_dir_index(struct btrfs_trans_handle *trans,
116 int btrfs_delete_delayed_dir_index(struct btrfs_trans_handle *trans,
121 int btrfs_run_delayed_items(struct btrfs_trans_handle *trans);
122 int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr);
126 int btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans,
134 int btrfs_delayed_update_inode(struct btrfs_trans_handle *trans,
H A Draid-stripe-tree.h23 struct btrfs_trans_handle;
25 int btrfs_delete_raid_extent(struct btrfs_trans_handle *trans, u64 start, u64 length);
29 int btrfs_insert_raid_extent(struct btrfs_trans_handle *trans,
33 int btrfs_insert_one_raid_extent(struct btrfs_trans_handle *trans,
H A Dfile-item.h17 struct btrfs_trans_handle;
54 int btrfs_del_csums(struct btrfs_trans_handle *trans,
57 int btrfs_insert_hole_extent(struct btrfs_trans_handle *trans,
60 int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
64 int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
H A Ddisk-io.h21 struct btrfs_trans_handle;
107 void btrfs_mark_buffer_dirty(struct btrfs_trans_handle *trans,
115 int btrfs_alloc_log_tree_node(struct btrfs_trans_handle *trans,
117 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
119 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
124 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
H A Dfree-space-cache.h20 struct btrfs_trans_handle;
116 int create_free_space_inode(struct btrfs_trans_handle *trans,
119 int btrfs_remove_free_space_inode(struct btrfs_trans_handle *trans,
123 int btrfs_truncate_free_space_cache(struct btrfs_trans_handle *trans,
127 int btrfs_wait_cache_io(struct btrfs_trans_handle *trans,
130 int btrfs_write_out_cache(struct btrfs_trans_handle *trans,
H A Duuid-tree.h8 struct btrfs_trans_handle;
11 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
13 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, const u8 *uuid, u8 type,
H A Dfile.h21 struct btrfs_trans_handle;
26 int btrfs_drop_extents(struct btrfs_trans_handle *trans,
33 struct btrfs_trans_handle **trans_out);
34 int btrfs_mark_extent_written(struct btrfs_trans_handle *trans,
H A Dprops.h14 struct btrfs_trans_handle;
18 int btrfs_set_prop(struct btrfs_trans_handle *trans, struct btrfs_inode *inode,
27 int btrfs_inode_inherit_props(struct btrfs_trans_handle *trans,
H A Dxattr.h15 struct btrfs_trans_handle;
21 int btrfs_setxattr(struct btrfs_trans_handle *trans, struct inode *inode,
27 int btrfs_xattr_security_init(struct btrfs_trans_handle *trans,
H A Dtransaction.c178 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots()
252 void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans) in btrfs_trans_release_chunk_metadata()
405 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
466 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
485 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
594 static struct btrfs_trans_handle *
602 struct btrfs_trans_handle *h; in start_transaction()
813 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
820 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( in btrfs_start_transaction_fallback_global_rsv()
828 struct btrfs_trans_handle *btrfs_join_transactio
[all...]
H A Ddelayed-ref.h20 struct btrfs_trans_handle;
376 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans,
379 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
382 int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans,
411 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans);
H A Ddir-item.c21 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()
107 int btrfs_insert_dir_item(struct btrfs_trans_handle *trans, 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()
299 btrfs_lookup_dir_index_item(struct btrfs_trans_handle *trans, in btrfs_lookup_dir_index_item()
346 struct btrfs_dir_item *btrfs_lookup_xattr(struct btrfs_trans_handle *trans, in btrfs_lookup_xattr()
406 int btrfs_delete_one_dir_name(struct btrfs_trans_handle *trans, in btrfs_delete_one_dir_name()
H A Dbtrfs_inode.h34 struct btrfs_trans_handle;
556 int btrfs_unlink_inode(struct btrfs_trans_handle *trans,
559 int btrfs_add_link(struct btrfs_trans_handle *trans,
588 int btrfs_create_new_inode(struct btrfs_trans_handle *trans,
613 int btrfs_update_inode(struct btrfs_trans_handle *trans,
615 int btrfs_update_inode_fallback(struct btrfs_trans_handle *trans,
617 int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct btrfs_inode *inode);
627 struct btrfs_trans_handle *trans, int mode,
H 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()
98 struct btrfs_trans_handle *trans, in btrfs_search_free_space_info()
129 static int btrfs_search_prev_slot(struct btrfs_trans_handle *trans, in btrfs_search_prev_slot()
201 int btrfs_convert_free_space_to_bitmaps(struct btrfs_trans_handle *trans, in btrfs_convert_free_space_to_bitmaps()
345 int btrfs_convert_free_space_to_extents(struct btrfs_trans_handle *trans, in btrfs_convert_free_space_to_extents()
484 static int update_free_space_extent_count(struct btrfs_trans_handle *trans, in update_free_space_extent_count()
542 static void free_space_modify_bits(struct btrfs_trans_handle *trans, in free_space_modify_bits()
585 static int free_space_next_bitmap(struct btrfs_trans_handle *trans, in free_space_next_bitmap()
610 static int modify_free_space_bitmap(struct btrfs_trans_handle *tran
[all...]
/linux/fs/btrfs/tests/
H A Dfree-space-tree-tests.c20 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()
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()
290 static int test_merge_right(struct btrfs_trans_handle *trans, in test_merge_right()
327 static int test_merge_both(struct btrfs_trans_handle *tran
[all...]

123