From: Steve Dickson Date: Thu, 29 Jun 2017 15:48:26 +0000 (-0400) Subject: mount: copy the port field into the cloned nfs_server structure. X-Git-Tag: v4.13~219^2~11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=89a6814d9b665b196aa3a102f96b6dc7e8cb669e;p=mirror_ubuntu-artful-kernel.git 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 Signed-off-by: Anna Schumaker --- 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);