]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: Fix bch2_inode_is_open() check
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Oct 2024 01:31:31 +0000 (21:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 3 Oct 2024 01:31:31 +0000 (21:31 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fsck.c

index c6c98ee87ec91fc75605dfa30d6defcb73e7f980..351de61c7ed120cdd76bf29a2b9e6d027061a606 100644 (file)
@@ -1106,7 +1106,7 @@ static int check_inode(struct btree_trans *trans,
                        if (ret)
                                goto err;
                } else {
-                       if (fsck_err_on(bch2_inode_is_open(c, k.k->p),
+                       if (fsck_err_on(!bch2_inode_is_open(c, k.k->p),
                                        trans, inode_unlinked_and_not_open,
                                      "inode %llu%u unlinked and not open",
                                      u.bi_inum, u.bi_snapshot)) {