aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSean Finney <seanius@seanius.net>2011-04-11 09:19:35 -0400
committerSteve French <sfrench@us.ibm.com>2011-05-19 10:10:55 -0400
commitf14bcf71d1b802f6042b6c70a0c37120e47a0876 (patch)
tree9852d20c31ec19caaccec30a0b06b89542681ac7 /fs/cifs/connect.c
parent5167f11ec962690ecf926fab00f1d0524cd78664 (diff)
cifs: Unconditionally copy mount options to superblock info
Previously mount options were copied and updated in the cifs_sb_info struct only when CONFIG_CIFS_DFS_UPCALL was enabled. Making this information generally available allows us to remove a number of ifdefs, extra function params, and temporary variables. Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Sean Finney <seanius@seanius.net> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 3e20831119a9..da284e3cb653 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2842,7 +2842,7 @@ expand_dfs_referral(int xid, struct cifsSesInfo *pSesInfo,
2842 2842
2843int 2843int
2844cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, 2844cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
2845 char *mount_data_global, const char *devname) 2845 const char *devname)
2846{ 2846{
2847 int rc; 2847 int rc;
2848 int xid; 2848 int xid;
@@ -2851,13 +2851,10 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
2851 struct cifsTconInfo *tcon; 2851 struct cifsTconInfo *tcon;
2852 struct TCP_Server_Info *srvTcp; 2852 struct TCP_Server_Info *srvTcp;
2853 char *full_path; 2853 char *full_path;
2854 char *mount_data = mount_data_global;
2855 struct tcon_link *tlink; 2854 struct tcon_link *tlink;
2856#ifdef CONFIG_CIFS_DFS_UPCALL 2855#ifdef CONFIG_CIFS_DFS_UPCALL
2857 int referral_walks_count = 0; 2856 int referral_walks_count = 0;
2858try_mount_again: 2857try_mount_again:
2859 mount_data = cifs_sb->mountdata;
2860
2861 /* cleanup activities if we're chasing a referral */ 2858 /* cleanup activities if we're chasing a referral */
2862 if (referral_walks_count) { 2859 if (referral_walks_count) {
2863 if (tcon) 2860 if (tcon)
@@ -2884,7 +2881,8 @@ try_mount_again:
2884 goto out; 2881 goto out;
2885 } 2882 }
2886 2883
2887 if (cifs_parse_mount_options(mount_data, devname, volume_info)) { 2884 if (cifs_parse_mount_options(cifs_sb->mountdata, devname,
2885 volume_info)) {
2888 rc = -EINVAL; 2886 rc = -EINVAL;
2889 goto out; 2887 goto out;
2890 } 2888 }