Skip to content

clean up how we mark block groups read only

Josef Bacik linux-btrfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 7 repliesIn review
  2. v21 patch 0 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: check rw_devices, not num_devices for restripingfs/btrfs/volumes.c+8 -15 replies
2/5btrfs: don't pass system_chunk into can_overcommitfs/btrfs/space-info.c+15 -261 reply
3/5btrfs: kill min_allocable_bytes in inc_block_group_rofs/btrfs/block-group.c+4 -180 replies
4/5btrfs: fix force usage in inc_block_group_rofs/btrfs/block-group.c+8 -11 reply
5/5btrfs: use btrfs_can_overcommit in inc_block_group_rofs/btrfs/block-group.c fs/btrfs/space-info.c fs/btrfs/space-info.h+37 -200 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchNikolay BorisovQu WenruoJohannes Thumshirn
1/5R-b
2/5R-b R-b R-b
3/5R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH 0/5][v3] clean up how we mark block groups read only

Original message below.

-------------------------------
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