diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-01-04 05:54:10 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:52 +0200 |
commit | 629a21b621c466deac6e7ce20242308091f09735 (patch) | |
tree | b91390439357a9b087cc49ea65f03d95701464cf /fs/bcachefs/lru.h | |
parent | bcachefs: Fix move_ctxt_wait_event() (diff) | |
download | linux-629a21b621c466deac6e7ce20242308091f09735.tar.xz linux-629a21b621c466deac6e7ce20242308091f09735.zip |
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>
Diffstat (limited to 'fs/bcachefs/lru.h')
-rw-r--r-- | fs/bcachefs/lru.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/lru.h b/fs/bcachefs/lru.h index 0cfc7459711b..b8d9848cdb1a 100644 --- a/fs/bcachefs/lru.h +++ b/fs/bcachefs/lru.h @@ -25,6 +25,8 @@ static inline u64 lru_pos_time(struct bpos pos) int bch2_lru_invalid(const struct bch_fs *, struct bkey_s_c, unsigned, struct printbuf *); void bch2_lru_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); +void bch2_lru_pos_to_text(struct printbuf *, struct bpos); + #define bch2_bkey_ops_lru ((struct bkey_ops) { \ .key_invalid = bch2_lru_invalid, \ .val_to_text = bch2_lru_to_text, \ |