diff options
| author | 2025-11-14 15:24:46 +0800 | |
|---|---|---|
| committer | 2025-11-25 01:50:56 +0100 | |
| commit | 3afa17bf243cf384e8caa64e1e3fad8b543c7c83 (patch) | |
| tree | bfa9041b2ac08b168a44efb59418714a59c8dcaa /tools/lib/python/kdoc/python_version.py | |
| parent | btrfs: factor out root promotion logic into promote_child_to_root() (diff) | |
btrfs: optimize balance_level() path reference handling
Instead of incrementing refcount on 'left' node when it's referenced by
path, simply transfer ownership to path and set left to NULL. This
eliminates:
- Unnecessary refcount increment/decrement operations
- Redundant conditional checks for left node cleanup
The path now consistently owns the left node reference when used.
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/python_version.py')
0 files changed, 0 insertions, 0 deletions
