Fix cifs_get_root()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 18 Jul 2011 17:50:40 +0000 (13:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 18 Jul 2011 17:51:58 +0000 (13:51 -0400)
commitfec11dd9a0109fe52fd631e5c510778d6cbff6cc
tree2a59d8e2cb0325862740fc24ecb246aa02c8413f
parent0916a5e45fbd2604a303c8cc18e6b2b7c815e4c9
Fix cifs_get_root()

Add missing ->i_mutex, convert to lookup_one_len() instead of
(broken) open-coded analog, cope with getting something like
a//b as relative pathname.  Simplify the hell out of it, while
we are there...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsfs.c