Lines Matching refs:trans

63 static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans,
1163 void clean_tree_block(struct btrfs_trans_handle *trans, in clean_tree_block() argument
1307 struct btrfs_root *btrfs_create_tree(struct btrfs_trans_handle *trans, in btrfs_create_tree() argument
1328 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0); in btrfs_create_tree()
1337 btrfs_set_header_generation(leaf, trans->transid); in btrfs_create_tree()
1355 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1368 ret = btrfs_insert_root(trans, tree_root, &key, &root->root_item); in btrfs_create_tree()
1387 static struct btrfs_root *alloc_log_tree(struct btrfs_trans_handle *trans, in alloc_log_tree() argument
1415 leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID, in alloc_log_tree()
1424 btrfs_set_header_generation(leaf, trans->transid); in alloc_log_tree()
1436 int btrfs_init_log_root_tree(struct btrfs_trans_handle *trans, in btrfs_init_log_root_tree() argument
1441 log_root = alloc_log_tree(trans, fs_info); in btrfs_init_log_root_tree()
1449 int btrfs_add_log_tree(struct btrfs_trans_handle *trans, in btrfs_add_log_tree() argument
1455 log_root = alloc_log_tree(trans, root->fs_info); in btrfs_add_log_tree()
1459 log_root->last_trans = trans->transid; in btrfs_add_log_tree()
1817 struct btrfs_trans_handle *trans; in transaction_kthread() local
1848 trans = btrfs_attach_transaction(root); in transaction_kthread()
1849 if (IS_ERR(trans)) { in transaction_kthread()
1850 if (PTR_ERR(trans) != -ENOENT) in transaction_kthread()
1854 if (transid == trans->transid) { in transaction_kthread()
1855 btrfs_commit_transaction(trans, root); in transaction_kthread()
1857 btrfs_end_transaction(trans, root); in transaction_kthread()
3593 int write_ctree_super(struct btrfs_trans_handle *trans, in write_ctree_super() argument
3697 struct btrfs_trans_handle *trans; in btrfs_commit_super() local
3708 trans = btrfs_join_transaction(root); in btrfs_commit_super()
3709 if (IS_ERR(trans)) in btrfs_commit_super()
3710 return PTR_ERR(trans); in btrfs_commit_super()
3711 return btrfs_commit_transaction(trans, root); in btrfs_commit_super()
4075 static int btrfs_destroy_delayed_refs(struct btrfs_transaction *trans, in btrfs_destroy_delayed_refs() argument
4083 delayed_refs = &trans->delayed_refs; in btrfs_destroy_delayed_refs()