Home
last modified time | relevance | path

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

123

/linux/fs/btrfs/
H A Dtransaction.h152 struct btrfs_trans_handle { struct
215 static inline void btrfs_set_inode_last_trans(struct btrfs_trans_handle *trans, in btrfs_set_inode_last_trans()
229 static inline void btrfs_set_skip_qgroup(struct btrfs_trans_handle *trans, in btrfs_set_skip_qgroup()
239 static inline void btrfs_clear_skip_qgroup(struct btrfs_trans_handle *trans) in btrfs_clear_skip_qgroup()
308 int btrfs_end_transaction(struct btrfs_trans_handle *trans);
309 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root,
311 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv(
314 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root);
315 struct btrfs_trans_handle *btrfs_join_transaction_spacecache(struct btrfs_root *root);
316 struct btrfs_trans_handle *btrfs_join_transaction_nostart(struct btrfs_root *root);
[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;
349 struct btrfs_trans_handle *btrfs_start_trans_remove_block_group(
353 int btrfs_remove_block_group(struct btrfs_trans_handle *trans,
362 struct btrfs_block_group *btrfs_make_block_group(struct btrfs_trans_handle *trans,
365 void btrfs_create_pending_block_groups(struct btrfs_trans_handle *trans);
369 int btrfs_start_dirty_block_groups(struct btrfs_trans_handle *trans);
370 int btrfs_write_dirty_block_groups(struct btrfs_trans_handle *trans);
371 int btrfs_setup_space_cache(struct btrfs_trans_handle *trans);
372 int btrfs_update_block_group(struct btrfs_trans_handle *trans,
379 int btrfs_chunk_alloc(struct btrfs_trans_handle *trans,
[all …]
H A Dctree.h24 struct btrfs_trans_handle;
546 void btrfs_set_item_key_safe(struct btrfs_trans_handle *trans,
559 int btrfs_cow_block(struct btrfs_trans_handle *trans,
564 int btrfs_force_cow_block(struct btrfs_trans_handle *trans,
571 int btrfs_copy_root(struct btrfs_trans_handle *trans,
575 bool btrfs_block_can_be_shared(const struct btrfs_trans_handle *trans,
578 int btrfs_del_ptr(struct btrfs_trans_handle *trans, struct btrfs_root *root,
580 void btrfs_extend_item(struct btrfs_trans_handle *trans,
582 void btrfs_truncate_item(struct btrfs_trans_handle *trans,
584 int btrfs_split_item(struct btrfs_trans_handle *trans,
[all …]
H A Dinode-item.h11 struct btrfs_trans_handle;
88 int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
91 int btrfs_insert_inode_ref(struct btrfs_trans_handle *trans,
94 int btrfs_del_inode_ref(struct btrfs_trans_handle *trans,
97 int btrfs_insert_empty_inode(struct btrfs_trans_handle *trans,
100 int btrfs_lookup_inode(struct btrfs_trans_handle *trans,
H A Ddisk-io.h23 struct btrfs_trans_handle;
63 int write_all_supers(struct btrfs_trans_handle *trans);
110 void btrfs_mark_buffer_dirty(struct btrfs_trans_handle *trans,
118 int btrfs_alloc_log_tree_node(struct btrfs_trans_handle *trans,
120 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans,
122 int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
127 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans,
H A Dacl.h10 struct btrfs_trans_handle;
20 int __btrfs_set_acl(struct btrfs_trans_handle *trans, struct inode *inode,
27 struct btrfs_trans_handle;
31 static inline int __btrfs_set_acl(struct btrfs_trans_handle *trans, in __btrfs_set_acl()
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,
34 int btrfs_insert_one_raid_extent(struct btrfs_trans_handle *trans,
H A Dorphan.h8 struct btrfs_trans_handle;
11 int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans,
13 int btrfs_del_orphan_item(struct btrfs_trans_handle *trans,
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 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 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.c180 static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) in switch_commit_roots()
255 void btrfs_trans_release_chunk_metadata(struct btrfs_trans_handle *trans) in btrfs_trans_release_chunk_metadata()
409 static int record_root_in_trans(struct btrfs_trans_handle *trans, in record_root_in_trans()
481 void btrfs_add_dropped_root(struct btrfs_trans_handle *trans, in btrfs_add_dropped_root()
500 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, in btrfs_record_root_in_trans()
610 static struct btrfs_trans_handle *
618 struct btrfs_trans_handle *h; in start_transaction()
837 struct btrfs_trans_handle *btrfs_start_transaction(struct btrfs_root *root, in btrfs_start_transaction()
844 struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( in btrfs_start_transaction_fallback_global_rsv()
852 struct btrfs_trans_handle *btrfs_join_transaction(struct btrfs_root *root) in btrfs_join_transaction()
[all …]
H A Ddelayed-ref.h20 struct btrfs_trans_handle;
377 int btrfs_add_delayed_tree_ref(struct btrfs_trans_handle *trans,
380 int btrfs_add_delayed_data_ref(struct btrfs_trans_handle *trans,
383 int btrfs_add_delayed_extent_op(struct btrfs_trans_handle *trans,
412 void btrfs_update_delayed_refs_rsv(struct btrfs_trans_handle *trans);
H A Dbtrfs_inode.h31 struct btrfs_trans_handle;
525 int btrfs_unlink_inode(struct btrfs_trans_handle *trans,
528 int btrfs_add_link(struct btrfs_trans_handle *trans,
559 int btrfs_create_new_inode(struct btrfs_trans_handle *trans,
584 int btrfs_update_inode(struct btrfs_trans_handle *trans,
586 int btrfs_update_inode_fallback(struct btrfs_trans_handle *trans,
588 int btrfs_orphan_add(struct btrfs_trans_handle *trans, struct btrfs_inode *inode);
598 struct btrfs_trans_handle *trans, int mode,
H A Dvolumes.h31 struct btrfs_trans_handle;
744 struct btrfs_block_group *btrfs_create_chunk(struct btrfs_trans_handle *trans,
772 int btrfs_grow_device(struct btrfs_trans_handle *trans,
797 int btrfs_run_dev_stats(struct btrfs_trans_handle *trans);
806 int btrfs_chunk_alloc_add_chunk_item(struct btrfs_trans_handle *trans,
808 int btrfs_remove_dev_extents(struct btrfs_trans_handle *trans, struct btrfs_chunk_map *map);
809 int btrfs_remove_chunk(struct btrfs_trans_handle *trans, u64 chunk_offset);
939 int btrfs_update_device(struct btrfs_trans_handle *trans, struct btrfs_device *device);
946 int btrfs_remove_dev_stat_item(struct btrfs_trans_handle *trans, u64 devid);
H A Droot-tree.c128 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root in btrfs_update_root()
203 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root()
262 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots()
309 int btrfs_del_root(struct btrfs_trans_handle *trans, in btrfs_del_root()
329 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_del_root_ref()
397 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_add_root_ref()
461 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times()
H A Dorphan.c9 int btrfs_insert_orphan_item(struct btrfs_trans_handle *trans, in btrfs_insert_orphan_item()
26 int btrfs_del_orphan_item(struct btrfs_trans_handle *trans, in btrfs_del_orphan_item()
H A Dtree-log.c135 struct btrfs_trans_handle *trans;
217 static int btrfs_log_inode(struct btrfs_trans_handle *trans,
276 static int start_log_trans(struct btrfs_trans_handle *trans, in start_log_trans()
400 struct btrfs_trans_handle *trans = wc->trans; in process_one_buffer()
458 struct btrfs_trans_handle *trans = wc->trans; in overwrite_item()
691 struct btrfs_trans_handle *trans = wc->trans; in replay_one_extent()
1019 struct btrfs_trans_handle *trans = wc->trans; in unlink_inode_for_log_replay()
1316 struct btrfs_trans_handle *trans = wc->trans; in __add_inode_ref()
1547 struct btrfs_trans_handle *trans = wc->trans; in add_inode_ref()
1854 struct btrfs_trans_handle *tran in fixup_inode_link_count()
[all...]
H A Dctree.c30 static int split_node(struct btrfs_trans_handle *trans, struct btrfs_root
32 static int split_leaf(struct btrfs_trans_handle *trans, struct btrfs_root *root,
35 static int push_node_left(struct btrfs_trans_handle *trans,
38 static int balance_node_right(struct btrfs_trans_handle *trans,
243 int btrfs_copy_root(struct btrfs_trans_handle *trans, in btrfs_copy_root()
312 bool btrfs_block_can_be_shared(const struct btrfs_trans_handle *trans, in btrfs_block_can_be_shared()
349 static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans, in update_ref_for_cow()
465 int btrfs_force_cow_block(struct btrfs_trans_handle *trans, in btrfs_force_cow_block()
603 static inline bool should_cow_block(struct btrfs_trans_handle *trans, in should_cow_block()
648 int btrfs_cow_block(struct btrfs_trans_handle *trans, in btrfs_cow_block()
[all …]
H A Dextent-tree.c49 static int __btrfs_free_extent(struct btrfs_trans_handle *trans,
56 static int alloc_reserved_file_extent(struct btrfs_trans_handle *trans,
60 static int alloc_reserved_tree_block(struct btrfs_trans_handle *trans,
103 int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans, in btrfs_lookup_extent_info()
437 static noinline int lookup_extent_data_ref(struct btrfs_trans_handle *trans, in lookup_extent_data_ref()
517 static noinline int insert_extent_data_ref(struct btrfs_trans_handle *trans, in insert_extent_data_ref()
600 static noinline int remove_extent_data_ref(struct btrfs_trans_handle *trans, in remove_extent_data_ref()
686 static noinline int lookup_tree_block_ref(struct btrfs_trans_handle *trans, in lookup_tree_block_ref()
716 static noinline int insert_tree_block_ref(struct btrfs_trans_handle *trans, in insert_tree_block_ref()
797 int lookup_inline_extent_backref(struct btrfs_trans_handle *trans, in lookup_inline_extent_backref()
[all …]
H A Ddelayed-inode.c498 static int btrfs_delayed_item_reserve_metadata(struct btrfs_trans_handle *trans, in btrfs_delayed_item_reserve_metadata()
573 struct btrfs_trans_handle *trans, in btrfs_delayed_inode_reserve_metadata()
653 static int btrfs_insert_delayed_item(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_item()
816 static int btrfs_insert_delayed_items(struct btrfs_trans_handle *trans, in btrfs_insert_delayed_items()
839 static int btrfs_batch_delete_items(struct btrfs_trans_handle *trans, in btrfs_batch_delete_items()
917 static int btrfs_delete_delayed_items(struct btrfs_trans_handle *trans, in btrfs_delete_delayed_items()
996 static int __btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in __btrfs_update_delayed_inode()
1090 static inline int btrfs_update_delayed_inode(struct btrfs_trans_handle *trans, in btrfs_update_delayed_inode()
1109 __btrfs_commit_inode_delayed_items(struct btrfs_trans_handle *trans, in __btrfs_commit_inode_delayed_items()
1136 static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr) in __btrfs_run_delayed_items()
[all …]
/linux/fs/btrfs/tests/
H A Dqgroup-tests.c19 struct btrfs_trans_handle trans; in insert_normal_tree_ref()
69 struct btrfs_trans_handle trans; in add_tree_ref()
118 struct btrfs_trans_handle trans; in remove_extent_item()
147 struct btrfs_trans_handle trans; in remove_extent_ref()
200 struct btrfs_trans_handle trans; in test_no_shared_qgroup()
312 struct btrfs_trans_handle trans; in test_multiple_refs()

123