Skip to content

btrfs: some fixes around unused block deletion

[email protected] linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs: add and use helper to check if block group is usedfs/btrfs/block-group.c fs/btrfs/block-group.h+8 -20 replies
2/5btrfs: do not delete unused block group if it may be used soonfs/btrfs/block-group.c+46 -00 replies
3/5btrfs: add new unused block groups to the list of unused block groupsfs/btrfs/block-group.c+31 -00 replies
4/5btrfs: document what the spinlock unused_bgs_lock protectsfs/btrfs/fs.h+3 -00 replies
5/5btrfs: add comment about list_is_singular() use at btrfs_delete_unused_bgs()fs/btrfs/block-group.c+7 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJohannes ThumshirnJosef BacikBoris Burkov
SeriesR-b R-b R-b
1/5
2/5
3/5
4/5
5/5

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

Cover letter [PATCH 0/5] btrfs: some fixes around unused block deletion

From: Filipe Manana <[email protected]>

These fix a couple issues regarding block group deletion, either deleting an unused block group when it shouldn't be deleted due to outstanding reservations relying on the block group, or unused block groups never getting deleted since they were created due to pessimistic space reservation and ended up never being used. More details on the change logs of each patch.

Filipe Manana (5):
btrfs: add and use helper to check if block group is used
btrfs: do not delete unused block group if it may be used soon
btrfs: add new unused block groups to the list of unused block groups
btrfs: document what the spinlock unused_bgs_lock protects
btrfs: add comment about list_is_singular() use at btrfs_delete_unused_bgs()

 fs/btrfs/block-group.c | 87 +++++++++++++++++++++++++++++++++++++++++-
 fs/btrfs/block-group.h |  7 ++++
 fs/btrfs/fs.h          |  3 ++
 3 files changed, 95 insertions(+), 2 deletions(-)
Signature · 1 line
2.40.1