Lines Matching refs:temp
387 struct dentry *temp = NULL; in ovl_create_index() local
410 temp = ovl_create_temp(indexdir, OVL_CATTR(S_IFDIR | 0)); in ovl_create_index()
411 err = PTR_ERR(temp); in ovl_create_index()
412 if (IS_ERR(temp)) in ovl_create_index()
415 err = ovl_set_upper_fh(OVL_FS(dentry->d_sb), upper, temp); in ovl_create_index()
423 err = ovl_do_rename(dir, temp, dir, index, 0); in ovl_create_index()
428 ovl_cleanup(dir, temp); in ovl_create_index()
429 dput(temp); in ovl_create_index()
490 static int ovl_copy_up_inode(struct ovl_copy_up_ctx *c, struct dentry *temp) in ovl_copy_up_inode() argument
505 upperpath.dentry = temp; in ovl_copy_up_inode()
514 err = ovl_copy_xattr(c->dentry->d_sb, c->lowerpath.dentry, temp); in ovl_copy_up_inode()
526 err = ovl_set_origin(c->dentry, c->lowerpath.dentry, temp); in ovl_copy_up_inode()
532 err = ovl_check_setxattr(c->dentry, temp, OVL_XATTR_METACOPY, in ovl_copy_up_inode()
538 inode_lock(temp->d_inode); in ovl_copy_up_inode()
540 err = ovl_set_size(temp, &c->stat); in ovl_copy_up_inode()
542 err = ovl_set_attr(temp, &c->stat); in ovl_copy_up_inode()
543 inode_unlock(temp->d_inode); in ovl_copy_up_inode()
584 struct dentry *temp, *upper; in ovl_copy_up_workdir() local
603 temp = ovl_create_temp(c->workdir, &cattr); in ovl_copy_up_workdir()
606 err = PTR_ERR(temp); in ovl_copy_up_workdir()
607 if (IS_ERR(temp)) in ovl_copy_up_workdir()
610 err = ovl_copy_up_inode(c, temp); in ovl_copy_up_workdir()
615 err = ovl_create_index(c->dentry, c->lowerpath.dentry, temp); in ovl_copy_up_workdir()
625 err = ovl_do_rename(wdir, temp, udir, upper, 0); in ovl_copy_up_workdir()
633 ovl_inode_update(inode, temp); in ovl_copy_up_workdir()
642 ovl_cleanup(wdir, temp); in ovl_copy_up_workdir()
643 dput(temp); in ovl_copy_up_workdir()
651 struct dentry *temp, *upper; in ovl_copy_up_tmpfile() local
659 temp = ovl_do_tmpfile(c->workdir, c->stat.mode); in ovl_copy_up_tmpfile()
662 if (IS_ERR(temp)) in ovl_copy_up_tmpfile()
663 return PTR_ERR(temp); in ovl_copy_up_tmpfile()
665 err = ovl_copy_up_inode(c, temp); in ovl_copy_up_tmpfile()
674 err = ovl_do_link(temp, udir, upper); in ovl_copy_up_tmpfile()
684 ovl_inode_update(d_inode(c->dentry), temp); in ovl_copy_up_tmpfile()
689 dput(temp); in ovl_copy_up_tmpfile()