btrfs: raid56: extract the pq generation code into a helper
authorQu Wenruo <wqu@suse.com>
Tue, 1 Nov 2022 11:16:02 +0000 (19:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:48 +0000 (18:00 +0100)
commit30e3c897f4a8d070d4fa079f6dade4b3e3cb74ad
treed4fb998797527eae7abe861479c54e04cf3ffb41
parent9c5ff9b42c1cb22823c94983b7d52121c559bf4d
btrfs: raid56: extract the pq generation code into a helper

Currently finish_rmw() will update the P/Q stripes before submitting
the writes.

It's done behind a for(;;) loop, it's a little congested indent-wise, so
extract the code into a helper called generate_pq_vertical().

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