Lines Matching defs:blocks
1243 * because relocation may be building backrefs for blocks of the quota
2031 * tree blocks involved.
2034 * OO = Old tree blocks
2035 * NN = New tree blocks allocated during balance
2061 * 2) Mark the final tree blocks in @src_path and @dst_path qgroup dirty
2071 * to care about how to iterate all new tree blocks in reloc tree.
2154 * blocks for qgroup accounting.
2179 * locate all new tree blocks in a subtree of reloc tree.
2181 * E.g. (OO = Old tree blocks, NN = New tree blocks, whose gen == last_snapshot)
2194 * We will iterate through tree blocks NN(b), NN(d) and info qgroup to trace
2195 * above tree blocks along with their counter parts in file tree.
2196 * While during search, old tree blocks OO(c) will be skipped as tree block swap
2272 /* Iterate all child tree blocks */
2274 /* Skip old tree blocks as they won't be swapped */
2411 * Walk down the tree. Missing extent blocks are filled in as
3325 * further blocks. We cannot unset the RESCAN flag here, because
4205 swapped_blocks->blocks[i] = RB_ROOT;
4210 * Delete all swapped blocks record of @root.
4226 struct rb_root *cur_root = &swapped_blocks->blocks[i];
4233 swapped_blocks->blocks[i] = RB_ROOT;
4258 struct btrfs_qgroup_swapped_blocks *blocks = &subvol_root->swapped_blocks;
4299 * no one else can modify tree blocks thus we qgroup will not change
4308 /* Insert @block into @blocks */
4309 spin_lock(&blocks->lock);
4310 cur = &blocks->blocks[level].rb_node;
4343 rb_insert_color(&block->node, &blocks->blocks[level]);
4344 blocks->swapped = true;
4346 spin_unlock(&blocks->lock);
4365 struct btrfs_qgroup_swapped_blocks *blocks = &root->swapped_blocks;
4380 spin_lock(&blocks->lock);
4381 if (!blocks->swapped) {
4382 spin_unlock(&blocks->lock);
4385 node = blocks->blocks[level].rb_node;
4399 spin_unlock(&blocks->lock);
4402 /* Found one, remove it from @blocks first and update blocks->swapped */
4403 rb_erase(&block->node, &blocks->blocks[level]);
4405 if (RB_EMPTY_ROOT(&blocks->blocks[i])) {
4410 blocks->swapped = swapped;
4411 spin_unlock(&blocks->lock);