Lines Matching refs:new_dentry
4460 * @new_dentry: where to create the new link
4482 struct inode *dir, struct dentry *new_dentry,
4492 error = may_create(mnt_userns, dir, new_dentry);
4516 error = security_inode_link(old_dentry, dir, new_dentry);
4529 error = dir->i_op->link(old_dentry, dir, new_dentry);
4539 fsnotify_link(dir, inode, new_dentry);
4557 struct dentry *new_dentry;
4584 new_dentry = filename_create(newdfd, new, &new_path,
4586 error = PTR_ERR(new_dentry);
4587 if (IS_ERR(new_dentry))
4597 error = security_path_link(old_path.dentry, &new_path, new_dentry);
4601 new_dentry, &delegated_inode);
4603 done_path_create(&new_path, new_dentry);
4687 struct dentry *new_dentry = rd->new_dentry;
4692 struct inode *target = new_dentry->d_inode;
4705 error = may_create(rd->new_mnt_userns, new_dir, new_dentry);
4707 new_is_dir = d_is_dir(new_dentry);
4711 new_dentry, is_dir);
4714 new_dentry, new_is_dir);
4741 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry,
4747 dget(new_dentry);
4758 if (is_local_mountpoint(old_dentry) || is_local_mountpoint(new_dentry))
4780 new_dir, new_dentry, flags);
4786 shrink_dcache_parent(new_dentry);
4789 dont_mount(new_dentry);
4790 detach_mounts(new_dentry);
4794 d_move(old_dentry, new_dentry);
4796 d_exchange(old_dentry, new_dentry);
4803 dput(new_dentry);
4809 new_is_dir, NULL, new_dentry);
4822 struct dentry *old_dentry, *new_dentry;
4881 new_dentry = __lookup_hash(&new_last, new_path.dentry, lookup_flags | target_flags);
4882 error = PTR_ERR(new_dentry);
4883 if (IS_ERR(new_dentry))
4886 if ((flags & RENAME_NOREPLACE) && d_is_positive(new_dentry))
4890 if (d_is_negative(new_dentry))
4893 if (!d_is_dir(new_dentry)) {
4914 if (new_dentry == trap)
4918 &new_path, new_dentry, flags);
4926 rd.new_dentry = new_dentry;
4932 dput(new_dentry);