Move check for prefix path to within cifs_get_root()

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Tested-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>

authored by Sachin Prabhu and committed by Steve French 348c1bfa c1d8b24d

+4 -5
+4 -5
fs/cifs/cifsfs.c
··· 609 609 char *s, *p; 610 610 char sep; 611 611 612 + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) 613 + return dget(sb->s_root); 614 + 612 615 full_path = cifs_build_path_to_root(vol, cifs_sb, 613 616 cifs_sb_master_tcon(cifs_sb)); 614 617 if (full_path == NULL) ··· 734 731 sb->s_flags |= MS_ACTIVE; 735 732 } 736 733 737 - if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) 738 - root = dget(sb->s_root); 739 - else 740 - root = cifs_get_root(volume_info, sb); 741 - 734 + root = cifs_get_root(volume_info, sb); 742 735 if (IS_ERR(root)) 743 736 goto out_super; 744 737