Lines Matching defs:blocks
1212 * because relocation may be building backrefs for blocks of the quota
1955 * tree blocks involved.
1958 * OO = Old tree blocks
1959 * NN = New tree blocks allocated during balance
1985 * 2) Mark the final tree blocks in @src_path and @dst_path qgroup dirty
1995 * to care about how to iterate all new tree blocks in reloc tree.
2090 * blocks for qgroup accounting.
2116 * locate all new tree blocks in a subtree of reloc tree.
2118 * E.g. (OO = Old tree blocks, NN = New tree blocks, whose gen == last_snapshot)
2131 * We will iterate through tree blocks NN(b), NN(d) and info qgroup to trace
2132 * above tree blocks along with their counter parts in file tree.
2133 * While during search, old tree blocks OO(c) will be skipped as tree block swap
2219 /* Iterate all child tree blocks */
2221 /* Skip old tree blocks as they won't be swapped */
2334 * Walk down the tree. Missing extent blocks are filled in as
3262 * further blocks. We cannot unset the RESCAN flag here, because
4157 swapped_blocks->blocks[i] = RB_ROOT;
4162 * Delete all swapped blocks record of @root.
4178 struct rb_root *cur_root = &swapped_blocks->blocks[i];
4185 swapped_blocks->blocks[i] = RB_ROOT;
4210 struct btrfs_qgroup_swapped_blocks *blocks = &subvol_root->swapped_blocks;
4251 * no one else can modify tree blocks thus we qgroup will not change
4260 /* Insert @block into @blocks */
4261 spin_lock(&blocks->lock);
4262 cur = &blocks->blocks[level].rb_node;
4295 rb_insert_color(&block->node, &blocks->blocks[level]);
4296 blocks->swapped = true;
4298 spin_unlock(&blocks->lock);
4317 struct btrfs_qgroup_swapped_blocks *blocks = &root->swapped_blocks;
4332 spin_lock(&blocks->lock);
4333 if (!blocks->swapped) {
4334 spin_unlock(&blocks->lock);
4337 node = blocks->blocks[level].rb_node;
4351 spin_unlock(&blocks->lock);
4354 /* Found one, remove it from @blocks first and update blocks->swapped */
4355 rb_erase(&block->node, &blocks->blocks[level]);
4357 if (RB_EMPTY_ROOT(&blocks->blocks[i])) {
4362 blocks->swapped = swapped;
4363 spin_unlock(&blocks->lock);