bcachefs: Ensure journal doesn't get stuck in nochanges mode
authorKent Overstreet <kent.overstreet@gmail.com>
Thu, 28 Oct 2021 22:22:25 +0000 (18:22 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:15 +0000 (17:09 -0400)
commitfae1157d184084f1716a10273423f8e949d8471f
treefb5a654f7bdde8e55b8c78f04ea0d92f181d68a9
parent285b181ad460bb240041a9ca7935f9e884040405
bcachefs: Ensure journal doesn't get stuck in nochanges mode

This tweaks the journal code to always act as if there's space available
in nochanges mode, when we're not going to be doing any writes. This
helps in recovering filesystems that won't mount because they need
journal replay and the journal has gotten stuck.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/journal.h
fs/bcachefs/journal_io.c
fs/bcachefs/journal_reclaim.c
fs/bcachefs/journal_types.h
fs/bcachefs/super.c