]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: return block group directly at btrfs_next_block_group()
authorFilipe Manana <fdmanana@suse.com>
Wed, 13 Apr 2022 15:20:42 +0000 (16:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:13 +0000 (17:03 +0200)
commit34b99d768397881205624df9a8c3cc7a18f1c79a
tree8f52b7a14ef3ccf1c78fa76390627503f68d254c
parenta86601d83fe66da4f0b44c3dce52bd9b33ca2108
btrfs: return block group directly at btrfs_next_block_group()

At btrfs_next_block_group(), we have this long line with two statements:

  cache = btrfs_lookup_first_block_group(...); return cache;

This makes it a bit harder to read due to two statements on the same
line, so change that to directly return the result of the call to
btrfs_lookup_first_block_group().

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c