Lines Matching refs:old_dentry
775 * @old_dentry: dentry of an object to be renamed.
783 * This function will return a pointer to old_dentry (which is updated to
790 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
801 if (IS_ERR_OR_NULL(old_dentry))
802 return old_dentry;
809 if (d_really_is_negative(old_dentry) || old_dentry == trap ||
810 d_mountpoint(old_dentry))
817 take_dentry_name_snapshot(&old_name, old_dentry);
819 error = simple_rename(d_inode(old_dir), old_dentry, d_inode(new_dir),
825 d_move(old_dentry, dentry);
827 d_is_dir(old_dentry),
828 NULL, old_dentry);
832 return old_dentry;