• Home
  • Raw
  • Download

Lines Matching refs:quota_root

330 	struct btrfs_root *quota_root = fs_info->quota_root;  in btrfs_read_qgroup_config()  local
362 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config()
441 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
455 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config()
483 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
579 struct btrfs_root *quota_root = trans->fs_info->quota_root; in add_qgroup_relation_item() local
591 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, 0); in add_qgroup_relation_item()
603 struct btrfs_root *quota_root = trans->fs_info->quota_root; in del_qgroup_relation_item() local
615 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_relation_item()
624 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_relation_item()
631 struct btrfs_root *quota_root, u64 qgroupid) in add_qgroup_item() argument
640 if (btrfs_is_testing(quota_root->fs_info)) in add_qgroup_item()
657 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
676 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in add_qgroup_item()
701 struct btrfs_root *quota_root = trans->fs_info->quota_root; in del_qgroup_item() local
712 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_item()
721 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_item()
728 ret = btrfs_search_slot(trans, quota_root, &key, path, -1, 1); in del_qgroup_item()
737 ret = btrfs_del_item(trans, quota_root, path); in del_qgroup_item()
747 struct btrfs_root *quota_root = trans->fs_info->quota_root; in update_qgroup_limit_item() local
763 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_limit_item()
790 struct btrfs_root *quota_root = fs_info->quota_root; in update_qgroup_info_item() local
809 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_info_item()
835 struct btrfs_root *quota_root = fs_info->quota_root; in update_qgroup_status_item() local
851 ret = btrfs_search_slot(trans, quota_root, &key, path, 0, 1); in update_qgroup_status_item()
923 struct btrfs_root *quota_root; in btrfs_quota_enable() local
945 if (fs_info->quota_root) in btrfs_quota_enable()
986 if (fs_info->quota_root) in btrfs_quota_enable()
995 quota_root = btrfs_create_tree(trans, BTRFS_QUOTA_TREE_OBJECTID); in btrfs_quota_enable()
996 if (IS_ERR(quota_root)) { in btrfs_quota_enable()
997 ret = PTR_ERR(quota_root); in btrfs_quota_enable()
1013 ret = btrfs_insert_empty_item(trans, quota_root, path, &key, in btrfs_quota_enable()
1051 ret = add_qgroup_item(trans, quota_root, in btrfs_quota_enable()
1076 ret = add_qgroup_item(trans, quota_root, BTRFS_FS_TREE_OBJECTID); in btrfs_quota_enable()
1111 fs_info->quota_root = quota_root; in btrfs_quota_enable()
1142 free_extent_buffer(quota_root->node); in btrfs_quota_enable()
1143 free_extent_buffer(quota_root->commit_root); in btrfs_quota_enable()
1144 kfree(quota_root); in btrfs_quota_enable()
1162 struct btrfs_root *quota_root; in btrfs_quota_disable() local
1185 if (!fs_info->quota_root) in btrfs_quota_disable()
1223 if (!fs_info->quota_root) in btrfs_quota_disable()
1227 quota_root = fs_info->quota_root; in btrfs_quota_disable()
1228 fs_info->quota_root = NULL; in btrfs_quota_disable()
1234 ret = btrfs_clean_quota_tree(trans, quota_root); in btrfs_quota_disable()
1240 ret = btrfs_del_root(trans, &quota_root->root_key); in btrfs_quota_disable()
1247 list_del(&quota_root->dirty_list); in btrfs_quota_disable()
1250 btrfs_tree_lock(quota_root->node); in btrfs_quota_disable()
1251 btrfs_clean_tree_block(quota_root->node); in btrfs_quota_disable()
1252 btrfs_tree_unlock(quota_root->node); in btrfs_quota_disable()
1253 btrfs_free_tree_block(trans, quota_root, quota_root->node, 0, 1); in btrfs_quota_disable()
1255 free_extent_buffer(quota_root->node); in btrfs_quota_disable()
1256 free_extent_buffer(quota_root->commit_root); in btrfs_quota_disable()
1257 kfree(quota_root); in btrfs_quota_disable()
1413 if (!fs_info->quota_root) { in btrfs_add_qgroup_relation()
1472 if (!fs_info->quota_root) { in __del_qgroup_relation()
1533 struct btrfs_root *quota_root; in btrfs_create_qgroup() local
1538 if (!fs_info->quota_root) { in btrfs_create_qgroup()
1542 quota_root = fs_info->quota_root; in btrfs_create_qgroup()
1549 ret = add_qgroup_item(trans, quota_root, qgroupid); in btrfs_create_qgroup()
1581 if (!fs_info->quota_root) { in btrfs_remove_qgroup()
1637 if (!fs_info->quota_root) { in btrfs_limit_qgroup()
2606 BUG_ON(!fs_info->quota_root); in btrfs_qgroup_account_extent()
2754 if (!fs_info->quota_root) in btrfs_run_qgroups()
2801 struct btrfs_root *quota_root; in btrfs_qgroup_inherit() local
2830 quota_root = fs_info->quota_root; in btrfs_qgroup_inherit()
2831 if (!quota_root) { in btrfs_qgroup_inherit()
2858 ret = add_qgroup_item(trans, quota_root, objectid); in btrfs_qgroup_inherit()
3035 if (!fs_info->quota_root) in qgroup_reserve()
3119 if (!fs_info->quota_root) in btrfs_qgroup_free_refroot()
3328 trans = btrfs_start_transaction(fs_info->quota_root, 1); in btrfs_qgroup_rescan_worker()
4017 if (!fs_info->quota_root) in qgroup_convert_meta()