summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2017-06-29 18:48:26 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-19 22:28:21 +0300
commit89a6814d9b665b196aa3a102f96b6dc7e8cb669e (patch)
tree6267a666424bb7b21186fe383f7bbbfc364861e1 /fs/nfs
parent301bfa483016d48b7fb9cbad87c0a04a15c25b90 (diff)
downloadlinux-89a6814d9b665b196aa3a102f96b6dc7e8cb669e.tar.xz
mount: copy the port field into the cloned nfs_server structure.
Doing this copy eliminates the "port=0" entry in the /proc/mounts entries Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=69241 Signed-off-by: Steve Dickson <steved@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index ee5ddbd36088..efebe6cf4378 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -820,6 +820,7 @@ void nfs_server_copy_userdata(struct nfs_server *target, struct nfs_server *sour
target->caps = source->caps;
target->options = source->options;
target->auth_info = source->auth_info;
+ target->port = source->port;
}
EXPORT_SYMBOL_GPL(nfs_server_copy_userdata);