cifs: don't attempt busy-file rename unless it's in same directory
commit6fbe41cd712389ce66b48b04cf675d399c3762c6
authorJeff Layton <jlayton@redhat.com>
Tue, 1 Jun 2010 20:21:01 +0000 (1 16:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:24 +0000 (2 10:29 -0700)
tree4a83ba5b99c1c597b0fd95a404ebede282f7cd3c
parent9fcb9b3b8cf44cdfb2e6ac9b57252b960d7c22ac
cifs: don't attempt busy-file rename unless it's in same directory

commit ed0e3ace576d297a5c7015401db1060bbf677b94 upstream.

Busy-file renames don't actually work across directories, so we need
to limit this code to renames within the same dir.

This fixes the bug detailed here:

    https://bugzilla.redhat.com/show_bug.cgi?id=591938

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