diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2020-07-22 11:09:23 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:12:15 +0200 |
| commit | 44cab9ba374a0341e12c024f43a83e12ec4978fd (patch) | |
| tree | f86c60a5f9bf60d4812c9dee233ae63372ec5622 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | btrfs: use RCU for quick device check in btrfs_init_new_device (diff) | |
| download | linux-44cab9ba374a0341e12c024f43a83e12ec4978fd.tar.gz linux-44cab9ba374a0341e12c024f43a83e12ec4978fd.zip | |
btrfs: refactor locked condition in btrfs_init_new_device
Invert unlocked to locked and exploit the fact it can only ever be
modified if we are adding a new device to a seed filesystem. This allows
to simplify the check in error: label. No semantics changes.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
