Commit 3b1425a4 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix bch2_inode_is_open() check

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent abaa6d4f
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment