• Home
  • Raw
  • Download

Lines Matching refs:data

100 	kfree(fattr->owner_name->data);  in nfs_fattr_free_owner_name()
106 kfree(fattr->group_name->data); in nfs_fattr_free_group_name()
116 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { in nfs_fattr_map_owner_name()
130 if (nfs_map_group_to_gid(server, group->data, group->len, &gid) == 0) { in nfs_fattr_map_group_name()
306 const char *type, void *data, in nfs_idmap_get_key() argument
338 memcpy(data, payload->data, ret); in nfs_idmap_get_key()
545 msg->data = im; in nfs_idmap_prepare_message()
554 struct idmap_legacy_upcalldata *data) in nfs_idmap_prepare_pipe_upcall() argument
560 idmap->idmap_upcall_data = data; in nfs_idmap_prepare_pipe_upcall()
564 static void nfs_idmap_complete_pipe_upcall(struct idmap_legacy_upcalldata *data, in nfs_idmap_complete_pipe_upcall() argument
567 complete_request_key(data->authkey, ret); in nfs_idmap_complete_pipe_upcall()
568 key_put(data->authkey); in nfs_idmap_complete_pipe_upcall()
569 kfree(data); in nfs_idmap_complete_pipe_upcall()
573 struct idmap_legacy_upcalldata *data, in nfs_idmap_abort_pipe_upcall() argument
576 if (cmpxchg(&idmap->idmap_upcall_data, data, NULL) == data) in nfs_idmap_abort_pipe_upcall()
577 nfs_idmap_complete_pipe_upcall(data, ret); in nfs_idmap_abort_pipe_upcall()
582 struct idmap_legacy_upcalldata *data; in nfs_idmap_legacy_upcall() local
595 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs_idmap_legacy_upcall()
596 if (!data) in nfs_idmap_legacy_upcall()
599 msg = &data->pipe_msg; in nfs_idmap_legacy_upcall()
600 im = &data->idmap_msg; in nfs_idmap_legacy_upcall()
601 data->idmap = idmap; in nfs_idmap_legacy_upcall()
602 data->authkey = key_get(authkey); in nfs_idmap_legacy_upcall()
609 if (!nfs_idmap_prepare_pipe_upcall(idmap, data)) in nfs_idmap_legacy_upcall()
614 nfs_idmap_abort_pipe_upcall(idmap, data, ret); in nfs_idmap_legacy_upcall()
618 kfree(data); in nfs_idmap_legacy_upcall()
624 static int nfs_idmap_instantiate(struct key *key, struct key *authkey, char *data, size_t datalen) in nfs_idmap_instantiate() argument
626 return key_instantiate_and_link(key, data, datalen, in nfs_idmap_instantiate()
670 struct idmap_legacy_upcalldata *data; in idmap_pipe_downcall() local
680 data = xchg(&idmap->idmap_upcall_data, NULL); in idmap_pipe_downcall()
681 if (data == NULL) in idmap_pipe_downcall()
684 authkey = data->authkey; in idmap_pipe_downcall()
708 ret = nfs_idmap_read_and_verify_message(&im, &data->idmap_msg, in idmap_pipe_downcall()
716 nfs_idmap_complete_pipe_upcall(data, ret); in idmap_pipe_downcall()
724 struct idmap_legacy_upcalldata *data = container_of(msg, in idmap_pipe_destroy_msg() local
727 struct idmap *idmap = data->idmap; in idmap_pipe_destroy_msg()
730 nfs_idmap_abort_pipe_upcall(idmap, data, msg->errno); in idmap_pipe_destroy_msg()
738 struct idmap_legacy_upcalldata *data; in idmap_release_pipe() local
740 data = xchg(&idmap->idmap_upcall_data, NULL); in idmap_release_pipe()
741 if (data) in idmap_release_pipe()
742 nfs_idmap_complete_pipe_upcall(data, -EPIPE); in idmap_release_pipe()