Skip to content

btrfs: raid56: part 1, refactor/cleanup

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: raid56: properly handle the error when unable to find the missing stripefs/btrfs/raid56.c+4 -20 replies
2/5btrfs: raid56: avoid double freeing for rbio if full_stripe_write() failedfs/btrfs/raid56.c+7 -50 replies
3/5btrfs: raid56: cleanup for function __free_raid_bio()fs/btrfs/raid56.c+30 -310 replies
4/5btrfs: raid56: allocate memory separately for rbio pointersfs/btrfs/raid56.c+24 -220 replies
5/5btrfs: raid56: make it more explicit that cache rbio should have all its data sectors uptodatefs/btrfs/raid56.c+51 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] btrfs: raid56: part 1, refactor/cleanup

This is the cleanup/refactor part for the incoming RAID56 feature, which will do data checksum verification during RMW cycle to address destructive RMW.

The important parts of the cleanup are:

- Make pointer members of btrfs_raid_bio to be allocated separately This will make later expanding (csum_buf and csum_bitmap) easier.

- Make it explicit that all cached rbio should have all its data sectors uptodate
This means, if we steal one rbio, all the data sectors should be uptodate.

Qu Wenruo (5):
btrfs: raid56: properly handle the error when unable to find the
missing stripe
btrfs: raid56: avoid double freeing for rbio if full_stripe_write()
failed
btrfs: raid56: cleanup for function __free_raid_bio()
btrfs: raid56: allocate memory separately for rbio pointers
btrfs: raid56: make it more explicit that cache rbio should have all
its data sectors uptodate

 fs/btrfs/raid56.c | 189 +++++++++++++++++++++++++++-------------------
 1 file changed, 113 insertions(+), 76 deletions(-)
Signature · 1 line
2.37.3