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);
313 struct nilfs_root *root,
317 .ino = ino, .root = root, .cno = 0, .for_gc = false,
330 struct nilfs_root *root;
342 root = NILFS_I(dir)->i_root;
345 ii->i_root = root;
347 err = nilfs_ifile_create_inode(root->ifile, &ino, &bh);
357 err = nilfs_ifile_create_inode(root->ifile, &ino, &bh);
366 atomic64_inc(&root->inodes_count);
390 if (nilfs_insert_inode_locked(inode, root, ino) < 0) {
485 struct nilfs_root *root, unsigned long ino,
494 err = nilfs_ifile_get_inode_block(root->ifile, ino, &bh);
498 raw_inode = nilfs_ifile_map_inode(root->ifile, ino, bh);
522 nilfs_ifile_unmap_inode(root->ifile, ino, bh);
531 nilfs_ifile_unmap_inode(root->ifile, ino, bh);
544 if (args->ino != inode->i_ino || args->root != NILFS_I(inode)->i_root)
573 NILFS_I(inode)->i_root = args->root;
574 if (args->root && args->ino == NILFS_ROOT_INO)
575 nilfs_get_root(args->root);
586 struct inode *nilfs_ilookup(struct super_block *sb, struct nilfs_root *root,
590 .ino = ino, .root = root, .cno = 0, .for_gc = false,
597 struct inode *nilfs_iget_locked(struct super_block *sb, struct nilfs_root *root,
601 .ino = ino, .root = root, .cno = 0, .for_gc = false,
608 struct inode *nilfs_iget(struct super_block *sb, struct nilfs_root *root,
614 inode = nilfs_iget_locked(sb, root, ino);
620 err = __nilfs_read_inode(sb, root, ino, inode);
633 .ino = ino, .root = NULL, .cno = cno, .for_gc = true,
677 args.root = ii->i_root;
735 .ino = inode->i_ino, .root = NULL, .cno = 0, .for_gc = false,
783 /* zero-fill unused portion in the case of super root block */
1012 struct nilfs_root *root = NILFS_I(inode)->i_root;
1014 if ((mask & MAY_WRITE) && root &&
1015 root->cno != NILFS_CPTREE_CURRENT_CNO)