Lines Matching refs:new
66 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
193 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local
195 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match()
196 orig->ek_client != new->ek_client || in expkey_match()
197 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
205 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local
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()
218 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update() local
221 new->ek_path = item->ek_path; in expkey_update()
275 svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, in svc_expkey_update() argument
279 int hash = svc_expkey_hash(new); in svc_expkey_update()
281 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
338 static struct svc_export *svc_export_update(struct svc_export *new,
692 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match() local
693 return orig->ex_client == new->ex_client && in svc_export_match()
694 path_equal(&orig->ex_path, &new->ex_path); in svc_export_match()
699 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init() local
703 new->ex_client = item->ex_client; in svc_export_init()
704 new->ex_path = item->ex_path; in svc_export_init()
706 new->ex_fslocs.locations = NULL; in svc_export_init()
707 new->ex_fslocs.locations_count = 0; in svc_export_init()
708 new->ex_fslocs.migrated = 0; in svc_export_init()
709 new->ex_layout_type = 0; in svc_export_init()
710 new->ex_uuid = NULL; in svc_export_init()
711 new->cd = item->cd; in svc_export_init()
716 struct svc_export *new = container_of(cnew, 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()
726 new->ex_uuid = item->ex_uuid; in export_update()
728 new->ex_fslocs.locations = item->ex_fslocs.locations; in export_update()
730 new->ex_fslocs.locations_count = item->ex_fslocs.locations_count; in export_update()
732 new->ex_fslocs.migrated = item->ex_fslocs.migrated; 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()
789 svc_export_update(struct svc_export *new, struct svc_export *old) in svc_export_update() argument
794 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()