Lines Matching refs:root
533 struct nilfs_root *root; in nilfs_attach_checkpoint() local
538 root = nilfs_find_or_create_root( in nilfs_attach_checkpoint()
540 if (!root) in nilfs_attach_checkpoint()
543 if (root->ifile) in nilfs_attach_checkpoint()
561 err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size, in nilfs_attach_checkpoint()
562 &raw_cp->cp_ifile_inode, &root->ifile); in nilfs_attach_checkpoint()
566 atomic64_set(&root->inodes_count, in nilfs_attach_checkpoint()
568 atomic64_set(&root->blocks_count, in nilfs_attach_checkpoint()
574 *rootp = root; in nilfs_attach_checkpoint()
580 nilfs_put_root(root); in nilfs_attach_checkpoint()
616 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; in nilfs_statfs() local
617 struct the_nilfs *nilfs = root->nilfs; in nilfs_statfs()
648 err = nilfs_ifile_count_free_inodes(root->ifile, in nilfs_statfs()
661 nmaxinodes = atomic64_read(&root->inodes_count); in nilfs_statfs()
687 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; in nilfs_show_options() local
691 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
692 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
922 struct nilfs_root *root, in nilfs_get_root_dentry() argument
929 inode = nilfs_iget(sb, root, NILFS_ROOT_INO); in nilfs_get_root_dentry()
942 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
973 struct nilfs_root *root; in nilfs_attach_snapshot() local
992 ret = nilfs_attach_checkpoint(s, cno, false, &root); in nilfs_attach_snapshot()
999 ret = nilfs_get_root_dentry(s, root, root_dentry); in nilfs_attach_snapshot()
1000 nilfs_put_root(root); in nilfs_attach_snapshot()
1021 struct nilfs_root *root; in nilfs_checkpoint_is_mounted() local
1033 root = nilfs_lookup_root(nilfs, cno); in nilfs_checkpoint_is_mounted()
1034 if (root) { in nilfs_checkpoint_is_mounted()
1035 inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO); in nilfs_checkpoint_is_mounted()
1044 nilfs_put_root(root); in nilfs_checkpoint_is_mounted()
1174 struct nilfs_root *root; in nilfs_remount() local
1196 root = NILFS_I(d_inode(sb->s_root))->i_root; in nilfs_remount()
1197 err = nilfs_attach_log_writer(sb, root); in nilfs_remount()