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)
commit00cde8d1382466c1e3f1427039908fdf71afa769
tree2a59d8e2cb0325862740fc24ecb246aa02c8413f
parentfa07ce68becd6c733f97296868a95c1838bb8861
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