Lines Matching refs:ln
90 static struct rpc_clnt *nsm_client_set(struct lockd_net *ln, in nsm_client_set() argument
93 spin_lock(&ln->nsm_clnt_lock); in nsm_client_set()
94 if (ln->nsm_users == 0) { in nsm_client_set()
97 ln->nsm_clnt = clnt; in nsm_client_set()
99 clnt = ln->nsm_clnt; in nsm_client_set()
100 ln->nsm_users++; in nsm_client_set()
102 spin_unlock(&ln->nsm_clnt_lock); in nsm_client_set()
109 struct lockd_net *ln = net_generic(net, lockd_net_id); in nsm_client_get() local
111 clnt = nsm_client_set(ln, NULL); in nsm_client_get()
119 clnt = nsm_client_set(ln, new); in nsm_client_get()
128 struct lockd_net *ln = net_generic(net, lockd_net_id); in nsm_client_put() local
131 spin_lock(&ln->nsm_clnt_lock); in nsm_client_put()
132 ln->nsm_users--; in nsm_client_put()
133 if (ln->nsm_users == 0) { in nsm_client_put()
134 clnt = ln->nsm_clnt; in nsm_client_put()
135 ln->nsm_clnt = NULL; in nsm_client_put()
137 spin_unlock(&ln->nsm_clnt_lock); in nsm_client_put()
250 struct lockd_net *ln = net_generic(host->net, lockd_net_id); in nsm_unmonitor() local
254 status = nsm_mon_unmon(nsm, NSMPROC_UNMON, &res, ln->nsm_clnt); in nsm_unmonitor()