summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-11-05 17:38:38 +0300
committerDavid Sterba <dsterba@suse.com>2024-11-11 16:34:22 +0300
commite36d114990d2acf0a0fca135d50ac21a832daf11 (patch)
treeb61ebbfd32f950294568a7abee7457bea528080f /tools/perf/scripts/python/task-analyzer.py
parenta20725e1e7014642fc8ba4c7dd2c4ef6d4ec56a9 (diff)
downloadlinux-e36d114990d2acf0a0fca135d50ac21a832daf11.tar.xz
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 <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions