Skip to content

Commit abcb6bd

Browse files
author
Kent Overstreet
committed
bcachefs: fix spurious error_throw
Signed-off-by: Kent Overstreet <[email protected]>
1 parent bb37831 commit abcb6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/backpointers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ static struct bkey_s_c __bch2_backpointer_get_key(struct btree_trans *trans,
353353
return ret ? bkey_s_c_err(ret) : bkey_s_c_null;
354354
} else {
355355
struct btree *b = __bch2_backpointer_get_node(trans, bp, iter, last_flushed, commit);
356-
if (b == ERR_PTR(bch_err_throw(c, backpointer_to_overwritten_btree_node)))
356+
if (b == ERR_PTR(-BCH_ERR_backpointer_to_overwritten_btree_node))
357357
return bkey_s_c_null;
358358
if (IS_ERR_OR_NULL(b))
359359
return ((struct bkey_s_c) { .k = ERR_CAST(b) });

0 commit comments

Comments
 (0)