Lines Matching refs:trans
85 int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_add() argument
88 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_add()
115 ret = btrfs_insert_empty_item(trans, uuid_root, path, &key, in btrfs_uuid_tree_add()
127 btrfs_extend_item(trans, path, sizeof(subid_le)); in btrfs_uuid_tree_add()
142 btrfs_mark_buffer_dirty(trans, eb); in btrfs_uuid_tree_add()
149 int btrfs_uuid_tree_remove(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, in btrfs_uuid_tree_remove() argument
152 struct btrfs_fs_info *fs_info = trans->fs_info; in btrfs_uuid_tree_remove()
178 ret = btrfs_search_slot(trans, uuid_root, &key, path, -1, 1); in btrfs_uuid_tree_remove()
216 ret = btrfs_del_item(trans, uuid_root, path); in btrfs_uuid_tree_remove()
224 btrfs_truncate_item(trans, path, item_size - sizeof(subid), 1); in btrfs_uuid_tree_remove()
234 struct btrfs_trans_handle *trans; in btrfs_uuid_iter_rem() local
238 trans = btrfs_start_transaction(uuid_root, 1); in btrfs_uuid_iter_rem()
239 if (IS_ERR(trans)) { in btrfs_uuid_iter_rem()
240 ret = PTR_ERR(trans); in btrfs_uuid_iter_rem()
244 ret = btrfs_uuid_tree_remove(trans, uuid, type, subid); in btrfs_uuid_iter_rem()
245 btrfs_end_transaction(trans); in btrfs_uuid_iter_rem()