bcachefs: Improve bch2_lru_delete() error messages
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 12 Apr 2022 00:57:01 +0000 (20:57 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
commit0b090326535c8fe5a1da6ca3d7bd4a3fa9dfd6c9
treebcf0e8a0e509212cba289d17c20bd7757656aeb8
parent5650bb46be89a1254609d47e4c87d1e9cf9121fb
bcachefs: Improve bch2_lru_delete() error messages

When we detect a filesystem inconsistency, we should include the
relevent keys in the error message. This patch adds a parameter to pass
the key with the lru entry to bch2_lru_delete(), so that it can be
printed.

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