Lines Matching defs:old_dentry

3855  * On success the found dentries are stored in @rd.old_dentry,
3909 rd->old_dentry = d1;
3935 * On success the found dentries are stored in @rd.old_dentry,
3961 struct dentry *old_dentry, struct qstr *new_last)
3974 trap = lock_rename_child(old_dentry, rd->new_parent);
3977 if (d_unhashed(old_dentry) ||
3978 (rd->old_parent && rd->old_parent != old_dentry->d_parent)) {
3990 if (old_dentry == trap) {
4005 rd->old_dentry = dget(old_dentry);
4007 rd->old_parent = dget(old_dentry->d_parent);
4013 unlock_rename(old_dentry->d_parent, rd->new_parent);
4023 * @old_dentry: dentry of name to move
4030 * @rd.old_parent is confirmed to be the parent of @old_dentry. If it
4042 struct dentry *old_dentry, struct qstr *new_last)
4049 return __start_renaming_dentry(rd, lookup_flags, old_dentry, new_last);
4056 * @old_dentry: dentry of name to move
4061 * On success the two dentries are stored in @rd.old_dentry and
4071 struct dentry *old_dentry, struct dentry *new_dentry)
4077 trap = lock_rename_child(old_dentry, rd->new_parent);
4081 if (d_unhashed(old_dentry) ||
4082 (rd->old_parent && rd->old_parent != old_dentry->d_parent))
4083 /* old_dentry was removed, or moved and explicit parent requested */
4090 if (old_dentry == trap)
4107 rd->old_dentry = dget(old_dentry);
4109 rd->old_parent = dget(old_dentry->d_parent);
4113 unlock_rename(old_dentry->d_parent, rd->new_parent);
4121 dput(rd->old_dentry);
5713 * @old_dentry: object to be linked
5737 int vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap,
5741 struct inode *inode = old_dentry->d_inode;
5772 error = security_inode_link(old_dentry, dir, new_dentry);
5787 error = dir->i_op->link(old_dentry, dir, new_dentry);
5942 struct dentry *old_dentry = rd->old_dentry;
5946 bool is_dir = d_is_dir(old_dentry);
5947 struct inode *source = old_dentry->d_inode;
5957 error = may_delete_dentry(rd->mnt_idmap, old_dir, old_dentry, is_dir);
5998 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry,
6003 take_dentry_name_snapshot(&old_name, old_dentry);
6038 if (is_local_mountpoint(old_dentry) || is_local_mountpoint(new_dentry))
6070 error = old_dir->i_op->rename(rd->mnt_idmap, old_dir, old_dentry,
6085 d_move(old_dentry, new_dentry);
6087 d_exchange(old_dentry, new_dentry);
6097 !(flags & RENAME_EXCHANGE) ? target : NULL, old_dentry);
6099 fsnotify_move(new_dir, old_dir, &old_dentry->d_name,
6175 if (!d_is_dir(rd.old_dentry)) {
6183 error = security_path_rename(&old_path, rd.old_dentry,