diff options
author | Filipe Manana <[email protected]> | 2024-11-05 14:38:38 +0000 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-11-11 14:34:22 +0100 |
commit | e36d114990d2acf0a0fca135d50ac21a832daf11 (patch) | |
tree | b61ebbfd32f950294568a7abee7457bea528080f /scripts/generate_rust_analyzer.py | |
parent | a20725e1e7014642fc8ba4c7dd2c4ef6d4ec56a9 (diff) |
btrfs: simplify logic to decrement snapshot counter at btrfs_mksnapshot()
There's no point in having a 'snapshot_force_cow' variable to track if we
need to decrement the root->snapshot_force_cow counter, as we never jump
to the 'out' label after incrementing the counter. Simplify this by
removing the variable and always decrementing the counter before the 'out'
label, right after the call to btrfs_mksubvol().
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions