Lines Matching defs:old_dentry
1091 * @old_dentry: File or directory requested to be moved or linked.
1136 * Return: 0 if access is allowed, -EXDEV if @old_dentry would inherit new
1140 static int current_check_refer_path(struct dentry *const old_dentry,
1157 if (unlikely(d_is_negative(old_dentry)))
1168 get_mode_access(d_backing_inode(old_dentry)->i_mode);
1170 access_request_parent1 |= maybe_remove(old_dentry);
1175 if (old_dentry->d_parent == new_dir->dentry) {
1202 * old_dentry may be the root of the common mount point and
1203 * !IS_ROOT(old_dentry) at the same time (e.g. with open_tree() and
1205 * we keep a reference to old_dentry.
1207 old_parent = (old_dentry == mnt_dir.dentry) ? old_dentry :
1208 old_dentry->d_parent;
1222 * take into account the @old_dentry access rights aggregated with its
1228 &layer_masks_parent1, &request1, old_dentry,
1518 static int hook_path_link(struct dentry *const old_dentry,
1522 return current_check_refer_path(old_dentry, new_dir, new_dentry, false,
1527 struct dentry *const old_dentry,
1532 /* old_dir refers to old_dentry->d_parent and new_dir->mnt */
1533 return current_check_refer_path(old_dentry, new_dir, new_dentry, true,