[GIT PULL] bcachefs fixes for 6.15-rc6

From: Kent Overstreet
Date: Thu May 08 2025 - 15:58:46 EST


The following changes since commit 6846100b00d97d3d6f05766ae86a0d821d849e78:

bcachefs: Remove incorrect __counted_by annotation (2025-05-01 16:38:58 -0400)

are available in the Git repository at:

git://evilpiepirate.org/bcachefs.git tags/bcachefs-2025-05-08

for you to fetch changes up to 8e4d28036c293241b312b1fceafb32b994f80fcc:

bcachefs: Don't aggressively discard the journal (2025-05-07 17:10:10 -0400)

----------------------------------------------------------------
bcachefs fixes for 6.15-rc6

- Some fixes to help with filesystem analysis: ensure superblock error
count gets written if we go ERO, don't discard the journal
aggressively (so it's available for list_journal -a).

- Fix lost wakeup on arm causing us to get stuck when reading btree
nodes.

- Fix fsck failing to exit on ctrl-c.

- An additional fix for filesystems with misaligned bucket sizes: we now
ensure that allocations are properly aligned.

- Setting background target but not promote target will now leave that
data cached on the foreground target, as it used to.

- Revert a change to when we allocate the VFS superblock, this was done
for implementing blk_holder_ops but ended up not being needed, and
allocating a superblock and not setting SB_BORN while we do recovery
caused sync() calls and other things to hang.

- Assorted fixes for harmless error messages that caused concern to
users.

----------------------------------------------------------------
Kent Overstreet (10):
bcachefs: thread_with_stdio: fix spinning instead of exiting
bcachefs: Improve want_cached_ptr()
bcachefs: Ensure proper write alignment
bcachefs: Add missing barriers before wake_up_bit()
bcachefs: fix hung task timeout in journal read
bcachefs: Call bch2_fs_start before getting vfs superblock
bcachefs: journal_shutdown is EROFS, not EIO
bcachefs: Filter out harmless EROFS error messages
bcachefs: Ensure superblock gets written when we go ERO
bcachefs: Don't aggressively discard the journal

fs/bcachefs/alloc_foreground.c | 22 +++++++++++++++++++++-
fs/bcachefs/btree_io.c | 9 ++++++++-
fs/bcachefs/buckets.h | 1 +
fs/bcachefs/ec.h | 1 +
fs/bcachefs/errcode.h | 2 +-
fs/bcachefs/extents.c | 5 +++--
fs/bcachefs/fs.c | 11 +++--------
fs/bcachefs/journal_io.c | 4 +++-
fs/bcachefs/journal_reclaim.c | 7 ++++---
fs/bcachefs/move.c | 3 ++-
fs/bcachefs/super.c | 5 +++++
fs/bcachefs/thread_with_file.c | 4 +++-
12 files changed, 55 insertions(+), 19 deletions(-)