Lines Matching defs:root
546 struct nilfs_root *root;
551 root = nilfs_find_or_create_root(
553 if (!root)
556 if (root->ifile)
573 err = nilfs_ifile_read(sb, root, nilfs->ns_inode_size,
574 &raw_cp->cp_ifile_inode, &root->ifile);
578 atomic64_set(&root->inodes_count,
580 atomic64_set(&root->blocks_count,
586 *rootp = root;
592 nilfs_put_root(root);
628 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
629 struct the_nilfs *nilfs = root->nilfs;
660 err = nilfs_ifile_count_free_inodes(root->ifile,
671 nmaxinodes = atomic64_read(&root->inodes_count);
696 struct nilfs_root *root = NILFS_I(d_inode(dentry))->i_root;
700 if (root->cno != NILFS_CPTREE_CURRENT_CNO)
701 seq_printf(seq, ",cp=%llu", (unsigned long long)root->cno);
929 struct nilfs_root *root,
936 inode = nilfs_iget(sb, root, NILFS_ROOT_INO);
939 nilfs_err(sb, "error %d getting root inode", ret);
944 nilfs_err(sb, "corrupt root inode");
949 if (root->cno == NILFS_CPTREE_CURRENT_CNO) {
972 nilfs_err(sb, "error %d getting root dentry", ret);
980 struct nilfs_root *root;
999 ret = nilfs_attach_checkpoint(s, cno, false, &root);
1006 ret = nilfs_get_root_dentry(s, root, root_dentry);
1007 nilfs_put_root(root);
1015 * @root_dentry: root dentry of the tree to be shrunk
1028 struct nilfs_root *root;
1040 root = nilfs_lookup_root(nilfs, cno);
1041 if (root) {
1042 inode = nilfs_ilookup(sb, root, NILFS_ROOT_INO);
1051 nilfs_put_root(root);
1180 struct nilfs_root *root;
1201 root = NILFS_I(d_inode(sb->s_root))->i_root;
1202 err = nilfs_attach_log_writer(sb, root);