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()
418 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc) in fsloc_parse() argument
424 if (fsloc->locations) in fsloc_parse()
428 err = get_uint(mesg, &fsloc->locations_count); in fsloc_parse()
431 if (fsloc->locations_count > MAX_FS_LOCATIONS) in fsloc_parse()
433 if (fsloc->locations_count == 0) in fsloc_parse()
436 fsloc->locations = kcalloc(fsloc->locations_count, in fsloc_parse()
439 if (!fsloc->locations) in fsloc_parse()
441 for (i=0; i < fsloc->locations_count; i++) { in fsloc_parse()
448 fsloc->locations[i].hosts = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
449 if (!fsloc->locations[i].hosts) in fsloc_parse()
457 fsloc->locations[i].path = kstrdup(buf, GFP_KERNEL); in fsloc_parse()
458 if (!fsloc->locations[i].path) in fsloc_parse()
468 fsloc->migrated = migrated; in fsloc_parse()
471 nfsd4_fslocs_free(fsloc); in fsloc_parse()
514 fsloc_parse(char **mesg, char *buf, struct nfsd4_fs_locations *fsloc){return 0;} in fsloc_parse() argument
1207 kuid_t anonu, kgid_t anong, struct nfsd4_fs_locations *fsloc) in exp_flags() argument
1220 if (fsloc && fsloc->locations_count > 0) { in exp_flags()
1221 char *loctype = (fsloc->migrated) ? "refer" : "replicas"; in exp_flags()
1225 seq_escape(m, fsloc->locations[0].path, ",;@ \t\n\\"); in exp_flags()
1227 seq_escape(m, fsloc->locations[0].hosts, ",;@ \t\n\\"); in exp_flags()
1228 for (i = 1; i < fsloc->locations_count; i++) { in exp_flags()
1230 seq_escape(m, fsloc->locations[i].path, ",;@ \t\n\\"); in exp_flags()
1232 seq_escape(m, fsloc->locations[i].hosts, ",;@ \t\n\\"); in exp_flags()