Commit 3ff34756 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix check_key_has_snapshot() call

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 62f35024
......@@ -2022,8 +2022,10 @@ static int check_xattr(struct btree_trans *trans, struct btree_iter *iter,
int ret;
ret = check_key_has_snapshot(trans, iter, k);
if (ret)
if (ret < 0)
return ret;
if (ret)
return 0;
i = walk_inode(trans, inode, k);
ret = PTR_ERR_OR_ZERO(i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment