Lines Matching refs:new_dentry
4213 …unt *mnt, struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **… in vfs_link2() argument
4222 error = may_create(mnt, dir, new_dentry); in vfs_link2()
4246 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link2()
4259 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link2()
4269 fsnotify_link(dir, inode, new_dentry); in vfs_link2()
4274 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode … in vfs_link() argument
4276 return vfs_link2(NULL, old_dentry, dir, new_dentry, delegated_inode); in vfs_link()
4292 struct dentry *new_dentry; in SYSCALL_DEFINE5() local
4318 new_dentry = user_path_create(newdfd, newname, &new_path, in SYSCALL_DEFINE5()
4320 error = PTR_ERR(new_dentry); in SYSCALL_DEFINE5()
4321 if (IS_ERR(new_dentry)) in SYSCALL_DEFINE5()
4330 error = security_path_link(old_path.dentry, &new_path, new_dentry); in SYSCALL_DEFINE5()
4333 …error = vfs_link2(old_path.mnt, old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_… in SYSCALL_DEFINE5()
4335 done_path_create(&new_path, new_dentry); in SYSCALL_DEFINE5()
4410 struct inode *new_dir, struct dentry *new_dentry, in vfs_rename2() argument
4416 struct inode *target = new_dentry->d_inode; in vfs_rename2()
4425 if (d_real_inode(old_dentry) == d_real_inode(new_dentry)) in vfs_rename2()
4433 error = may_create(mnt, new_dir, new_dentry); in vfs_rename2()
4435 new_is_dir = d_is_dir(new_dentry); in vfs_rename2()
4438 error = may_delete(mnt, new_dir, new_dentry, is_dir); in vfs_rename2()
4440 error = may_delete(mnt, new_dir, new_dentry, new_is_dir); in vfs_rename2()
4465 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry, in vfs_rename2()
4471 dget(new_dentry); in vfs_rename2()
4478 if (is_local_mountpoint(old_dentry) || is_local_mountpoint(new_dentry)) in vfs_rename2()
4490 shrink_dcache_parent(new_dentry); in vfs_rename2()
4502 new_dir, new_dentry, flags); in vfs_rename2()
4509 dont_mount(new_dentry); in vfs_rename2()
4510 detach_mounts(new_dentry); in vfs_rename2()
4514 d_move(old_dentry, new_dentry); in vfs_rename2()
4516 d_exchange(old_dentry, new_dentry); in vfs_rename2()
4523 dput(new_dentry); in vfs_rename2()
4529 new_is_dir, NULL, new_dentry); in vfs_rename2()
4539 struct inode *new_dir, struct dentry *new_dentry, in vfs_rename() argument
4542 return vfs_rename2(NULL, old_dir, old_dentry, new_dir, new_dentry, delegated_inode, flags); in vfs_rename()
4549 struct dentry *old_dentry, *new_dentry; in SYSCALL_DEFINE5() local
4617 new_dentry = __lookup_hash(&new_last, new_path.dentry, lookup_flags | target_flags); in SYSCALL_DEFINE5()
4618 error = PTR_ERR(new_dentry); in SYSCALL_DEFINE5()
4619 if (IS_ERR(new_dentry)) in SYSCALL_DEFINE5()
4622 if ((flags & RENAME_NOREPLACE) && d_is_positive(new_dentry)) in SYSCALL_DEFINE5()
4626 if (d_is_negative(new_dentry)) in SYSCALL_DEFINE5()
4629 if (!d_is_dir(new_dentry)) { in SYSCALL_DEFINE5()
4650 if (new_dentry == trap) in SYSCALL_DEFINE5()
4654 &new_path, new_dentry, flags); in SYSCALL_DEFINE5()
4658 new_path.dentry->d_inode, new_dentry, in SYSCALL_DEFINE5()
4661 dput(new_dentry); in SYSCALL_DEFINE5()