cifs: allow calling cifs_build_path_to_root on incomplete cifs_sb
authorJeff Layton <jlayton@redhat.com>
Tue, 7 Dec 2010 07:10:35 +0000 (02:10 -0500)
committerSteve French <sfrench@us.ibm.com>
Tue, 7 Dec 2010 19:25:37 +0000 (19:25 +0000)
commit7d161b7f41e24203b54b0f18ae0d26c18a6c6fab
tree10219d15bed51128f72e2e45fc58947071fed0c9
parent03ceace5c6923ffbcf2b4d2e37afbffbdb5d4a67
cifs: allow calling cifs_build_path_to_root on incomplete cifs_sb

It's possible that cifs_mount will call cifs_build_path_to_root on a
newly instantiated cifs_sb. In that case, it's likely that the
master_tlink pointer has not yet been instantiated.

Fix this by having cifs_build_path_to_root take a cifsTconInfo pointer
as well, and have the caller pass that in.

Reported-and-Tested-by: Robbert Kouprie <robbert@exx.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/inode.c