for some reason the tcon used in build_path_from_dentry for that mount point doesn't have the the "IN DFS" flag set so the prefix was not always added even though it is required in this case. Signed-off-by: Aurelien Aptel <aaptel@xxxxxxxx> --- fs/cifs/cifs_dfs_ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index ec9dbbc..141a418 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c @@ -302,7 +302,7 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt) * gives us the latter, so we must adjust the result. */ mnt = ERR_PTR(-ENOMEM); - full_path = build_path_from_dentry(mntpt); + full_path = build_path_from_dentry_optional_prefix(mntpt, 1 /* always use tree name prefix */); if (full_path == NULL) goto cdda_exit; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html