]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:27 +0000 (10:26 -0700)
commite25e90d738f0094bddc1f859237ee34d1e01a839
treebcac9e83133e8250fa91a7da13370414751e33b0
parent56c3c8412e8aa1b0b2a515824c341fa691731440
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