Skip to content

Commit 3ff3475

Browse files
author
Kent Overstreet
committed
bcachefs: Fix check_key_has_snapshot() call
Signed-off-by: Kent Overstreet <[email protected]>
1 parent 62f3502 commit 3ff3475

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/bcachefs/fsck.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2022,8 +2022,10 @@ static int check_xattr(struct btree_trans *trans, struct btree_iter *iter,
20222022
int ret;
20232023

20242024
ret = check_key_has_snapshot(trans, iter, k);
2025-
if (ret)
2025+
if (ret < 0)
20262026
return ret;
2027+
if (ret)
2028+
return 0;
20272029

20282030
i = walk_inode(trans, inode, k);
20292031
ret = PTR_ERR_OR_ZERO(i);

0 commit comments

Comments
 (0)