aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAnand Jain <[email protected]>2023-03-27 17:53:10 +0800
committerDavid Sterba <[email protected]>2023-04-17 18:01:20 +0200
commit7e812f2054b8eeaca2c61ae9dc8986e9190e4dd6 (patch)
tree7101c8071191aa4296c74b72d2c5fde258d36962 /tools/perf/scripts/python
parent1b465784dc331bc70ae42ad4a4035ed60251e316 (diff)
btrfs: use test_and_clear_bit() in wait_dev_flush()
The function wait_dev_flush() tests for the BTRFS_DEV_STATE_FLUSH_SENT bit and then clears it separately. Instead, use test_and_clear_bit(). Though we don't need to do the atomic test and clear, it's following a common pattern. Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions