diff options
author | Kent Overstreet <[email protected]> | 2023-09-13 20:33:06 -0400 |
---|---|---|
committer | Kent Overstreet <[email protected]> | 2023-10-22 17:10:14 -0400 |
commit | 8c2d82a6fe6fa0e3503c56c08d7fc599d66e2b79 (patch) | |
tree | 5d5cf0a0dae12a6066cbbf34d94ed7e5283c654c /tools/perf/scripts/python/flamegraph.py | |
parent | 439c172bc763fc1ef33246a0fb23920c1e01ffa7 (diff) |
bcachefs: Change bucket_lock() to use bit_spin_lock()
bucket_lock() previously open coded a spinlock, because we need to cram
a spinlock into a single byte.
But it turns out not all archs support xchg() on a single byte; since we
need struct bucket to be small, this means we have to play fun games
with casts and ifdefs for endianness.
This fixes building on 32 bit arm, and likely other architectures.
Signed-off-by: Kent Overstreet <[email protected]>
Cc: [email protected]
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions