Lines Matching refs:quota_root

331 	struct btrfs_root *quota_root = fs_info->quota_root;  in btrfs_read_qgroup_config()  local
363 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config()
442 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
456 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config()
484 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
537 struct btrfs_root *quota_root = trans->fs_info->quota_root; in add_qgroup_relation_item() local
549 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); in add_qgroup_relation_item()
561 struct btrfs_root *quota_root = trans->fs_info->quota_root; in del_qgroup_relation_item() local
573 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_relation_item()
582 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_relation_item()
589 struct btrfs_root *quota_root, u64 qgroupid) in add_qgroup_item() argument
598 if (btrfs_is_testing(quota_root->fs_info)) in add_qgroup_item()
615 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
634 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
659 struct btrfs_root *quota_root = trans->fs_info->quota_root; in del_qgroup_item() local
670 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_item()
679 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_item()
686 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_item()
695 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_item()
705 struct btrfs_root *quota_root = trans->fs_info->quota_root; in update_qgroup_limit_item() local
721 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_limit_item()
748 struct btrfs_root *quota_root = fs_info->quota_root; in update_qgroup_info_item() local
767 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_info_item()
793 struct btrfs_root *quota_root = fs_info->quota_root; in update_qgroup_status_item() local
809 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_status_item()
881 struct btrfs_root *quota_root; in btrfs_quota_enable() local
894 if (fs_info->quota_root) in btrfs_quota_enable()
922 quota_root = btrfs_create_tree(trans, fs_info, in btrfs_quota_enable()
924 if (IS_ERR(quota_root)) { in btrfs_quota_enable()
925 ret = PTR_ERR(quota_root); in btrfs_quota_enable()
941 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in btrfs_quota_enable()
979 ret = add_qgroup_item(trans, quota_root, in btrfs_quota_enable()
1004 ret = add_qgroup_item(trans, quota_root, BTRFS_FS_TREE_OBJECTID); in btrfs_quota_enable()
1028 fs_info->quota_root = quota_root; in btrfs_quota_enable()
1059 free_extent_buffer(quota_root->node); in btrfs_quota_enable()
1060 free_extent_buffer(quota_root->commit_root); in btrfs_quota_enable()
1061 kfree(quota_root); in btrfs_quota_enable()
1076 struct btrfs_root *quota_root; in btrfs_quota_disable() local
1081 if (!fs_info->quota_root) in btrfs_quota_disable()
1099 quota_root = fs_info->quota_root; in btrfs_quota_disable()
1100 fs_info->quota_root = NULL; in btrfs_quota_disable()
1106 ret = btrfs_clean_quota_tree(trans, quota_root); in btrfs_quota_disable()
1112 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
1119 list_del(&quota_root->dirty_list); in btrfs_quota_disable()
1122 btrfs_tree_lock(quota_root->node); in btrfs_quota_disable()
1123 clean_tree_block(fs_info, quota_root->node); in btrfs_quota_disable()
1124 btrfs_tree_unlock(quota_root->node); in btrfs_quota_disable()
1125 btrfs_free_tree_block(trans, quota_root, quota_root->node, 0, 1); in btrfs_quota_disable()
1127 free_extent_buffer(quota_root->node); in btrfs_quota_disable()
1128 free_extent_buffer(quota_root->commit_root); in btrfs_quota_disable()
1129 kfree(quota_root); in btrfs_quota_disable()
1266 struct btrfs_root *quota_root; in btrfs_add_qgroup_relation() local
1282 quota_root = fs_info->quota_root; in btrfs_add_qgroup_relation()
1283 if (!quota_root) { in btrfs_add_qgroup_relation()
1330 struct btrfs_root *quota_root; in __del_qgroup_relation() local
1342 quota_root = fs_info->quota_root; in __del_qgroup_relation()
1343 if (!quota_root) { in __del_qgroup_relation()
1393 struct btrfs_root *quota_root; in btrfs_create_qgroup() local
1398 quota_root = fs_info->quota_root; in btrfs_create_qgroup()
1399 if (!quota_root) { in btrfs_create_qgroup()
1409 ret = add_qgroup_item(trans, quota_root, qgroupid); in btrfs_create_qgroup()
1427 struct btrfs_root *quota_root; in btrfs_remove_qgroup() local
1433 quota_root = fs_info->quota_root; in btrfs_remove_qgroup()
1434 if (!quota_root) { in btrfs_remove_qgroup()
1475 struct btrfs_root *quota_root; in btrfs_limit_qgroup() local
1485 quota_root = fs_info->quota_root; in btrfs_limit_qgroup()
1486 if (!quota_root) { in btrfs_limit_qgroup()
2098 BUG_ON(!fs_info->quota_root); in btrfs_qgroup_account_extent()
2226 struct btrfs_root *quota_root = fs_info->quota_root; in btrfs_run_qgroups() local
2229 if (!quota_root) in btrfs_run_qgroups()
2276 struct btrfs_root *quota_root; in btrfs_qgroup_inherit() local
2305 quota_root = fs_info->quota_root; in btrfs_qgroup_inherit()
2306 if (!quota_root) { in btrfs_qgroup_inherit()
2333 ret = add_qgroup_item(trans, quota_root, objectid); in btrfs_qgroup_inherit()
2530 struct btrfs_root *quota_root; in qgroup_reserve() local
2549 quota_root = fs_info->quota_root; in qgroup_reserve()
2550 if (!quota_root) in qgroup_reserve()
2618 struct btrfs_root *quota_root; in btrfs_qgroup_free_refroot() local
2636 quota_root = fs_info->quota_root; in btrfs_qgroup_free_refroot()
2637 if (!quota_root) in btrfs_qgroup_free_refroot()
2847 trans = btrfs_start_transaction(fs_info->quota_root, 1); in btrfs_qgroup_rescan_worker()
3358 struct btrfs_root *quota_root = fs_info->quota_root; in qgroup_convert_meta() local
3366 if (!quota_root) in qgroup_convert_meta()