]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: avoid double for loop inside alloc_rbio_essential_pages()
authorQu Wenruo <wqu@suse.com>
Wed, 8 Jun 2022 00:34:34 +0000 (08:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:35 +0000 (17:45 +0200)
commit73320ea67581ecf0d00ab3d917de317f0cb6aa23
treef5e470f91f7f2f07e064c3a81a87ded615416f62
parent34a43f52c0a4be22118d1af19ea230b53cc76c0d
btrfs: raid56: avoid double for loop inside alloc_rbio_essential_pages()

The double loop is just checking if the page for the vertical stripe
is allocated.

We can easily convert it to single loop and get rid of @stripe variable.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c