summaryrefslogtreecommitdiff
path: root/libbcachefs/str_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/str_hash.c')
-rw-r--r--libbcachefs/str_hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/str_hash.c b/libbcachefs/str_hash.c
index 3e9f5922..d39fd426 100644
--- a/libbcachefs/str_hash.c
+++ b/libbcachefs/str_hash.c
@@ -204,7 +204,7 @@ int bch2_repair_inode_hash_info(struct btree_trans *trans,
}
ret = bch2_trans_commit(trans, NULL, NULL, BCH_TRANS_COMMIT_no_enospc) ?:
- -BCH_ERR_transaction_restart_nested;
+ bch_err_throw(c, transaction_restart_nested);
err:
fsck_err:
printbuf_exit(&buf);
@@ -292,7 +292,7 @@ int bch2_str_hash_repair_key(struct btree_trans *trans,
BTREE_UPDATE_internal_snapshot_node) ?:
bch2_fsck_update_backpointers(trans, s, *desc, hash_info, new) ?:
bch2_trans_commit(trans, NULL, NULL, BCH_TRANS_COMMIT_no_enospc) ?:
- -BCH_ERR_transaction_restart_commit;
+ bch_err_throw(c, transaction_restart_commit);
} else {
duplicate_entries:
ret = hash_pick_winner(trans, *desc, hash_info, k, dup_k);
@@ -326,7 +326,7 @@ duplicate_entries:
}
ret = bch2_trans_commit(trans, NULL, NULL, 0) ?:
- -BCH_ERR_transaction_restart_commit;
+ bch_err_throw(c, transaction_restart_commit);
}
out:
fsck_err: