clean up how we mark block groups read only
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest posting 2/23 patches 2 repliesIn review
- v2 posting 1/24 patches 7 repliesSuperseded
- v1 RFC4 patches 10 repliesSuperseded
Changes in v2 from the cover letter
- Rebased onto misc-next.
- Fixed a bug where we weren't adjusting space_info->bytes_readonly in the force case.
- Dropped the RFC, these are pretty important fixes.
Patches in v2 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: check rw_devices, not num_devices for restripingfs/ | +8 | 0 replies | |
| 2/3 | btrfs: fix force usage in inc_block_group_rofs/ | +2 | 0 replies | |
| 3/3 | btrfs: use btrfs_can_overcommit in inc_block_group_rofs/ fs/ fs/ | +39 | 0 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Borisov | Qu Wenruo |
|---|---|---|
| 1/3 | ||
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3][v2] clean up how we mark block groups read only
v1->v2:
- Rebased onto misc-next.
- Fixed a bug where we weren't adjusting space_info->bytes_readonly in the force case.
- Dropped the RFC, these are pretty important fixes.
-------------- Original email ----------------------
Qu has been looking into ENOSPC during relocation and noticed some weirdness with inc_block_group_ro. The problem is this code hasn't changed to keep up with the rest of the reservation system. It still assumes that the amount of space used will always be less than the total space for the space info, which hasn't been true for years since I introduced overcommitting. This logic is correct for DATA, but not for METADATA or SYSTEM.
The first few patches are just cleanups, and can probably be taken as is. The final patch is the real meat of the problem to address Qu's issues. This is an RFC because I'm elbow deep in another problem and haven't tested this beyond compile testing, but I think it'll work. Once I've gotten a chance to test it and Qu has tested it I'll update the list if it's good to go as is, or send a V2 with any changes. Thanks,
Josef