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 char *s, *p; 610 char sep; 611 612 full_path = cifs_build_path_to_root(vol, cifs_sb, 613 cifs_sb_master_tcon(cifs_sb)); 614 if (full_path == NULL) ··· 734 sb->s_flags |= MS_ACTIVE; 735 } 736 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 - 742 if (IS_ERR(root)) 743 goto out_super; 744
··· 609 char *s, *p; 610 char sep; 611 612 + if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_USE_PREFIX_PATH) 613 + return dget(sb->s_root); 614 + 615 full_path = cifs_build_path_to_root(vol, cifs_sb, 616 cifs_sb_master_tcon(cifs_sb)); 617 if (full_path == NULL) ··· 731 sb->s_flags |= MS_ACTIVE; 732 } 733 734 + root = cifs_get_root(volume_info, sb); 735 if (IS_ERR(root)) 736 goto out_super; 737