Lines Matching refs:root
494 static int hpfs_show_options(struct seq_file *seq, struct dentry *root)
496 struct hpfs_sb_info *sbi = hpfs_sb(root->d_sb);
544 struct inode *root;
619 sbi->sb_root = le32_to_cpu(superblock->root);
708 root = iget_locked(s, sbi->sb_root);
709 if (!root)
711 hpfs_init_inode(root);
712 hpfs_read_inode(root);
713 unlock_new_inode(root);
714 s->s_root = d_make_root(root);
719 * find the root directory's . pointer & finish filling in the inode
724 de = map_dirent(root, root_dno, "\001\001", 2, NULL, &qbh);
726 hpfs_error(s, "unable to find root dir");
728 root->i_atime.tv_sec = local_to_gmt(s, le32_to_cpu(de->read_date));
729 root->i_atime.tv_nsec = 0;
730 root->i_mtime.tv_sec = local_to_gmt(s, le32_to_cpu(de->write_date));
731 root->i_mtime.tv_nsec = 0;
732 root->i_ctime.tv_sec = local_to_gmt(s, le32_to_cpu(de->creation_date));
733 root->i_ctime.tv_nsec = 0;
734 hpfs_i(root)->i_ea_size = le32_to_cpu(de->ea_size);
735 hpfs_i(root)->i_parent_dir = root->i_ino;
736 if (root->i_size == -1)
737 root->i_size = 2048;
738 if (root->i_blocks == -1)
739 root->i_blocks = 5;