|
@@ -728,12 +728,12 @@ static const struct inode_operations cifs_ipc_inode_ops = {
|
|
|
.lookup = cifs_lookup,
|
|
|
};
|
|
|
|
|
|
-char *cifs_build_path_to_root(struct cifs_sb_info *cifs_sb)
|
|
|
+char *cifs_build_path_to_root(struct cifs_sb_info *cifs_sb,
|
|
|
+ struct cifsTconInfo *tcon)
|
|
|
{
|
|
|
int pplen = cifs_sb->prepathlen;
|
|
|
int dfsplen;
|
|
|
char *full_path = NULL;
|
|
|
- struct cifsTconInfo *tcon = cifs_sb_master_tcon(cifs_sb);
|
|
|
|
|
|
/* if no prefix path, simply set path to the root of share to "" */
|
|
|
if (pplen == 0) {
|
|
@@ -875,7 +875,7 @@ struct inode *cifs_root_iget(struct super_block *sb, unsigned long ino)
|
|
|
char *full_path;
|
|
|
struct cifsTconInfo *tcon = cifs_sb_master_tcon(cifs_sb);
|
|
|
|
|
|
- full_path = cifs_build_path_to_root(cifs_sb);
|
|
|
+ full_path = cifs_build_path_to_root(cifs_sb, tcon);
|
|
|
if (full_path == NULL)
|
|
|
return ERR_PTR(-ENOMEM);
|
|
|
|