All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: ENOSPC fixes for unused block groups
@ 2026-09-22 16:55 Boris Burkov
  2026-09-22 16:55 ` [PATCH 1/2] btrfs: allocate additional SYSTEM space earlier Boris Burkov
  2026-09-22 16:55 ` [PATCH 2/2] btrfs: commit after deleting an unused block group if system space is low Boris Burkov
  0 siblings, 2 replies; 5+ messages in thread
From: Boris Burkov @ 2026-09-22 16:55 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

A few fixes for system chunk allocation ENOSPCs caused by a sudden influx of a
large number of unused block groups in a filesystem with no free dev extents.

In practice, I saw this on a fully allocated fs with 30TB of space, a 4MiB
system chunk (single metadata mode) and ~10k unused data BGs.

- The first patch tries to avoid the condition by allocating earlier for the
  system chunk.

- The second patch eagerly commits a single deletion when the system chunk is
  at risk.

More details in the patches themselves.

Boris Burkov (2):
  btrfs: allocate additional SYSTEM space earlier
  btrfs: commit after deleting an unused block group if system space is
    low

 fs/btrfs/block-group.c | 43 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 40 insertions(+), 3 deletions(-)

-- 
2.55.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-28 20:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 16:55 [PATCH 0/2] btrfs: ENOSPC fixes for unused block groups Boris Burkov
2026-09-22 16:55 ` [PATCH 1/2] btrfs: allocate additional SYSTEM space earlier Boris Burkov
2026-09-28 10:58   ` Filipe Manana
2026-09-28 20:04     ` Boris Burkov
2026-09-22 16:55 ` [PATCH 2/2] btrfs: commit after deleting an unused block group if system space is low Boris Burkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.