linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / fs / lockd / mon.c
index a9f0828..0edc03e 100644 (file)
@@ -19,7 +19,7 @@
 
 static struct rpc_clnt *       nsm_create(void);
 
-extern struct rpc_program      nsm_program;
+static struct rpc_program      nsm_program;
 
 /*
  * Local NSM state
@@ -115,20 +115,18 @@ nsm_create(void)
        xprt = xprt_create_proto(IPPROTO_UDP, &sin, NULL);
        if (IS_ERR(xprt))
                return (struct rpc_clnt *)xprt;
+       xprt->resvport = 1;     /* NSM requires a reserved port */
 
        clnt = rpc_create_client(xprt, "localhost",
                                &nsm_program, SM_VERSION,
                                RPC_AUTH_NULL);
        if (IS_ERR(clnt))
-               goto out_destroy;
+               goto out_err;
        clnt->cl_softrtry = 1;
-       clnt->cl_chatty   = 1;
        clnt->cl_oneshot  = 1;
-       xprt->resvport = 1;     /* NSM requires a reserved port */
        return clnt;
 
-out_destroy:
-       xprt_destroy(xprt);
+out_err:
        return clnt;
 }
 
@@ -237,7 +235,7 @@ static struct rpc_version * nsm_version[] = {
 
 static struct rpc_stat         nsm_stats;
 
-struct rpc_program             nsm_program = {
+static struct rpc_program      nsm_program = {
                .name           = "statd",
                .number         = SM_PROGRAM,
                .nrvers         = sizeof(nsm_version)/sizeof(nsm_version[0]),