Lines Matching defs:root

545 	struct nilfs_root *root;
548 root = nilfs_find_or_create_root(
550 if (!root)
553 if (root->ifile)
557 err = nilfs_ifile_read(sb, root, cno, nilfs->ns_inode_size);
563 *rootp = root;
570 nilfs_put_root(root);
606 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
607 struct the_nilfs *nilfs = root->nilfs;
638 err = nilfs_ifile_count_free_inodes(root->ifile,
649 nmaxinodes = atomic64_read(&root->inodes_count);
674 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
678 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
679 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
768 struct super_block *sb = fc->root->d_sb;
897 struct nilfs_root *root,
904 inode = nilfs_iget(sb, root, NILFS_ROOT_INO);
907 nilfs_err(sb, "error %d getting root inode", ret);
912 nilfs_err(sb, "corrupt root inode");
917 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
940 nilfs_err(sb, "error %d getting root dentry", ret);
948 struct nilfs_root *root;
967 ret = nilfs_attach_checkpoint(s, cno, false, &root);
974 ret = nilfs_get_root_dentry(s, root, root_dentry);
975 nilfs_put_root(root);
983 * @root_dentry: root dentry of the tree to be shrunk
996 struct nilfs_root *root;
1008 root = nilfs_lookup_root(nilfs, cno);
1009 if (root) {
1010 inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO);
1019 nilfs_put_root(root);
1115 struct super_block *sb = fc->root->d_sb;
1142 struct nilfs_root *root;
1163 root = NILFS_I(d_inode(sb->s_root))->i_root;
1164 err = nilfs_attach_log_writer(sb, root);
1230 * Since nilfs_reconfigure() requires fc->root to be
1233 fc->root = dget(s->s_root);
1236 dput(fc->root);
1237 fc->root = NULL; /* prevent double release */
1250 fc->root = root_dentry;
1254 fc->root = dget(s->s_root);