OSDN Git Service

btrfs: raid56: extract sector recovery code into a helper
authorQu Wenruo <wqu@suse.com>
Tue, 1 Nov 2022 11:16:04 +0000 (19:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:48 +0000 (18:00 +0100)
commitec936b0354e2d716e977e16165d188db044696b7
treea110a2853fa79a160838857613a8df38a31efa7f
parentd31968d9b6ac684e7e64be0d46eb0f5fe38d1841
btrfs: raid56: extract sector recovery code into a helper

This includes extra changes:

- The allocation for unmap_array[] and pointers[]
  Now we allocate them in one go, and free them together.

- Remove @err
  Use errno_to_blk_status(ret) instead.

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