]> www.infradead.org Git - users/dwmw2/linux.git/commit
bcachefs: Fix bch2_trigger_alloc when upgrading from old versions
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 13 Aug 2024 03:24:03 +0000 (23:24 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 14 Aug 2024 02:56:50 +0000 (22:56 -0400)
commitbd864bc2d90790e00b02b17c75fb951cb4b0bb8b
treef0d6647465a98a2b0cdf4949fd1c90ab4b276f57
parenta24e6e7146e361aa0855cf8ee3b2e80b8eb692e3
bcachefs: Fix bch2_trigger_alloc when upgrading from old versions

bch2_trigger_alloc was assuming that the new key would always be newly
created and thus always an alloc_v4 key, but - not when called from
btree_gc.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c