diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-11 20:57:01 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:31 -0400 |
commit | 0b090326535c8fe5a1da6ca3d7bd4a3fa9dfd6c9 (patch) | |
tree | bcf0e8a0e509212cba289d17c20bd7757656aeb8 /fs/bcachefs/lru.h | |
parent | 5650bb46be89a1254609d47e4c87d1e9cf9121fb (diff) |
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>
Diffstat (limited to 'fs/bcachefs/lru.h')
-rw-r--r-- | fs/bcachefs/lru.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/lru.h b/fs/bcachefs/lru.h index 0a01836c07c1..bfe38a67e585 100644 --- a/fs/bcachefs/lru.h +++ b/fs/bcachefs/lru.h @@ -10,9 +10,9 @@ void bch2_lru_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c); .val_to_text = bch2_lru_to_text, \ } -int bch2_lru_delete(struct btree_trans *, u64, u64, u64); +int bch2_lru_delete(struct btree_trans *, u64, u64, u64, struct bkey_s_c); int bch2_lru_set(struct btree_trans *, u64, u64, u64 *); -int bch2_lru_change(struct btree_trans *, u64, u64, u64, u64 *); +int bch2_lru_change(struct btree_trans *, u64, u64, u64, u64 *, struct bkey_s_c); int bch2_check_lrus(struct bch_fs *, bool); |