public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: add a delayed ref self test
@ 2024-11-14 19:57 Josef Bacik
  2024-11-14 19:57 ` [PATCH 1/2] btrfs: move select_delayed_ref and export it Josef Bacik
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Josef Bacik @ 2024-11-14 19:57 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

Hello,

I made a silly mistake when refactoring the delayed ref code to make it easier
to understand, and that resulted in a whole lot of not fun trying to find what
went wrong with boxes started falling over when we were deploying 6.11.  This
style of bug is easy to catch with basic unit testing, so add a variety of unit
tests for delayed refs to make sure I don't break things again.  One patch moves
an important helper and exports it so that we can do the testing, the other
patch is a giant patch of all the tests with a few changes that are necessary to
make everything work.  I validated these work properly and catch a variety of
bugs that I hand introduced to the delayed ref code.  Thanks,

Josef Bacik (2):
  btrfs: move select_delayed_ref and export it
  btrfs: add delayed ref self tests

 fs/btrfs/Makefile                   |    2 +-
 fs/btrfs/delayed-ref.c              |   41 +-
 fs/btrfs/delayed-ref.h              |    2 +
 fs/btrfs/extent-tree.c              |   26 +-
 fs/btrfs/tests/btrfs-tests.c        |   18 +
 fs/btrfs/tests/btrfs-tests.h        |    6 +
 fs/btrfs/tests/delayed-refs-tests.c | 1012 +++++++++++++++++++++++++++
 7 files changed, 1078 insertions(+), 29 deletions(-)
 create mode 100644 fs/btrfs/tests/delayed-refs-tests.c

-- 
2.43.0


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

end of thread, other threads:[~2024-12-09 14:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-14 19:57 [PATCH 0/2] btrfs: add a delayed ref self test Josef Bacik
2024-11-14 19:57 ` [PATCH 1/2] btrfs: move select_delayed_ref and export it Josef Bacik
2024-11-14 19:57 ` [PATCH 2/2] btrfs: add delayed ref self tests Josef Bacik
2024-11-14 22:23   ` Boris Burkov
2024-11-15 14:42     ` Josef Bacik
2024-11-15 18:33   ` David Sterba
2024-12-06 19:51     ` David Sterba
2024-12-09 14:01       ` Josef Bacik
2024-11-26 15:34   ` David Sterba
2024-11-14 22:24 ` [PATCH 0/2] btrfs: add a delayed ref self test Boris Burkov

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