| H A D | qgroup-tests.c | 16 static int insert_normal_tree_ref(struct btrfs_root *root, u64 bytenr, in insert_normal_tree_ref() argument 41 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 88 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref() 109 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref() 115 static int remove_extent_item(struct btrfs_root *root, u64 bytenr, in remove_extent_item() argument 135 ret = btrfs_search_slot(&trans, root, &key, path, -1, 1); in remove_extent_item() 140 btrfs_del_item(&trans, root, path); in remove_extent_item() 144 static int remove_extent_ref(struct btrfs_root *root, u64 bytenr, in remove_extent_ref() argument 166 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in remove_extent_ref() [all …]
|