cifs: don't attempt busy-file rename unless it's in same directory
authorJeff Layton <jlayton@redhat.com>
Tue, 1 Jun 2010 20:21:01 +0000 (16:21 -0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 12 Jun 2010 01:45:36 +0000 (01:45 +0000)
commited0e3ace576d297a5c7015401db1060bbf677b94
tree0e5f0bee1be98a6c8c5c75fbf62c02c438e57df8
parent6c5de280b6683d194ee60cf22dee56eef0b09619
cifs: don't attempt busy-file rename unless it's in same directory

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>
CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c