Lines Matching refs:root_inode
248 struct bch_inode_unpacked root_inode; in lookup_lostfound() local
250 ret = lookup_inode(trans, root_inum.inum, snapshot, &root_inode); in lookup_lostfound()
256 root_hash_info = bch2_hash_info_init(c, &root_inode); 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()
303 root_inode.bi_nlink++; in lookup_lostfound()
315 0, root_inode.bi_inum, snapshot, &root_hash_info, in lookup_lostfound()
2628 struct bch_inode_unpacked root_inode; in check_root_trans() local
2659 ret = lookup_inode(trans, BCACHEFS_ROOT_INO, snapshot, &root_inode); in check_root_trans()
2666 mustfix_fsck_err_on(!S_ISDIR(root_inode.bi_mode), in check_root_trans()
2669 bch2_inode_init(c, &root_inode, 0, 0, S_IFDIR|0755, in check_root_trans()
2671 root_inode.bi_inum = inum; in check_root_trans()
2672 root_inode.bi_snapshot = snapshot; in check_root_trans()
2674 ret = __bch2_fsck_write_inode(trans, &root_inode); in check_root_trans()