summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-08-28 18:54:42 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-08-31 14:48:44 -0400
commit1038a009be2b66b5ed249f458bc1e8c8828e20ba (patch)
treeddef6645d2e9bb51b7addab71a9391ff0eadcdd3 /fs
parent52889e412c94a200f1486483fb9c5a4d2b715a95 (diff)
bcachefs: make fsck spew less
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/fsck.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c
index 6d5fc177747a..e82e272359ee 100644
--- a/fs/bcachefs/fsck.c
+++ b/fs/bcachefs/fsck.c
@@ -374,17 +374,15 @@ fsck_err:
kfree(d);
return ret;
err_redo:
- bch_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)",
- buf, strlen(buf));
-
hash = bch2_dirent_hash_desc.hash_bkey(&h->info, *k);
- if (fsck_err(c, "hash table key at wrong offset: btree %u, offset %llu, "
- "hashed to %llu chain starts at %llu\n%s",
- BTREE_ID_DIRENTS,
- k->k->p.offset, hash, h->chain->pos.offset,
- (bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
- buf, sizeof(buf), *k), buf))) {
+ if (fsck_err(c, "cannot fix dirent by removing trailing garbage %s (%zu)\n"
+ "hash table key at wrong offset: btree %u, offset %llu, "
+ "hashed to %llu chain starts at %llu\n%s",
+ buf, strlen(buf), BTREE_ID_DIRENTS,
+ k->k->p.offset, hash, h->chain->pos.offset,
+ (bch2_bkey_val_to_text(c, bkey_type(0, BTREE_ID_DIRENTS),
+ buf, sizeof(buf), *k), buf))) {
ret = hash_redo_key(bch2_dirent_hash_desc,
h, c, iter, *k, hash);
if (ret)