]> www.infradead.org Git - users/willy/pagecache.git/commit
bcachefs: Change btree wb assert to runtime error
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 14 Mar 2025 13:54:43 +0000 (09:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 14 Mar 2025 14:25:25 +0000 (10:25 -0400)
commit90fd9ad5b0c981693c8512d9da01f14fb6596e9d
tree99779ab7be4274bc39b502bc6714dc439ca55d1b
parent9c18ea7ffee090b47afaa7dc41903fb1b436d7bd
bcachefs: Change btree wb assert to runtime error

We just had a report of the assert for "btree in write buffer for
non-write buffer btree" popping during the 6.14 upgrade.

- 150TB filesystem, after a reboot the upgrade was able to continue from
  where it left off, so no major damage.

But with 6.14 about to come out we want to get this tracked down asap,
and need more data if other users hit this.

Convert the BUG_ON() to an emergency read-only, and print out btree, the
key itself, and stack trace from the original write buffer update (which
did not have this check before).

Reported-by: Stijn Tintel <stijn@linux-ipv6.be>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_update.h
fs/bcachefs/btree_write_buffer.c