]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: remove unused raid56 functions which were dedicated for scrub
authorQu Wenruo <wqu@suse.com>
Wed, 12 Apr 2023 06:47:50 +0000 (14:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 17:52:18 +0000 (19:52 +0200)
commitaca43fe839e4b227ef7028305586429af69b0bcd
tree422c4665f102a30b56db501b97fc0b15add6d203
parent13a62fd997f0649d221afc73e301c95c76560506
btrfs: remove unused raid56 functions which were dedicated for scrub

Since the scrub rework, the following RAID56 functions are no longer
called:

- raid56_add_scrub_pages()
- raid56_alloc_missing_rbio()
- raid56_submit_missing_rbio()

Those functions are all utilized by scrub to handle missing device cases
for RAID56.

However the new scrub code handle them in a completely different way:

- If it's data stripe, go recovery path through btrfs_submit_bio()
- If it's P/Q stripe, it would be handled through
  raid56_parity_submit_scrub_rbio()
  And that function would handle dev-replace and repair properly.

Thus we can safely remove those functions.

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
fs/btrfs/raid56.h