summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-07-17 17:52:43 +0100
committerDavid Sterba <dsterba@suse.com>2026-08-07 19:17:18 +0200
commit12d2f44bdfce4cee463415a0392cb7aaeb53f255 (patch)
tree7b6399c8c90633327adce37f214881b8eed21b93 /tools/perf/scripts/python/parallel-perf.py
parent3ccdd23e9f8f3e94981e6472645442dfd6a789ea (diff)
btrfs: use simple booleans for log_commit field in struct btrfs_root
We are using atomic types for the log_commit array of struct btrfs_root but all we need is simple booleans. The log_commit array elements are always protected by the root's log_mutex, both for writes and reads, so we can use a simple boolean. The use of atomics if from the very early days of the log tree code where the access to the fields was not protected by any lock. So switch to simple booleans, which results in cheaper code and slightly reduces the object size too. Reviewed-by: Boris Burkov <boris@bur.io> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions