bcachefs: fsck: fix add_inode()
the inode btree uses the offset field for the inum, not the inode field. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
+1
-1
@@ -806,7 +806,7 @@ static int add_inode(struct bch_fs *c, struct inode_walker *w,
|
||||
if (!n->whiteout) {
|
||||
return bch2_inode_unpack(inode, &n->inode);
|
||||
} else {
|
||||
n->inode.bi_inum = inode.k->p.inode;
|
||||
n->inode.bi_inum = inode.k->p.offset;
|
||||
n->inode.bi_snapshot = inode.k->p.snapshot;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user