summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-12-10 13:30:53 +0100
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-01-15 16:15:16 +0100
commit6654f8e24668c18bfd30a0430d3d94e8c168d8a1 (patch)
tree20068ed27fb58340a910fb0a15f4044ca2679fff /fs/nfs/nfs4super.c
parentnfs: fold nfs4_remote_fs_type and nfs4_remote_referral_fs_type (diff)
downloadlinux-6654f8e24668c18bfd30a0430d3d94e8c168d8a1.tar.xz
linux-6654f8e24668c18bfd30a0430d3d94e8c168d8a1.zip
nfs: don't bother setting/restoring export_path around do_nfs_root_mount()
nothing in it will be looking at that thing anyway Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs4super.c')
-rw-r--r--fs/nfs/nfs4super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c
index 54dbb4561ccc..8146edf4ce3a 100644
--- a/fs/nfs/nfs4super.c
+++ b/fs/nfs/nfs4super.c
@@ -233,12 +233,10 @@ struct dentry *nfs4_try_mount(int flags, const char *dev_name,
dfprintk(MOUNT, "--> nfs4_try_mount()\n");
export_path = data->nfs_server.export_path;
- data->nfs_server.export_path = "/";
root_mnt = nfs_do_root_mount(
nfs4_create_server(mount_info, &nfs_v4),
flags, mount_info,
data->nfs_server.hostname);
- data->nfs_server.export_path = export_path;
res = nfs_follow_remote_path(root_mnt, export_path);
@@ -271,12 +269,10 @@ static struct dentry *nfs4_referral_mount(struct file_system_type *fs_type,
return ERR_PTR(-ENOMEM);
export_path = data->mnt_path;
- data->mnt_path = "/";
root_mnt = nfs_do_root_mount(
nfs4_create_referral_server(mount_info.cloned,
mount_info.mntfh),
flags, &mount_info, data->hostname);
- data->mnt_path = export_path;
res = nfs_follow_remote_path(root_mnt, export_path);
dprintk("<-- nfs4_referral_mount() = %d%s\n",