Lines Matching defs:root
30 * @root: pointer on NILFS root object (mounted checkpoint)
38 struct nilfs_root *root;
48 struct nilfs_root *root = NILFS_I(inode)->i_root;
51 if (root)
52 atomic64_add(n, &root->blocks_count);
57 struct nilfs_root *root = NILFS_I(inode)->i_root;
60 if (root)
61 atomic64_sub(n, &root->blocks_count);
317 struct nilfs_root *root,
321 .ino = ino, .root = root, .cno = 0, .for_gc = false,
334 struct nilfs_root *root;
346 root = NILFS_I(dir)->i_root;
349 ii->i_root = root;
351 err = nilfs_ifile_create_inode(root->ifile, &ino, &bh);
361 err = nilfs_ifile_create_inode(root->ifile, &ino, &bh);
370 atomic64_inc(&root->inodes_count);
394 if (nilfs_insert_inode_locked(inode, root, ino) < 0) {
489 struct nilfs_root *root, unsigned long ino,
498 err = nilfs_ifile_get_inode_block(root->ifile, ino, &bh);
502 raw_inode = nilfs_ifile_map_inode(root->ifile, ino, bh);
526 nilfs_ifile_unmap_inode(root->ifile, ino, bh);
535 nilfs_ifile_unmap_inode(root->ifile, ino, bh);
548 if (args->ino != inode->i_ino || args->root != NILFS_I(inode)->i_root)
577 NILFS_I(inode)->i_root = args->root;
578 if (args->root && args->ino == NILFS_ROOT_INO)
579 nilfs_get_root(args->root);
590 struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root,
594 .ino = ino, .root = root, .cno = 0, .for_gc = false,
601 struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root,
605 .ino = ino, .root = root, .cno = 0, .for_gc = false,
612 struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root,
618 inode = nilfs_iget_locked(sb, root, ino);
624 err = __nilfs_read_inode(sb, root, ino, inode);
637 .ino = ino, .root = NULL, .cno = cno, .for_gc = true,
681 args.root = ii->i_root;
739 .ino = inode->i_ino, .root = NULL, .cno = 0, .for_gc = false,
787 /* zero-fill unused portion in the case of super root block */
1014 struct nilfs_root *root = NILFS_I(inode)->i_root;
1016 if ((mask & MAY_WRITE) && root &&
1017 root->cno != NILFS_CPTREE_CURRENT_CNO)