bcachefs: Improve invalidate_one_bucket() error messages
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 4 Jan 2023 04:54:10 +0000 (23:54 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:52 +0000 (17:09 -0400)
commit629a21b621c466deac6e7ce20242308091f09735
treeb91390439357a9b087cc49ea65f03d95701464cf
parent46eea9cb9ec14684d1b6e90c17db1ac896f26a5b
bcachefs: Improve invalidate_one_bucket() error messages

Make sure to check for lru entries that point to buckets that don't
exist as well as buckets in the wrong state, and improve the error
message we print out.

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