diff options
| author | 2025-11-14 15:24:45 +0800 | |
|---|---|---|
| committer | 2025-11-25 01:50:56 +0100 | |
| commit | 31b37b766753682ec1434bb591c5edee94649597 (patch) | |
| tree | aab04d8eb71710f5fd350e4cc6315f1f151d96bd /tools/lib/python | |
| parent | btrfs: raid56: remove the "_step" infix (diff) | |
btrfs: factor out root promotion logic into promote_child_to_root()
The balance_level() function is overly long and contains a cold code path
that handles promoting a child node to root when the root has only one item.
This code has distinct logic that is clearer and more maintainable when
isolated in its own function.
Signed-off-by: Sun YangKai <sunk67188@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
