• Home
  • Raw
  • Download

Lines Matching refs:trans

120 int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root  in btrfs_update_root()  argument
136 ret = btrfs_search_slot(trans, root, key, path, 0, 1); in btrfs_update_root()
146 btrfs_abort_transaction(trans, ret); in btrfs_update_root()
162 ret = btrfs_search_slot(trans, root, key, path, in btrfs_update_root()
165 btrfs_abort_transaction(trans, ret); in btrfs_update_root()
169 ret = btrfs_del_item(trans, root, path); in btrfs_update_root()
171 btrfs_abort_transaction(trans, ret); in btrfs_update_root()
175 ret = btrfs_insert_empty_item(trans, root, path, in btrfs_update_root()
178 btrfs_abort_transaction(trans, ret); in btrfs_update_root()
199 int btrfs_insert_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, in btrfs_insert_root() argument
206 return btrfs_insert_item(trans, root, key, item, sizeof(*item)); in btrfs_insert_root()
281 struct btrfs_trans_handle *trans; in btrfs_find_orphan_roots() local
285 trans = btrfs_join_transaction(tree_root); in btrfs_find_orphan_roots()
286 if (IS_ERR(trans)) { in btrfs_find_orphan_roots()
287 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); in btrfs_find_orphan_roots()
329 int btrfs_del_root(struct btrfs_trans_handle *trans, in btrfs_del_root() argument
332 struct btrfs_root *root = trans->fs_info->tree_root; in btrfs_del_root()
339 ret = btrfs_search_slot(trans, root, key, path, -1, 1); in btrfs_del_root()
345 ret = btrfs_del_item(trans, root, path); in btrfs_del_root()
351 int btrfs_del_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_del_root_ref() argument
356 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_del_root_ref()
373 ret = btrfs_search_slot(trans, tree_root, &key, path, -1, 1); in btrfs_del_root_ref()
390 ret = btrfs_del_item(trans, tree_root, path); in btrfs_del_root_ref()
426 int btrfs_add_root_ref(struct btrfs_trans_handle *trans, u64 root_id, in btrfs_add_root_ref() argument
430 struct btrfs_root *tree_root = trans->fs_info->tree_root; in btrfs_add_root_ref()
446 ret = btrfs_insert_empty_item(trans, tree_root, path, &key, in btrfs_add_root_ref()
449 btrfs_abort_transaction(trans, ret); in btrfs_add_root_ref()
493 void btrfs_update_root_times(struct btrfs_trans_handle *trans, in btrfs_update_root_times() argument
501 btrfs_set_root_ctransid(item, trans->transid); in btrfs_update_root_times()