]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: reduce indentation in lock_stripe_add
authorJohannes Thumshirn <jthumshirn@suse.de>
Fri, 18 Oct 2019 09:58:20 +0000 (11:58 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:47:00 +0000 (12:47 +0100)
commit18b12345cd2bc2465720d7251c856c3b2db84d83
tree7a01a098f565bc91fe3fb665d241b27f548ded69
parenteeb0532b7f49437faed2c241fdbecca1d4de3533
btrfs: raid56: reduce indentation in lock_stripe_add

In lock_stripe_add() we're traversing the stripe hash list and check if
the current list element's raid_map equals is equal to the raid bio's
raid_map. If both are equal we continue processing.

If we'd check for inequality instead of equality we can reduce one level
of indentation.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c