Lines Matching defs:root

392 	 * root's list of ordered extents).
734 * extent for the extent root while also trying to search the extent
735 * root to add free space. So we skip locking and search the commit
736 * root, since its read-only
878 * can't actually cache from the free space tree as our commit root and
879 * real root are the same, so we could change the contents of the blocks
1030 struct btrfs_root *root;
1034 root = btrfs_block_group_root(fs_info);
1039 ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
1045 ret = btrfs_del_item(trans, root, path);
1297 struct btrfs_root *root = btrfs_block_group_root(fs_info);
1331 return btrfs_start_transaction_fallback_global_rsv(root, num_items);
2027 struct btrfs_root *root = btrfs_block_group_root(fs_info);
2031 btrfs_for_each_slot(root, key, &found_key, path, ret) {
2468 struct btrfs_root *root = btrfs_block_group_root(info);
2478 * Either no extent root (with ibadroots rescue option) or we have
2485 if (!root || (btrfs_super_compat_ro_flags(info->super_copy) &
2589 struct btrfs_root *root = btrfs_block_group_root(fs_info);
2606 ret = btrfs_insert_item(trans, root, &key, &bgi, sizeof(bgi));
2621 struct btrfs_root *root = fs_info->dev_root;
2637 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*extent));
2766 * global root id. For v1 it's always set to BTRFS_FIRST_CHUNK_TREE_OBJECTID.
2888 struct btrfs_root *root = btrfs_block_group_root(fs_info);
2907 trans = btrfs_join_transaction(root);
3030 struct btrfs_root *root = btrfs_block_group_root(fs_info);
3059 ret = btrfs_search_slot(trans, root, &key, path, 0, 1);
3099 struct btrfs_root *root = fs_info->tree_root;
3151 ret = btrfs_update_inode(trans, root, BTRFS_I(inode));
3483 * allocate new block groups as a result of COWing nodes of the root
3882 * handle and scrub uses the commit root to search for block groups;