Lines Matching refs:fs_info
230 struct btrfs_fs_info *fs_info = root->fs_info; in test_no_shared_qgroup() local
238 ret = btrfs_create_qgroup(NULL, fs_info, 5); in test_no_shared_qgroup()
249 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &old_roots); in test_no_shared_qgroup()
260 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &new_roots); in test_no_shared_qgroup()
268 ret = btrfs_qgroup_account_extent(&trans, fs_info, 4096, 4096, in test_no_shared_qgroup()
275 if (btrfs_verify_qgroup_counts(fs_info, 5, 4096, 4096)) { in test_no_shared_qgroup()
282 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &old_roots); in test_no_shared_qgroup()
293 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &new_roots); in test_no_shared_qgroup()
301 ret = btrfs_qgroup_account_extent(&trans, fs_info, 4096, 4096, in test_no_shared_qgroup()
308 if (btrfs_verify_qgroup_counts(fs_info, 5, 0, 0)) { in test_no_shared_qgroup()
324 struct btrfs_fs_info *fs_info = root->fs_info; in test_multiple_refs() local
334 ret = btrfs_create_qgroup(NULL, fs_info, 256); in test_multiple_refs()
340 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &old_roots); in test_multiple_refs()
351 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &new_roots); in test_multiple_refs()
359 ret = btrfs_qgroup_account_extent(&trans, fs_info, 4096, 4096, in test_multiple_refs()
366 if (btrfs_verify_qgroup_counts(fs_info, 5, 4096, 4096)) { in test_multiple_refs()
371 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &old_roots); in test_multiple_refs()
382 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &new_roots); in test_multiple_refs()
390 ret = btrfs_qgroup_account_extent(&trans, fs_info, 4096, 4096, in test_multiple_refs()
397 if (btrfs_verify_qgroup_counts(fs_info, 5, 4096, 0)) { in test_multiple_refs()
402 if (btrfs_verify_qgroup_counts(fs_info, 256, 4096, 0)) { in test_multiple_refs()
407 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &old_roots); in test_multiple_refs()
418 ret = btrfs_find_all_roots(&trans, fs_info, 4096, 0, &new_roots); in test_multiple_refs()
426 ret = btrfs_qgroup_account_extent(&trans, fs_info, 4096, 4096, in test_multiple_refs()
433 if (btrfs_verify_qgroup_counts(fs_info, 256, 0, 0)) { in test_multiple_refs()
438 if (btrfs_verify_qgroup_counts(fs_info, 5, 4096, 4096)) { in test_multiple_refs()
458 root->fs_info = btrfs_alloc_dummy_fs_info(); in btrfs_test_qgroups()
459 if (!root->fs_info) { in btrfs_test_qgroups()
465 root->fs_info->extent_root = root; in btrfs_test_qgroups()
471 root->fs_info->tree_root = root; in btrfs_test_qgroups()
472 root->fs_info->quota_root = root; in btrfs_test_qgroups()
473 root->fs_info->quota_enabled = 1; in btrfs_test_qgroups()
479 root->node = alloc_test_extent_buffer(root->fs_info, 4096); in btrfs_test_qgroups()
497 root->fs_info->fs_root = tmp_root; in btrfs_test_qgroups()
498 ret = btrfs_insert_fs_root(root->fs_info, tmp_root); in btrfs_test_qgroups()
512 ret = btrfs_insert_fs_root(root->fs_info, tmp_root); in btrfs_test_qgroups()