diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-17 20:30:18 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-20 19:41:38 -0400 |
| commit | 4c0d2c67ac6d54ba71bb3438147b144c25fdee2c (patch) | |
| tree | 033c7872f362011c1fc04f36978d0fd8a8e42324 /fs/bcachefs/snapshot.c | |
| parent | Linux 6.15-rc3 (diff) | |
| download | linux-4c0d2c67ac6d54ba71bb3438147b144c25fdee2c.tar.gz linux-4c0d2c67ac6d54ba71bb3438147b144c25fdee2c.zip | |
bcachefs: Fix early startup error path
Don't set JOURNAL_running until we're also calling
journal_space_available() for the first time.
If JOURNAL_running is set, shutdown will write an empty journal entry -
but this will hit an assert in journal_entry_open() if we've never
called journal_space_available().
Reported-by: syzbot+53bb24d476ef8368a7f0@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
0 files changed, 0 insertions, 0 deletions
