Lines Matching refs:old_dir
3777 struct inode *old_dir, struct dentry *old_dentry,
3788 if (new_dir != old_dir) {
3794 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry);
3807 if (max_links && !target && new_dir != old_dir &&
3813 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry);
3826 if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE))
3831 static int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry,
3837 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry);
3849 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry);
3855 if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE))
3865 struct inode *old_dir, struct dentry *old_dentry,
3875 error = may_delete(mnt, old_dir, old_dentry, is_dir);
3886 if (!old_dir->i_op->rename)
3892 error = vfs_rename_dir(mnt, old_dir,old_dentry,new_dir,new_dentry);
3894 error = vfs_rename_other(old_dir,old_dentry,new_dir,new_dentry);
3896 fsnotify_move(old_dir, new_dir, old_name, is_dir,
3904 int vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
3907 return vfs_rename2(NULL, old_dir, old_dentry, new_dir, new_dentry);
3914 struct dentry *old_dir, *new_dir;
3940 old_dir = oldnd.path.dentry;
3957 trap = lock_rename(new_dir, old_dir);
3992 error = vfs_rename2(oldnd.path.mnt, old_dir->d_inode, old_dentry,
3999 unlock_rename(new_dir, old_dir);