]> www.infradead.org Git - linux.git/commit
bcachefs: Fix bch2_bucket_gens_init()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 19 Aug 2024 00:38:49 +0000 (20:38 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 Aug 2024 06:07:22 +0000 (02:07 -0400)
commitc2a503f3e98e191d86738f5438a3a2b69575c830
treeea88f1899f5f2a6c396316cad591e3d7dadb6a8b
parente150a7e89c4727176d07f5a0a8966fc2af05821c
bcachefs: Fix bch2_bucket_gens_init()

Comparing the wrong bpos - this was missed because normally
bucket_gens_init() runs on brand new filesystems, but this bug caused it
to overwrite bucket_gens keys with 0s when upgrading ancient
filesystems.

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