Lines Matching refs:fs_info

211 	struct btrfs_fs_info *fs_info = root->fs_info;  in test_no_shared_qgroup()  local
216 btrfs_init_dummy_trans(&trans, fs_info); in test_no_shared_qgroup()
230 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_no_shared_qgroup()
243 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_no_shared_qgroup()
259 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, in test_no_shared_qgroup()
267 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_no_shared_qgroup()
279 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_no_shared_qgroup()
295 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, 0, 0)) { in test_no_shared_qgroup()
312 struct btrfs_fs_info *fs_info = root->fs_info; in test_multiple_refs() local
317 btrfs_init_dummy_trans(&trans, fs_info); in test_multiple_refs()
331 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_multiple_refs()
344 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_multiple_refs()
360 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, in test_multiple_refs()
366 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_multiple_refs()
379 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_multiple_refs()
395 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, in test_multiple_refs()
401 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FIRST_FREE_OBJECTID, in test_multiple_refs()
407 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &old_roots, in test_multiple_refs()
420 ret = btrfs_find_all_roots(&trans, fs_info, nodesize, 0, &new_roots, in test_multiple_refs()
436 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FIRST_FREE_OBJECTID, in test_multiple_refs()
442 if (btrfs_verify_qgroup_counts(fs_info, BTRFS_FS_TREE_OBJECTID, in test_multiple_refs()
453 struct btrfs_fs_info *fs_info = NULL; in btrfs_test_qgroups() local
458 fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize); in btrfs_test_qgroups()
459 if (!fs_info) { in btrfs_test_qgroups()
464 root = btrfs_alloc_dummy_root(fs_info); in btrfs_test_qgroups()
472 root->fs_info->extent_root = root; in btrfs_test_qgroups()
478 root->fs_info->tree_root = root; in btrfs_test_qgroups()
479 root->fs_info->quota_root = root; in btrfs_test_qgroups()
480 set_bit(BTRFS_FS_QUOTA_ENABLED, &fs_info->flags); in btrfs_test_qgroups()
486 root->node = alloc_test_extent_buffer(root->fs_info, nodesize); in btrfs_test_qgroups()
496 tmp_root = btrfs_alloc_dummy_root(fs_info); in btrfs_test_qgroups()
504 root->fs_info->fs_root = tmp_root; in btrfs_test_qgroups()
505 ret = btrfs_insert_fs_root(root->fs_info, tmp_root); in btrfs_test_qgroups()
511 tmp_root = btrfs_alloc_dummy_root(fs_info); in btrfs_test_qgroups()
519 ret = btrfs_insert_fs_root(root->fs_info, tmp_root); in btrfs_test_qgroups()
532 btrfs_free_dummy_fs_info(fs_info); in btrfs_test_qgroups()