Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] btrfs: squota lifetime fixes
@ 2026-05-12 19:34 Boris Burkov
  2026-05-12 19:34 ` [PATCH 1/4] btrfs: check for subvolume before deleting squota qgroup Boris Burkov
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Boris Burkov @ 2026-05-12 19:34 UTC (permalink / raw)
  To: linux-btrfs, kernel-team; +Cc: marc

A recent report of read-only filesystems since enabling squotas:

https://lore.kernel.org/linux-btrfs/adnBhWfJQ1n3hZC8@merlins.org/

led me to investigate a handful of issues in squotas and find some trivial and
not so trivial bugs in their lifetime management. The aim of the series is to
strengthen enforcement of the invariant: "a squota qgroup must outlast extents
that are accounted to it".

This series consists of two fixes to squota lifetime bugs and two patches that
reduce the consequences of errors in lifetime management from full fs goes
read-only abort to "warning and inaccurate squotas which can be deleted
eventually"

Additional improvements to btrfs check and fstests to follow.

Boris Burkov (4):
  btrfs: check for subvolume before deleting squota qgroup
  btrfs: fix squota accounting during enable generation
  btrfs: clamp to avoid squota underflow
  btrfs: swallow btrfs_record_squota_delta() enoent

 fs/btrfs/fs.h     |  1 +
 fs/btrfs/qgroup.c | 99 ++++++++++++++++++++++++++++++++---------------
 2 files changed, 68 insertions(+), 32 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-05-13  2:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 19:34 [PATCH 0/4] btrfs: squota lifetime fixes Boris Burkov
2026-05-12 19:34 ` [PATCH 1/4] btrfs: check for subvolume before deleting squota qgroup Boris Burkov
2026-05-12 19:34 ` [PATCH 2/4] btrfs: fix squota accounting during enable generation Boris Burkov
2026-05-12 19:34 ` [PATCH 3/4] btrfs: clamp to avoid squota underflow Boris Burkov
2026-05-13  0:53   ` Qu Wenruo
2026-05-12 19:34 ` [PATCH 4/4] btrfs: swallow btrfs_record_squota_delta() enoent Boris Burkov
2026-05-13  0:54   ` Qu Wenruo
2026-05-13  1:01 ` [PATCH 0/4] btrfs: squota lifetime fixes Qu Wenruo
2026-05-13  2:13 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox