diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-14 21:39:54 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:57 +0300 |
commit | 2f0815840c80075bc35f210a7acfa8b48717be5a (patch) | |
tree | 6211bb1907f707610cfa39c8cbc36a3292c80320 /fs/bcachefs/backpointers.h | |
parent | 40a18fe27335706789b1322934f4d8b458f302e3 (diff) | |
download | linux-2f0815840c80075bc35f210a7acfa8b48717be5a.tar.xz |
bcachefs: Improve the backpointer to missing extent message
We now print the pos where the backpointer was found in the btree, as
well as the exact bucket:bucket_offset of the data, to aid in grepping
through logs.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/backpointers.h')
-rw-r--r-- | fs/bcachefs/backpointers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/backpointers.h b/fs/bcachefs/backpointers.h index 314fee21dc27..d0ba5d8596c5 100644 --- a/fs/bcachefs/backpointers.h +++ b/fs/bcachefs/backpointers.h @@ -48,7 +48,7 @@ static inline struct bpos bucket_pos_to_bp(const struct bch_fs *c, (bucket_to_sector(ca, bucket.offset) << MAX_EXTENT_COMPRESS_RATIO_SHIFT) + bucket_offset); - BUG_ON(!bkey_eq(bucket, bp_pos_to_bucket(c, ret))); + EBUG_ON(!bkey_eq(bucket, bp_pos_to_bucket(c, ret))); return ret; } |