• Home
  • Raw
  • Download

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()
921 quota_root = btrfs_create_tree(trans, BTRFS_QUOTA_TREE_OBJECTID); in btrfs_quota_enable()
922 if (IS_ERR(quota_root)) { in btrfs_quota_enable()
923 ret = PTR_ERR(quota_root); in btrfs_quota_enable()
939 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in btrfs_quota_enable()
977 ret = add_qgroup_item(trans, quota_root, in btrfs_quota_enable()
1002 ret = add_qgroup_item(trans, quota_root, BTRFS_FS_TREE_OBJECTID); in btrfs_quota_enable()
1026 fs_info->quota_root = quota_root; in btrfs_quota_enable()
1041 free_extent_buffer(quota_root->node); in btrfs_quota_enable()
1042 free_extent_buffer(quota_root->commit_root); in btrfs_quota_enable()
1043 kfree(quota_root); in btrfs_quota_enable()
1058 struct btrfs_root *quota_root; in btrfs_quota_disable() local
1063 if (!fs_info->quota_root) in btrfs_quota_disable()
1081 quota_root = fs_info->quota_root; in btrfs_quota_disable()
1082 fs_info->quota_root = NULL; in btrfs_quota_disable()
1088 ret = btrfs_clean_quota_tree(trans, quota_root); in btrfs_quota_disable()
1094 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
1100 list_del(&quota_root->dirty_list); in btrfs_quota_disable()
1102 btrfs_tree_lock(quota_root->node); in btrfs_quota_disable()
1103 btrfs_clean_tree_block(quota_root->node); in btrfs_quota_disable()
1104 btrfs_tree_unlock(quota_root->node); in btrfs_quota_disable()
1105 btrfs_free_tree_block(trans, quota_root, quota_root->node, 0, 1); in btrfs_quota_disable()
1107 free_extent_buffer(quota_root->node); in btrfs_quota_disable()
1108 free_extent_buffer(quota_root->commit_root); in btrfs_quota_disable()
1109 kfree(quota_root); in btrfs_quota_disable()
1246 struct btrfs_root *quota_root; in btrfs_add_qgroup_relation() local
1262 quota_root = fs_info->quota_root; in btrfs_add_qgroup_relation()
1263 if (!quota_root) { in btrfs_add_qgroup_relation()
1310 struct btrfs_root *quota_root; in __del_qgroup_relation() local
1323 quota_root = fs_info->quota_root; in __del_qgroup_relation()
1324 if (!quota_root) { in __del_qgroup_relation()
1385 struct btrfs_root *quota_root; in btrfs_create_qgroup() local
1390 quota_root = fs_info->quota_root; in btrfs_create_qgroup()
1391 if (!quota_root) { in btrfs_create_qgroup()
1401 ret = add_qgroup_item(trans, quota_root, qgroupid); in btrfs_create_qgroup()
1419 struct btrfs_root *quota_root; in btrfs_remove_qgroup() local
1425 quota_root = fs_info->quota_root; in btrfs_remove_qgroup()
1426 if (!quota_root) { in btrfs_remove_qgroup()
1468 struct btrfs_root *quota_root; in btrfs_limit_qgroup() local
1478 quota_root = fs_info->quota_root; in btrfs_limit_qgroup()
1479 if (!quota_root) { in btrfs_limit_qgroup()
2448 BUG_ON(!fs_info->quota_root); in btrfs_qgroup_account_extent()
2585 struct btrfs_root *quota_root = fs_info->quota_root; in btrfs_run_qgroups() local
2588 if (!quota_root) in btrfs_run_qgroups()
2635 struct btrfs_root *quota_root; in btrfs_qgroup_inherit() local
2663 quota_root = fs_info->quota_root; in btrfs_qgroup_inherit()
2664 if (!quota_root) { in btrfs_qgroup_inherit()
2691 ret = add_qgroup_item(trans, quota_root, objectid); in btrfs_qgroup_inherit()
2882 struct btrfs_root *quota_root; in qgroup_reserve() local
2901 quota_root = fs_info->quota_root; in qgroup_reserve()
2902 if (!quota_root) in qgroup_reserve()
2969 struct btrfs_root *quota_root; in btrfs_qgroup_free_refroot() local
2987 quota_root = fs_info->quota_root; in btrfs_qgroup_free_refroot()
2988 if (!quota_root) in btrfs_qgroup_free_refroot()
3185 trans = btrfs_start_transaction(fs_info->quota_root, 1); in btrfs_qgroup_rescan_worker()
3690 struct btrfs_root *quota_root = fs_info->quota_root; in qgroup_convert_meta() local
3698 if (!quota_root) in qgroup_convert_meta()