aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 9d33fb22f287..9bad4e753066 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2418,7 +2418,7 @@ static struct dentry *nfs_fs_mount_common(struct file_system_type *fs_type,
2418 sb_mntdata.mntflags |= MS_SYNCHRONOUS; 2418 sb_mntdata.mntflags |= MS_SYNCHRONOUS;
2419 2419
2420 /* Get a superblock - note that we may end up sharing one that already exists */ 2420 /* Get a superblock - note that we may end up sharing one that already exists */
2421 s = sget(fs_type, compare_super, nfs_set_super, &sb_mntdata); 2421 s = sget(fs_type, compare_super, nfs_set_super, flags, &sb_mntdata);
2422 if (IS_ERR(s)) { 2422 if (IS_ERR(s)) {
2423 mntroot = ERR_CAST(s); 2423 mntroot = ERR_CAST(s);
2424 goto out_err_nosb; 2424 goto out_err_nosb;
@@ -2859,6 +2859,8 @@ static struct dentry *nfs4_try_mount(int flags, const char *dev_name,
2859 2859
2860 dfprintk(MOUNT, "--> nfs4_try_mount()\n"); 2860 dfprintk(MOUNT, "--> nfs4_try_mount()\n");
2861 2861
2862 mount_info->fill_super = nfs4_fill_super;
2863
2862 export_path = data->nfs_server.export_path; 2864 export_path = data->nfs_server.export_path;
2863 data->nfs_server.export_path = "/"; 2865 data->nfs_server.export_path = "/";
2864 root_mnt = nfs_do_root_mount(&nfs4_remote_fs_type, flags, mount_info, 2866 root_mnt = nfs_do_root_mount(&nfs4_remote_fs_type, flags, mount_info,