smb: client: fix renaming of reparse points
[platform/kernel/linux-rpi.git] / fs / smb / client / inode.c
index 09c5c0f..eb54e48 100644 (file)
@@ -2219,7 +2219,8 @@ cifs_do_rename(const unsigned int xid, struct dentry *from_dentry,
                return -ENOSYS;
 
        /* try path-based rename first */
-       rc = server->ops->rename(xid, tcon, from_path, to_path, cifs_sb);
+       rc = server->ops->rename(xid, tcon, from_dentry,
+                                from_path, to_path, cifs_sb);
 
        /*
         * Don't bother with rename by filehandle unless file is busy and