diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-08 22:30:19 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-21 01:36:23 -0500 |
| commit | be203120dc084c21fa8208d12fa394d50e843b62 (patch) | |
| tree | 56dbdafb438d4892a1acf0707ca5244f261bd6e4 /fs/bcachefs/snapshot.c | |
| parent | bcachefs: bch2_str_hash_check_key() now checks inode hash info (diff) | |
| download | linux-be203120dc084c21fa8208d12fa394d50e843b62.tar.gz linux-be203120dc084c21fa8208d12fa394d50e843b62.zip | |
bcachefs: bch2_check_key_has_snapshot() prints btree id
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
| -rw-r--r-- | fs/bcachefs/snapshot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/bcachefs/snapshot.c b/fs/bcachefs/snapshot.c index 99f045518312..f65f7b191d31 100644 --- a/fs/bcachefs/snapshot.c +++ b/fs/bcachefs/snapshot.c @@ -2,6 +2,7 @@ #include "bcachefs.h" #include "bkey_buf.h" +#include "btree_cache.h" #include "btree_key_cache.h" #include "btree_update.h" #include "buckets.h" @@ -1097,7 +1098,9 @@ int bch2_check_key_has_snapshot(struct btree_trans *trans, if (fsck_err_on(!bch2_snapshot_equiv(c, k.k->p.snapshot), trans, bkey_in_missing_snapshot, "key in missing snapshot %s, delete?", - (bch2_bkey_val_to_text(&buf, c, k), buf.buf))) + (bch2_btree_id_to_text(&buf, iter->btree_id), + prt_char(&buf, ' '), + bch2_bkey_val_to_text(&buf, c, k), buf.buf))) ret = bch2_btree_delete_at(trans, iter, BTREE_UPDATE_internal_snapshot_node) ?: 1; fsck_err: |
