Lines Matching refs:fsloc

292 static void nfsd4_fslocs_free(struct nfsd4_fs_locations *fsloc)  in nfsd4_fslocs_free()  argument
294 struct nfsd4_fs_location *locations = fsloc->locations; in nfsd4_fslocs_free()
300 for (i = 0; i < fsloc->locations_count; i++) { in nfsd4_fslocs_free()
306 fsloc->locations = NULL; in nfsd4_fslocs_free()
388 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc) in fsloc_parse() argument
394 if (fsloc->locations) in fsloc_parse()
398 err = get_uint(mesg, &fsloc->locations_count); in fsloc_parse()
401 if (fsloc->locations_count > MAX_FS_LOCATIONS) in fsloc_parse()
403 if (fsloc->locations_count == 0) in fsloc_parse()
406 fsloc->locations = kzalloc(fsloc->locations_count in fsloc_parse()
408 if (!fsloc->locations) in fsloc_parse()
410 for (i=0; i < fsloc->locations_count; i++) { in fsloc_parse()
417 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
418 if (!fsloc->locations[i].hosts) in fsloc_parse()
426 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
427 if (!fsloc->locations[i].path) in fsloc_parse()
437 fsloc->migrated = migrated; in fsloc_parse()
440 nfsd4_fslocs_free(fsloc); in fsloc_parse()
483 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc){return 0;} in fsloc_parse() argument
1158 kuid_t anonu, kgid_t anong, struct nfsd4_fs_locations *fsloc) in exp_flags() argument
1169 if (fsloc && fsloc->locations_count > 0) { in exp_flags()
1170 char *loctype = (fsloc->migrated) ? "refer" : "replicas"; in exp_flags()
1174 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1176 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1177 for (i = 1; i < fsloc->locations_count; i++) { in exp_flags()
1179 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1181 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()