aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/client.c2
-rw-r--r--fs/nfs/nfs4proc.c12
-rw-r--r--fs/nfs/super.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 471fc9b927a9..39db1beb92f8 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -238,6 +238,7 @@ static void nfs4_shutdown_client(struct nfs_client *clp)
238 238
239 rpc_destroy_wait_queue(&clp->cl_rpcwaitq); 239 rpc_destroy_wait_queue(&clp->cl_rpcwaitq);
240 kfree(clp->cl_serverscope); 240 kfree(clp->cl_serverscope);
241 kfree(clp->cl_implid);
241} 242}
242 243
243/* idr_remove_all is not needed as all id's are removed by nfs_put_client */ 244/* idr_remove_all is not needed as all id's are removed by nfs_put_client */
@@ -306,7 +307,6 @@ static void nfs_free_client(struct nfs_client *clp)
306 307
307 put_net(clp->net); 308 put_net(clp->net);
308 kfree(clp->cl_hostname); 309 kfree(clp->cl_hostname);
309 kfree(clp->impl_id);
310 kfree(clp); 310 kfree(clp);
311 311
312 dprintk("<-- nfs_free_client()\n"); 312 dprintk("<-- nfs_free_client()\n");
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 94494f24bb12..daa4e1b17313 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5119,8 +5119,8 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred)
5119 5119
5120 if (!status) { 5120 if (!status) {
5121 /* use the most recent implementation id */ 5121 /* use the most recent implementation id */
5122 kfree(clp->impl_id); 5122 kfree(clp->cl_implid);
5123 clp->impl_id = res.impl_id; 5123 clp->cl_implid = res.impl_id;
5124 } else 5124 } else
5125 kfree(res.impl_id); 5125 kfree(res.impl_id);
5126 5126
@@ -5144,12 +5144,12 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred)
5144out_server_scope: 5144out_server_scope:
5145 kfree(res.server_scope); 5145 kfree(res.server_scope);
5146out: 5146out:
5147 if (clp->impl_id) 5147 if (clp->cl_implid)
5148 dprintk("%s: Server Implementation ID: " 5148 dprintk("%s: Server Implementation ID: "
5149 "domain: %s, name: %s, date: %llu,%u\n", 5149 "domain: %s, name: %s, date: %llu,%u\n",
5150 __func__, clp->impl_id->domain, clp->impl_id->name, 5150 __func__, clp->cl_implid->domain, clp->cl_implid->name,
5151 clp->impl_id->date.seconds, 5151 clp->cl_implid->date.seconds,
5152 clp->impl_id->date.nseconds); 5152 clp->cl_implid->date.nseconds);
5153 dprintk("<-- %s status= %d\n", __func__, status); 5153 dprintk("<-- %s status= %d\n", __func__, status);
5154 return status; 5154 return status;
5155} 5155}
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index a973eb101a92..ff656c022684 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -796,8 +796,8 @@ static void show_pnfs(struct seq_file *m, struct nfs_server *server)
796 796
797static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss) 797static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss)
798{ 798{
799 if (nfss->nfs_client && nfss->nfs_client->impl_id) { 799 if (nfss->nfs_client && nfss->nfs_client->cl_implid) {
800 struct nfs41_impl_id *impl_id = nfss->nfs_client->impl_id; 800 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid;
801 seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s'," 801 seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s',"
802 "date='%llu,%u'", 802 "date='%llu,%u'",
803 impl_id->name, impl_id->domain, 803 impl_id->name, impl_id->domain,