summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2021-02-17 14:12:50 +0100
committerDavid Sterba <dsterba@suse.com>2021-04-19 17:25:14 +0200
commitb6e9f16c5fda08e4af8c675b71be580dac3286d6 (patch)
tree170d45e5cbe53b7708a6c6a751c6d2cf1d3e9904 /scripts/checkpatch.pl
parentbtrfs: replace offset_in_entry with in_range (diff)
downloadlinux-b6e9f16c5fda08e4af8c675b71be580dac3286d6.tar.xz
linux-b6e9f16c5fda08e4af8c675b71be580dac3286d6.zip
btrfs: replace open coded while loop with proper construct
btrfs_inc_block_group_ro wants to ensure that the current transaction is not running dirty block groups, if it is it waits and loops again. That logic is currently implemented using a goto label. Actually using a proper do {} while() construct doesn't hurt readability nor does it introduce excessive nesting and makes the relevant code stand out by being encompassed in the loop construct. No functional changes. 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 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions