Lines Matching refs:new
74 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
205 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local
207 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match()
208 orig->ek_client != new->ek_client || in expkey_match()
209 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
217 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local
221 new->ek_client = item->ek_client; in expkey_init()
222 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
224 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
230 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update() local
233 new->ek_path = item->ek_path; in expkey_update()
300 svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, in svc_expkey_update() argument
304 int hash = svc_expkey_hash(new); in svc_expkey_update()
306 ch = sunrpc_cache_update(cd, &new->h, &old->h, hash); in svc_expkey_update()
385 static struct svc_export *svc_export_update(struct svc_export *new,
779 struct svc_export *new = container_of(b, struct svc_export, h); in svc_export_match() local
780 return orig->ex_client == new->ex_client && in svc_export_match()
781 path_equal(&orig->ex_path, &new->ex_path); in svc_export_match()
786 struct svc_export *new = container_of(cnew, struct svc_export, h); in svc_export_init() local
790 new->ex_client = item->ex_client; in svc_export_init()
791 new->ex_path = item->ex_path; in svc_export_init()
793 new->ex_fslocs.locations = NULL; in svc_export_init()
794 new->ex_fslocs.locations_count = 0; in svc_export_init()
795 new->ex_fslocs.migrated = 0; in svc_export_init()
796 new->ex_layout_types = 0; in svc_export_init()
797 new->ex_uuid = NULL; in svc_export_init()
798 new->cd = item->cd; in svc_export_init()
799 export_stats_reset(&new->ex_stats); in svc_export_init()
804 struct svc_export *new = container_of(cnew, struct svc_export, h); in export_update() local
808 new->ex_flags = item->ex_flags; in export_update()
809 new->ex_anon_uid = item->ex_anon_uid; in export_update()
810 new->ex_anon_gid = item->ex_anon_gid; in export_update()
811 new->ex_fsid = item->ex_fsid; in export_update()
812 new->ex_devid_map = item->ex_devid_map; in export_update()
814 new->ex_uuid = item->ex_uuid; in export_update()
816 new->ex_fslocs.locations = item->ex_fslocs.locations; in export_update()
818 new->ex_fslocs.locations_count = item->ex_fslocs.locations_count; in export_update()
820 new->ex_fslocs.migrated = item->ex_fslocs.migrated; in export_update()
822 new->ex_layout_types = item->ex_layout_types; in export_update()
823 new->ex_nflavors = item->ex_nflavors; in export_update()
825 new->ex_flavors[i] = item->ex_flavors[i]; in export_update()
883 svc_export_update(struct svc_export *new, struct svc_export *old) in svc_export_update() argument
888 ch = sunrpc_cache_update(old->cd, &new->h, &old->h, hash); in svc_export_update()