aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-11-05 14:38:38 +0000
committerDavid Sterba <[email protected]>2024-11-11 14:34:22 +0100
commite36d114990d2acf0a0fca135d50ac21a832daf11 (patch)
treeb61ebbfd32f950294568a7abee7457bea528080f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parenta20725e1e7014642fc8ba4c7dd2c4ef6d4ec56a9 (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 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions