From 57f45c30eee35f02adee5d96442e38d6c3884263 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 29 Jun 2017 11:48:26 -0400 Subject: [PATCH] mount: copy the port field into the cloned nfs_server structure. commit 89a6814d9b665b196aa3a102f96b6dc7e8cb669e upstream. 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 [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- fs/nfs/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index d03a40019f9f..4ba011d7da35 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -1018,6 +1018,7 @@ static void nfs_server_copy_userdata(struct nfs_server *target, struct nfs_serve target->acdirmax = source->acdirmax; target->caps = source->caps; target->options = source->options; + target->port = source->port; } static void nfs_server_insert_lists(struct nfs_server *server) -- 2.39.5