aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-10-03 11:43:06 -0400
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:15 +0100
commit551d04a32a9e0b498c44e545ec27ed4553c59305 (patch)
treed1d625f2368a34cb2ee0f3c9b4aeabbf9551668e /tools/perf/scripts/python/bin
parentbtrfs: add a comment for new_bytenr in backref_cache_node (diff)
downloadlinux-551d04a32a9e0b498c44e545ec27ed4553c59305.tar.gz
linux-551d04a32a9e0b498c44e545ec27ed4553c59305.zip
btrfs: simplify loop in select_reloc_root()
We have this setup as a loop, but in reality we will never walk back up the backref tree, if we do then it's a bug. Get rid of the loop and handle the case where we have node->new_bytenr set at all. Previous check was only if node->new_bytenr != root->node->start, but if it did then we would hit the WARN_ON() and walk back up the tree. Instead we want to just return error if ->new_bytenr is set, and then do the normal updating of the node for the reloc root and carry on. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions