Lines Matching refs:old_path
4418 struct path old_path, new_path; in do_linkat() local
4439 error = user_path_at(olddfd, oldname, how, &old_path); in do_linkat()
4450 if (old_path.mnt != new_path.mnt) in do_linkat()
4452 error = may_linkat(&old_path); in do_linkat()
4455 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4458 …error = vfs_link2(old_path.mnt, old_path.dentry, new_path.dentry->d_inode, new_dentry, &delegated_… in do_linkat()
4464 path_put(&old_path); in do_linkat()
4469 path_put(&old_path); in do_linkat()
4474 path_put(&old_path); in do_linkat()
4679 struct path old_path, new_path; in do_renameat2() local
4704 &old_path, &old_last, &old_type); in do_renameat2()
4718 if (old_path.mnt != new_path.mnt) in do_renameat2()
4730 error = mnt_want_write(old_path.mnt); in do_renameat2()
4735 trap = lock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
4737 old_dentry = __lookup_hash(&old_last, old_path.dentry, lookup_flags); in do_renameat2()
4781 error = security_path_rename(&old_path, old_dentry, in do_renameat2()
4785 error = vfs_rename2(old_path.mnt, old_path.dentry->d_inode, old_dentry, in do_renameat2()
4793 unlock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
4799 mnt_drop_write(old_path.mnt); in do_renameat2()
4806 path_put(&old_path); in do_renameat2()