cifs: fix unlinking of rename target when server doesn't support open file renames
authorJeff Layton <jlayton@redhat.com>
Wed, 22 Oct 2008 17:57:01 +0000 (13:57 -0400)
committerSteve French <sfrench@us.ibm.com>
Thu, 23 Oct 2008 04:50:17 +0000 (04:50 +0000)
commit8d281efb67463fe8aac8f6e10b31492fc218bf2b
tree72b5642a48725656f2d1edac506ab5d2152de648
parent84210e9120a8c01a14379ba1f9a9b0f963641d94
cifs: fix unlinking of rename target when server doesn't support open file renames

cifs: fix unlinking of rename target when server doesn't support open file renames

The patch to make cifs_rename undoable broke renaming one file on top of
another when the server doesn't support busy file renames. Remove the
code that uses busy file renames to unlink the target file, and just
have it call cifs_unlink. If the rename of the source file fails, then
the unlink won't be undoable, but hopefully that's rare enough that it
won't be a problem.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c