mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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:
parent
c27e5782d9
commit
b17d7bdb12
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user