Lines Matching refs:trans

136 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root  in btrfs_update_root()  argument
151 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
153 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
176 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
179 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
183 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
185 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
189 ret = btrfs_insert_empty_item(trans, root, path, in btrfs_update_root()
192 btrfs_abort_transaction(trans, root, ret); in btrfs_update_root()
213 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() argument
220 return btrfs_insert_item(trans, root, key, item, sizeof(*item)); in btrfs_insert_root()
280 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots() local
284 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
285 if (IS_ERR(trans)) { in btrfs_find_orphan_roots()
286 err = PTR_ERR(trans); in btrfs_find_orphan_roots()
292 err = btrfs_del_orphan_item(trans, tree_root, in btrfs_find_orphan_roots()
294 btrfs_end_transaction(trans, tree_root); in btrfs_find_orphan_roots()
336 int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_del_root() argument
345 ret = btrfs_search_slot(trans, root, key, path, -1, 1); in btrfs_del_root()
351 ret = btrfs_del_item(trans, root, path); in btrfs_del_root()
357 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, in btrfs_del_root_ref() argument
379 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
392 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
428 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, in btrfs_add_root_ref() argument
448 ret = btrfs_insert_empty_item(trans, tree_root, path, &key, in btrfs_add_root_ref()
451 btrfs_abort_transaction(trans, tree_root, ret); in btrfs_add_root_ref()
495 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times() argument
502 btrfs_set_root_ctransid(item, trans->transid); in btrfs_update_root_times()