Lines Matching refs:old_path
4626 struct path old_path, new_path; in do_linkat() local
4648 error = filename_lookup(olddfd, old, how, &old_path, NULL); in do_linkat()
4659 if (old_path.mnt != new_path.mnt) in do_linkat()
4662 error = may_linkat(idmap, &old_path); in do_linkat()
4665 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
4668 error = vfs_link(old_path.dentry, idmap, new_path.dentry->d_inode, in do_linkat()
4675 path_put(&old_path); in do_linkat()
4680 path_put(&old_path); in do_linkat()
4685 path_put(&old_path); in do_linkat()
4917 struct path old_path, new_path; in do_renameat2() local
4936 error = filename_parentat(olddfd, from, lookup_flags, &old_path, in do_renameat2()
4947 if (old_path.mnt != new_path.mnt) in do_renameat2()
4959 error = mnt_want_write(old_path.mnt); in do_renameat2()
4964 trap = lock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
4966 old_dentry = lookup_one_qstr_excl(&old_last, old_path.dentry, in do_renameat2()
5012 error = security_path_rename(&old_path, old_dentry, in do_renameat2()
5017 rd.old_dir = old_path.dentry->d_inode; in do_renameat2()
5019 rd.old_mnt_idmap = mnt_idmap(old_path.mnt); in do_renameat2()
5031 unlock_rename(new_path.dentry, old_path.dentry); in do_renameat2()
5037 mnt_drop_write(old_path.mnt); in do_renameat2()
5043 path_put(&old_path); in do_renameat2()