Loading
bcachefs: Fix livelock in journal_entry_open()
When the journal is low on space, we might do discards from journal_res_get() -> journal_entry_open(). Make sure we set j->can_discard correctly, so that if we're low on space but not because discards aren't keeping up we don't livelock. Fixes: 8e4d2803 ("bcachefs: Don't aggressively discard the journal") Signed-off-by:Kent Overstreet <kent.overstreet@linux.dev>