]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Don't use the new_fs() bucket alloc path on an initialized fs
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Jun 2024 23:47:31 +0000 (19:47 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Jun 2024 23:47:31 +0000 (19:47 -0400)
commit44ec5990357b9ebb8e5e88bb4f98a2746b938fab
treed24c64ca681811919cad170a17a1cd10f5694ec1
parenta0bd30e4ea9da9499c5527dc84a0e2d291f273d2
bcachefs: Don't use the new_fs() bucket alloc path on an initialized fs

On a new filesystem or device we have to allocate the journal with a
bump allocator, because allocation info isn't ready yet - but when
hot-adding a device that doesn't have a journal, we don't want to use
that path.

Reported-by: syzbot+24a867cb90d8315cccff@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal.c
fs/bcachefs/journal.h
fs/bcachefs/super.c