Lines Matching refs:ipm
167 static int ip_map_update(struct ip_map *ipm, struct unix_domain *udom, time_t expiry);
299 static int ip_map_update(struct ip_map *ipm, struct unix_domain *udom, time_t expiry)
318 &ip.h, &ipm->h,
319 hash_str(ipm->m_class, IP_HASHBITS) ^
320 hash_ip(ipm->m_addr.s_addr));
356 struct ip_map *ipm;
359 ipm = ip_map_lookup("nfsd", addr);
361 if (!ipm)
363 if (cache_check(&ip_map_cache, &ipm->h, NULL))
366 if ((ipm->m_client->addr_changes - ipm->m_add_change) >0) {
367 if (test_and_set_bit(CACHE_NEGATIVE, &ipm->h.flags) == 0)
368 auth_domain_put(&ipm->m_client->h);
371 rv = &ipm->m_client->h;
374 cache_put(&ipm->h, &ip_map_cache);
386 struct ip_map *ipm;
389 ipm = svsk->sk_info_authunix;
390 if (ipm != NULL) {
391 if (!cache_valid(&ipm->h)) {
399 cache_put(&ipm->h, &ip_map_cache);
402 cache_get(&ipm->h);
405 return ipm;
409 ip_map_cached_put(struct svc_rqst *rqstp, struct ip_map *ipm)
417 svsk->sk_info_authunix = ipm;
418 ipm = NULL;
421 if (ipm)
422 cache_put(&ipm->h, &ip_map_cache);
428 struct ip_map *ipm = info;
429 cache_put(&ipm->h, &ip_map_cache);
644 struct ip_map *ipm;
650 ipm = ip_map_cached_get(rqstp);
651 if (ipm == NULL)
652 ipm = ip_map_lookup(rqstp->rq_server->sv_program->pg_class,
655 if (ipm == NULL)
658 switch (cache_check(&ip_map_cache, &ipm->h, &rqstp->rq_chandle)) {
667 rqstp->rq_client = &ipm->m_client->h;
669 ip_map_cached_put(rqstp, ipm);