diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-16 21:24:29 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-18 03:53:11 +0300 |
commit | 3ff3475611d5861ebae62e651608b7ccdb054736 (patch) | |
tree | bea9ce8dd01a6ba06ef30399e156850f1a7f5a33 /fs/bcachefs/fsck.c | |
parent | 62f35024b2b1a301cd263230d8c060cce2010efe (diff) | |
download | linux-3ff3475611d5861ebae62e651608b7ccdb054736.tar.xz |
bcachefs: Fix check_key_has_snapshot() call
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r-- | fs/bcachefs/fsck.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index f48033be3f6b..7228b118aad9 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -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); |