Skip to content

Commit 3b1425a

Browse files
author
Kent Overstreet
committed
bcachefs: Fix bch2_inode_is_open() check
Signed-off-by: Kent Overstreet <[email protected]>
1 parent abaa6d4 commit 3b1425a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/fsck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ static int check_inode(struct btree_trans *trans,
11061106
if (ret)
11071107
goto err;
11081108
} else {
1109-
if (fsck_err_on(bch2_inode_is_open(c, k.k->p),
1109+
if (fsck_err_on(!bch2_inode_is_open(c, k.k->p),
11101110
trans, inode_unlinked_and_not_open,
11111111
"inode %llu%u unlinked and not open",
11121112
u.bi_inum, u.bi_snapshot)) {

0 commit comments

Comments
 (0)