bcachefs: Minor device removal fixes
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 9 Apr 2022 19:15:36 +0000 (15:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
commita9c0a4cbf1ceb9842fee5d7084817509a5e962aa
tree844f0302ef7afff7d4dd9cb89e73dc7c06f711c4
parent502f973dba660ed04f295e5ba129f2d369cc1aa6
bcachefs: Minor device removal fixes

 - We weren't clearing the LRU btree
 - bch2_alloc_read() runs before bch2_check_alloc_key() deletes alloc
   keys for devices/buckets that don't exists, so it needs to check for
   that
 - bch2_check_lrus() needs to check that buckets exists
 - improve some error messages

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/alloc_background.c
fs/bcachefs/lru.c
fs/bcachefs/super.c