A bunch of misc cleanups
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | btrfs: Always initialize btrfs_bio::tgtdev_map/raid_map pointersfs/ | +15 | 4 replies | |
| 2/10 | btrfs: raid56: Remove redundant check in rbio_add_io_pagefs/ | +2 | 1 reply | |
| 3/10 | btrfs: raid56: Assign bio in while()fs/ | +5 | 1 reply | |
| 4/10 | btrfs: raid56: Remove out label in __raid56_parity_recoverfs/ | +2 | 2 replies | |
| 5/10 | btrfs: raid56: Use in_range where applicablefs/ | +4 | 2 replies | |
| 6/10 | btrfs: raid56: Don't opencode swap()fs/ | +2 | 1 reply | |
| 7/10 | btrfs: Remove fail label in check_compressed_csumfs/ | +2 | 1 reply | |
| 8/10 | btrfs: Remove fail1 label in btrfs_submit_compressed_readfs/ | +4 | 1 reply | |
| 9/10 | btrfs: Remove fail2 label from btrfs_submit_compressed_readfs/ | +9 | 1 reply | |
| 10/10 | btrfs: Remove out label in btrfs_submit_compressed_readfs/ | +4 | 1 reply |
Reviews trailers per patch
4 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Johannes Thumshirn |
|---|---|
| 1/10 | |
| 2/10 | R-b |
| 3/10 | R-b |
| 4/10 | |
| 5/10 | R-b |
| 6/10 | R-b |
| 7/10 | |
| 8/10 | |
| 9/10 | |
| 10/10 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/10] A bunch of misc cleanups
Here's an assortment of little quality-of-life patches that I created while looking into the raid56 code. They should bear no functional changes and have tested them with xfstest and nothing fell over so should be rather low risk.
Patch 1 moves code in __btrfs_map_block, essentially assigning tgtdev_map/raid_map closet to where space for them is allocated. This also neccesiated moving the call to sort_parity_stripes. The end result is (hopefully) slightly easier to follow __btrfs_map_block.
Next 5 patches cleanup minor things in raid56.c such as removing redundant checks, making code interacting with bio_list more in line with what the rest of the kernel is doing. Finally it's using some macros/functions instead of open-coding them. Really just a bunch of low hanging fruit.
Final 4 patches gradually remove all labels in btrfs_submit_compressed_read. Current failures can be handled "inline" so to speak, without the need for extra labels. This likely will change once the BUG_ONs are removed but we are not there yet.
Nikolay Borisov (10):
btrfs: Always initialize btrfs_bio::tgtdev_map/raid_map pointers
btrfs: raid56: Remove redundant check in rbio_add_io_page
btrfs: raid56: Assign bio in while()
btrfs: raid56: Remove out label in __raid56_parity_recover
btrfs: raid56: Use in_range where applicable
btrfs: raid56: Don't opencode swap()
btrfs: Remove fail label in check_compressed_csum
btrfs: Remove fail1 label in btrfs_submit_compressed_read
btrfs: Remove fail2 label from btrfs_submit_compressed_read
btrfs: Remove out label in btrfs_submit_compressed_read
fs/btrfs/compression.c | 48 +++++++++++++------------------- fs/btrfs/raid56.c | 63 ++++++++++-------------------------------- fs/btrfs/volumes.c | 34 ++++++++++------------- 3 files changed, 49 insertions(+), 96 deletions(-)
--
2.17.1