Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Fix check_key_has_snapshot() call

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+3 -1
+3 -1
fs/bcachefs/fsck.c
··· 2022 2022 int ret; 2023 2023 2024 2024 ret = check_key_has_snapshot(trans, iter, k); 2025 - if (ret) 2025 + if (ret < 0) 2026 2026 return ret; 2027 + if (ret) 2028 + return 0; 2027 2029 2028 2030 i = walk_inode(trans, inode, k); 2029 2031 ret = PTR_ERR_OR_ZERO(i);