diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-01-01 18:27:50 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:21 -0400 |
commit | 2a84de33607d66b57a49581376c850dda5f3d9e4 (patch) | |
tree | c2f86f435ec3d25e21cb14f75c56f24146dc9ea2 /fs/bcachefs/btree_gc.c | |
parent | dfd41fb9f24699393a042f9c34bd46496da1174d (diff) | |
download | lwn-2a84de33607d66b57a49581376c850dda5f3d9e4.tar.gz lwn-2a84de33607d66b57a49581376c850dda5f3d9e4.zip |
bcachefs: Log what we're doing when repairing
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_gc.c')
-rw-r--r-- | fs/bcachefs/btree_gc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_gc.c b/fs/bcachefs/btree_gc.c index 12f2faca4fa3..77c30157792b 100644 --- a/fs/bcachefs/btree_gc.c +++ b/fs/bcachefs/btree_gc.c @@ -691,10 +691,16 @@ found: } ret = bch2_journal_key_insert_take(c, btree_id, level, new); + if (ret) kfree(new); - else + else { + bch2_bkey_val_to_text(&PBUF(buf), c, *k); + bch_info(c, "updated %s", buf); + bch2_bkey_val_to_text(&PBUF(buf), c, bkey_i_to_s_c(new)); + bch_info(c, "new key %s", buf); *k = bkey_i_to_s_c(new); + } } fsck_err: return ret; |