diff options
| author | Sun YangKai <sunk67188@gmail.com> | 2025-11-14 15:24:45 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-11-25 01:50:56 +0100 |
| commit | 31b37b766753682ec1434bb591c5edee94649597 (patch) | |
| tree | aab04d8eb71710f5fd350e4cc6315f1f151d96bd /tools/lib/python/kdoc | |
| parent | 1a332a6d70475d87067038ab0cbda8292da955e1 (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/kdoc')
0 files changed, 0 insertions, 0 deletions
