Lines Matching defs:root
545 struct nilfs_root *root;
550 root = nilfs_find_or_create_root(
552 if (!root)
555 if (root->ifile)
572 err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size,
573 &raw_cp->cp_ifile_inode, &root->ifile);
577 atomic64_set(&root->inodes_count,
579 atomic64_set(&root->blocks_count,
585 *rootp = root;
591 nilfs_put_root(root);
627 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
628 struct the_nilfs *nilfs = root->nilfs;
659 err = nilfs_ifile_count_free_inodes(root->ifile,
670 nmaxinodes = atomic64_read(&root->inodes_count);
695 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
699 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
700 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
928 struct nilfs_root *root,
935 inode = nilfs_iget(sb, root, NILFS_ROOT_INO);
938 nilfs_err(sb, "error %d getting root inode", ret);
943 nilfs_err(sb, "corrupt root inode");
948 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
971 nilfs_err(sb, "error %d getting root dentry", ret);
979 struct nilfs_root *root;
998 ret = nilfs_attach_checkpoint(s, cno, false, &root);
1005 ret = nilfs_get_root_dentry(s, root, root_dentry);
1006 nilfs_put_root(root);
1014 * @root_dentry: root dentry of the tree to be shrunk
1027 struct nilfs_root *root;
1039 root = nilfs_lookup_root(nilfs, cno);
1040 if (root) {
1041 inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO);
1050 nilfs_put_root(root);
1179 struct nilfs_root *root;
1200 root = NILFS_I(d_inode(sb->s_root))->i_root;
1201 err = nilfs_attach_log_writer(sb, root);