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

bcachefs: Fix check_key_has_snapshot() call

parent 62f35024
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);