Lines Matching refs:lostfound
208 struct bch_inode_unpacked *lostfound, in lookup_lostfound() argument
276 ret = lookup_inode(trans, inum, snapshot, lostfound); in lookup_lostfound()
298 bch2_inode_init_early(c, lostfound); in lookup_lostfound()
299 bch2_inode_init_late(lostfound, now, 0, 0, S_IFDIR|0700, 0, &root_inode); in lookup_lostfound()
300 lostfound->bi_dir = root_inode.bi_inum; in lookup_lostfound()
301 lostfound->bi_snapshot = le32_to_cpu(st.root_snapshot); in lookup_lostfound()
305 ret = bch2_inode_create(trans, &lostfound_iter, lostfound, snapshot, cpu); in lookup_lostfound()
316 mode_to_type(lostfound->bi_mode), in lookup_lostfound()
318 lostfound->bi_inum, in lookup_lostfound()
319 &lostfound->bi_dir_offset, in lookup_lostfound()
321 bch2_inode_write_flags(trans, &lostfound_iter, lostfound, in lookup_lostfound()
372 struct bch_inode_unpacked lostfound; in reattach_inode() local
391 ret = lookup_lostfound(trans, dirent_snapshot, &lostfound, inode->bi_inum); in reattach_inode()
395 lostfound.bi_nlink += S_ISDIR(inode->bi_mode); in reattach_inode()
399 BUG_ON(!bch2_snapshot_is_ancestor(c, inode->bi_snapshot, lostfound.bi_snapshot)); in reattach_inode()
400 lostfound.bi_snapshot = inode->bi_snapshot; in reattach_inode()
403 ret = __bch2_fsck_write_inode(trans, &lostfound); in reattach_inode()
407 struct bch_hash_info dir_hash = bch2_hash_info_init(c, &lostfound); in reattach_inode()
410 inode->bi_dir = lostfound.bi_inum; in reattach_inode()
413 inode->bi_parent_subvol, lostfound.bi_inum, in reattach_inode()
458 SPOS(lostfound.bi_inum, inode->bi_dir_offset, in reattach_inode()