Lines Matching refs:root
530 struct nilfs_root *root; in nilfs_attach_checkpoint() local
535 root = nilfs_find_or_create_root( in nilfs_attach_checkpoint()
537 if (!root) in nilfs_attach_checkpoint()
540 if (root->ifile) in nilfs_attach_checkpoint()
558 err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size, in nilfs_attach_checkpoint()
559 &raw_cp->cp_ifile_inode, &root->ifile); in nilfs_attach_checkpoint()
563 atomic64_set(&root->inodes_count, in nilfs_attach_checkpoint()
565 atomic64_set(&root->blocks_count, in nilfs_attach_checkpoint()
571 *rootp = root; in nilfs_attach_checkpoint()
577 nilfs_put_root(root); in nilfs_attach_checkpoint()
613 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; in nilfs_statfs() local
614 struct the_nilfs *nilfs = root->nilfs; in nilfs_statfs()
645 err = nilfs_ifile_count_free_inodes(root->ifile, in nilfs_statfs()
658 nmaxinodes = atomic64_read(&root->inodes_count); in nilfs_statfs()
684 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root; in nilfs_show_options() local
688 if (root->cno != NILFS_CPTREE_CURRENT_CNO) in nilfs_show_options()
689 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno); in nilfs_show_options()
919 struct nilfs_root *root, in nilfs_get_root_dentry() argument
926 inode = nilfs_iget(sb, root, NILFS_ROOT_INO); in nilfs_get_root_dentry()
939 if (root->cno == NILFS_CPTREE_CURRENT_CNO) { in nilfs_get_root_dentry()
970 struct nilfs_root *root; in nilfs_attach_snapshot() local
989 ret = nilfs_attach_checkpoint(s, cno, false, &root); in nilfs_attach_snapshot()
996 ret = nilfs_get_root_dentry(s, root, root_dentry); in nilfs_attach_snapshot()
997 nilfs_put_root(root); in nilfs_attach_snapshot()
1018 struct nilfs_root *root; in nilfs_checkpoint_is_mounted() local
1030 root = nilfs_lookup_root(nilfs, cno); in nilfs_checkpoint_is_mounted()
1031 if (root) { in nilfs_checkpoint_is_mounted()
1032 inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO); in nilfs_checkpoint_is_mounted()
1041 nilfs_put_root(root); in nilfs_checkpoint_is_mounted()
1171 struct nilfs_root *root; in nilfs_remount() local
1193 root = NILFS_I(d_inode(sb->s_root))->i_root; in nilfs_remount()
1194 err = nilfs_attach_log_writer(sb, root); in nilfs_remount()