[GIT PULL] bcachefs fixes for 6.14-rc3

From: Kent Overstreet
Date: Thu Feb 13 2025 - 13:32:31 EST


Just small stuff.

As a general announcement, on disk format is now frozen in my master
branch - future on disk format changes will be optional, not required.

The following changes since commit 4be214c26936813b636eed2fac906f585ddbf0f9:

bcachefs: bch2_bkey_sectors_need_rebalance() now only depends on bch_extent_rebalance (2025-02-06 22:35:11 -0500)

are available in the Git repository at:

git://evilpiepirate.org/bcachefs.git tags/bcachefs-2025-02-12

for you to fetch changes up to 406e445b3c6be65ab0ee961145e74bfd7ef6c9e1:

bcachefs: Reuse transaction (2025-02-12 18:44:50 -0500)

----------------------------------------------------------------
bcachefs fixes for 6.14-rc3

- More fixes for going read-only: the previous fix was insufficient, but
with more work on ordering journal reclaim flushing (and a btree node
accounting fix so we don't split until we have to) the
tiering_replication test now consistently goes read-only in less than
a second.

- fix for fsck when we have reflink pointers to missing indirect
extents

- some transaction restart handling fixes from Alan; the "Pass
_orig_restart_count to trans_was_restarted" likely fixes some rare
undefined behaviour heisenbugs.

----------------------------------------------------------------
Alan Huang (3):
bcachefs: Fix use after free
bcachefs: Pass _orig_restart_count to trans_was_restarted
bcachefs: Reuse transaction

Kent Overstreet (4):
bcachefs: Fix marking reflink pointers to missing indirect extents
bcachefs: Split out journal pins by btree level
bcachefs: Fix want_new_bset() so we write until the end of the btree node
bcachefs: CONFIG_BCACHEFS_INJECT_TRANSACTION_RESTARTS

fs/bcachefs/Kconfig | 7 +++++++
fs/bcachefs/btree_iter.c | 33 ++++++++++++++++++++++++++++++++-
fs/bcachefs/btree_iter.h | 14 +++++++++++++-
fs/bcachefs/btree_trans_commit.c | 4 ++++
fs/bcachefs/btree_types.h | 3 +++
fs/bcachefs/btree_update_interior.h | 4 ++--
fs/bcachefs/disk_accounting.h | 2 ++
fs/bcachefs/io_write.c | 12 +++++++++++-
fs/bcachefs/journal_reclaim.c | 37 ++++++++++++++++++-------------------
fs/bcachefs/journal_types.h | 5 ++++-
fs/bcachefs/reflink.c | 2 ++
fs/bcachefs/sb-errors_format.h | 4 ++--
12 files changed, 100 insertions(+), 27 deletions(-)