Lines Matching refs:item
206 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_init() local
208 kref_get(&item->ek_client->ref); in expkey_init()
209 new->ek_client = item->ek_client; in expkey_init()
210 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
212 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
219 struct svc_expkey *item = container_of(citem, struct svc_expkey, h); in expkey_update() local
221 new->ek_path = item->ek_path; in expkey_update()
222 path_get(&item->ek_path); in expkey_update()
249 svc_expkey_hash(struct svc_expkey *item) in svc_expkey_hash() argument
251 int hash = item->ek_fsidtype; in svc_expkey_hash()
252 char * cp = (char*)item->ek_fsid; in svc_expkey_hash()
253 int len = key_len(item->ek_fsidtype); in svc_expkey_hash()
256 hash ^= hash_ptr(item->ek_client, EXPKEY_HASHBITS); in svc_expkey_hash()
262 svc_expkey_lookup(struct cache_detail *cd, struct svc_expkey *item) in svc_expkey_lookup() argument
265 int hash = svc_expkey_hash(item); in svc_expkey_lookup()
267 ch = sunrpc_cache_lookup(cd, &item->h, hash); in svc_expkey_lookup()
700 struct svc_export *item = container_of(citem, struct svc_export, h); in svc_export_init() local
702 kref_get(&item->ex_client->ref); in svc_export_init()
703 new->ex_client = item->ex_client; in svc_export_init()
704 new->ex_path = item->ex_path; in svc_export_init()
705 path_get(&item->ex_path); in svc_export_init()
711 new->cd = item->cd; in svc_export_init()
717 struct svc_export *item = container_of(citem, struct svc_export, h); in export_update() local
720 new->ex_flags = item->ex_flags; in export_update()
721 new->ex_anon_uid = item->ex_anon_uid; in export_update()
722 new->ex_anon_gid = item->ex_anon_gid; in export_update()
723 new->ex_fsid = item->ex_fsid; in export_update()
724 new->ex_devid_map = item->ex_devid_map; in export_update()
725 item->ex_devid_map = NULL; in export_update()
726 new->ex_uuid = item->ex_uuid; in export_update()
727 item->ex_uuid = NULL; in export_update()
728 new->ex_fslocs.locations = item->ex_fslocs.locations; in export_update()
729 item->ex_fslocs.locations = NULL; in export_update()
730 new->ex_fslocs.locations_count = item->ex_fslocs.locations_count; in export_update()
731 item->ex_fslocs.locations_count = 0; in export_update()
732 new->ex_fslocs.migrated = item->ex_fslocs.migrated; in export_update()
733 item->ex_fslocs.migrated = 0; in export_update()
734 new->ex_layout_type = item->ex_layout_type; in export_update()
735 new->ex_nflavors = item->ex_nflavors; in export_update()
737 new->ex_flavors[i] = item->ex_flavors[i]; in export_update()