cifs: eliminate redundant xdev check in cifs_rename
authorJeff Layton <jlayton@redhat.com>
Fri, 3 Sep 2010 15:50:09 +0000 (11:50 -0400)
committerSteve French <sfrench@us.ibm.com>
Wed, 8 Sep 2010 21:13:16 +0000 (21:13 +0000)
commit639e7a913d81f918bfbf506e6ecd54664f787cbd
tree2b786056d9c5db228b8d0a75943ff8a2bdb3b01a
parentc8e56f1f4fb9f82f63e4ce6d73a14501d0432c76
cifs: eliminate redundant xdev check in cifs_rename

The VFS always checks that the source and target of a rename are on the
same vfsmount, and hence have the same superblock. So, this check is
redundant. Remove it and simplify the error handling.

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