Lines Matching refs:fsloc

317 static void nfsd4_fslocs_free(struct nfsd4_fs_locations *fsloc)  in nfsd4_fslocs_free()  argument
319 struct nfsd4_fs_location *locations = fsloc->locations; in nfsd4_fslocs_free()
325 for (i = 0; i < fsloc->locations_count; i++) { in nfsd4_fslocs_free()
331 fsloc->locations = NULL; in nfsd4_fslocs_free()
447 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc) in fsloc_parse() argument
453 if (fsloc->locations) in fsloc_parse()
457 err = get_uint(mesg, &fsloc->locations_count); in fsloc_parse()
460 if (fsloc->locations_count > MAX_FS_LOCATIONS) in fsloc_parse()
462 if (fsloc->locations_count == 0) in fsloc_parse()
465 fsloc->locations = kcalloc(fsloc->locations_count, in fsloc_parse()
468 if (!fsloc->locations) in fsloc_parse()
470 for (i=0; i < fsloc->locations_count; i++) { in fsloc_parse()
477 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
478 if (!fsloc->locations[i].hosts) in fsloc_parse()
486 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
487 if (!fsloc->locations[i].path) in fsloc_parse()
497 fsloc->migrated = migrated; in fsloc_parse()
500 nfsd4_fslocs_free(fsloc); in fsloc_parse()
543 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc){return 0;} in fsloc_parse() argument
1309 kuid_t anonu, kgid_t anong, struct nfsd4_fs_locations *fsloc) in exp_flags() argument
1322 if (fsloc && fsloc->locations_count > 0) { in exp_flags()
1323 char *loctype = (fsloc->migrated) ? "refer" : "replicas"; in exp_flags()
1327 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1329 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1330 for (i = 1; i < fsloc->locations_count; i++) { in exp_flags()
1332 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1334 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()