]> 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:20:43 +0000 (10:20 -0700)
commita37ac8821fce9eba8c0e3bd7d4b40c3d2cbd231f
treeacbbd05b57b3d82b5882859bf9ef8c76eab2413c
parent1a6102ef77e64f6011185abef849bde8dc83be7e
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