/fs/nfs/ |
D | unlink.c | 32 nfs_free_unlinkdata(struct nfs_unlinkdata *data) in nfs_free_unlinkdata() argument 34 put_cred(data->cred); in nfs_free_unlinkdata() 35 kfree(data->args.name.name); in nfs_free_unlinkdata() 36 kfree(data); in nfs_free_unlinkdata() 48 struct nfs_unlinkdata *data = calldata; in nfs_async_unlink_done() local 49 struct inode *dir = d_inode(data->dentry->d_parent); in nfs_async_unlink_done() 51 trace_nfs_sillyrename_unlink(data, task->tk_status); in nfs_async_unlink_done() 65 struct nfs_unlinkdata *data = calldata; in nfs_async_unlink_release() local 66 struct dentry *dentry = data->dentry; in nfs_async_unlink_release() 71 nfs_free_unlinkdata(data); in nfs_async_unlink_release() [all …]
|
D | nfs3proc.c | 301 struct nfs3_createdata *data; in nfs3_alloc_createdata() local 303 data = kzalloc(sizeof(*data), GFP_KERNEL); in nfs3_alloc_createdata() 304 if (data != NULL) { in nfs3_alloc_createdata() 305 data->msg.rpc_argp = &data->arg; in nfs3_alloc_createdata() 306 data->msg.rpc_resp = &data->res; in nfs3_alloc_createdata() 307 data->res.fh = &data->fh; in nfs3_alloc_createdata() 308 data->res.fattr = &data->fattr; in nfs3_alloc_createdata() 309 data->res.dir_attr = &data->dir_attr; in nfs3_alloc_createdata() 310 nfs_fattr_init(data->res.fattr); in nfs3_alloc_createdata() 311 nfs_fattr_init(data->res.dir_attr); in nfs3_alloc_createdata() [all …]
|
D | fs_context.c | 954 struct nfs_mount_data *data) in nfs23_parse_monolithic() argument 962 if (data == NULL) in nfs23_parse_monolithic() 966 switch (data->version) { in nfs23_parse_monolithic() 968 data->namlen = 0; in nfs23_parse_monolithic() 971 data->bsize = 0; in nfs23_parse_monolithic() 974 if (data->flags & NFS_MOUNT_VER3) in nfs23_parse_monolithic() 976 data->root.size = NFS2_FHSIZE; in nfs23_parse_monolithic() 977 memcpy(data->root.data, data->old_root.data, NFS2_FHSIZE); in nfs23_parse_monolithic() 982 if (data->flags & NFS_MOUNT_SECFLAVOUR) in nfs23_parse_monolithic() 986 memset(data->context, 0, sizeof(data->context)); in nfs23_parse_monolithic() [all …]
|
D | nfs42proc.c | 499 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_prepare() local 501 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs42_offload_cancel_prepare() 502 &data->args.osa_seq_args, in nfs42_offload_cancel_prepare() 503 &data->res.osr_seq_res, task); in nfs42_offload_cancel_prepare() 508 struct nfs42_offloadcancel_data *data = calldata; in nfs42_offload_cancel_done() local 510 nfs41_sequence_done(task, &data->res.osr_seq_res); in nfs42_offload_cancel_done() 512 nfs4_async_handle_error(task, data->seq_server, NULL, in nfs42_offload_cancel_done() 517 static void nfs42_free_offloadcancel_data(void *data) in nfs42_free_offloadcancel_data() argument 519 kfree(data); in nfs42_free_offloadcancel_data() 532 struct nfs42_offloadcancel_data *data = NULL; in nfs42_do_offload_cancel_async() local [all …]
|
D | nfs4proc.c | 93 static int _nfs4_recover_proc_open(struct nfs4_opendata *data); 992 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_prepare() local 994 dprintk("--> %s data->seq_server %p\n", __func__, data->seq_server); in nfs41_call_sync_prepare() 996 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs41_call_sync_prepare() 997 data->seq_args, data->seq_res, task); in nfs41_call_sync_prepare() 1002 struct nfs4_call_sync_data *data = calldata; in nfs41_call_sync_done() local 1004 nfs41_sequence_done(task, data->seq_res); in nfs41_call_sync_done() 1113 struct nfs4_call_sync_data *data = calldata; in nfs40_call_sync_prepare() local 1114 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs40_call_sync_prepare() 1115 data->seq_args, data->seq_res, task); in nfs40_call_sync_prepare() [all …]
|
D | nfs4idmap.c | 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 [all …]
|
D | proc.c | 220 struct nfs_createdata *data; in nfs_alloc_createdata() local 222 data = kmalloc(sizeof(*data), GFP_KERNEL); in nfs_alloc_createdata() 224 if (data != NULL) { in nfs_alloc_createdata() 225 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata() 226 data->arg.name = dentry->d_name.name; in nfs_alloc_createdata() 227 data->arg.len = dentry->d_name.len; in nfs_alloc_createdata() 228 data->arg.sattr = sattr; in nfs_alloc_createdata() 229 nfs_fattr_init(&data->fattr); in nfs_alloc_createdata() 230 data->fhandle.size = 0; in nfs_alloc_createdata() 231 data->res.fh = &data->fhandle; in nfs_alloc_createdata() [all …]
|
D | nfs3xdr.c | 312 memcpy(verifier->data, p, NFS3_WRITEVERFSIZE); in decode_writeverf3() 424 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3() 442 memcpy(fh->data, p, length); in decode_nfs_fh3() 813 const void *data) in nfs3_xdr_enc_getattr3args() argument 815 const struct nfs_fh *fh = data; in nfs3_xdr_enc_getattr3args() 853 const void *data) in nfs3_xdr_enc_setattr3args() argument 855 const struct nfs3_sattrargs *args = data; in nfs3_xdr_enc_setattr3args() 870 const void *data) in nfs3_xdr_enc_lookup3args() argument 872 const struct nfs3_diropargs *args = data; in nfs3_xdr_enc_lookup3args() 894 const void *data) in nfs3_xdr_enc_access3args() argument [all …]
|
D | pnfs_nfs.c | 22 void pnfs_generic_rw_release(void *data) in pnfs_generic_rw_release() argument 24 struct nfs_pgio_header *hdr = data; in pnfs_generic_rw_release() 27 hdr->mds_ops->rpc_release(data); in pnfs_generic_rw_release() 32 void pnfs_generic_prepare_to_resend_writes(struct nfs_commit_data *data) in pnfs_generic_prepare_to_resend_writes() argument 34 struct nfs_writeverf *verf = data->res.verf; in pnfs_generic_prepare_to_resend_writes() 36 data->task.tk_status = 0; in pnfs_generic_prepare_to_resend_writes() 42 void pnfs_generic_write_commit_done(struct rpc_task *task, void *data) in pnfs_generic_write_commit_done() argument 44 struct nfs_commit_data *wdata = data; in pnfs_generic_write_commit_done() 47 wdata->mds_ops->rpc_call_done(task, data); in pnfs_generic_write_commit_done() 53 struct nfs_commit_data *data = calldata; in pnfs_generic_commit_release() local [all …]
|
D | nfs42xdr.c | 381 p = xdr_encode_opaque_fixed(p, devinfo->dev_id.data, in encode_layoutstats() 413 p = xdr_encode_opaque_fixed(p, error->dev_id.data, in encode_device_error() 650 const void *data) in nfs4_xdr_enc_allocate() argument 652 const struct nfs42_falloc_args *args = data; in nfs4_xdr_enc_allocate() 682 const void *data) in nfs4_xdr_enc_copy() argument 684 const struct nfs42_copy_args *args = data; in nfs4_xdr_enc_copy() 705 const void *data) in nfs4_xdr_enc_offload_cancel() argument 707 const struct nfs42_offload_status_args *args = data; in nfs4_xdr_enc_offload_cancel() 724 const void *data) in nfs4_xdr_enc_copy_notify() argument 726 const struct nfs42_copy_notify_args *args = data; in nfs4_xdr_enc_copy_notify() [all …]
|
/fs/dlm/ |
D | netlink.c | 21 void *data; in prepare_data() local 28 data = genlmsg_put(skb, 0, dlm_nl_seqnum++, &family, 0, cmd); in prepare_data() 29 if (!data) { in prepare_data() 50 struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); in send_data() 51 void *data = genlmsg_data(genlhdr); in send_data() local 53 genlmsg_end(skb, data); in send_data() 91 static void fill_data(struct dlm_lock_data *data, struct dlm_lkb *lkb) in fill_data() argument 95 memset(data, 0, sizeof(struct dlm_lock_data)); in fill_data() 97 data->version = DLM_LOCK_DATA_VERSION; in fill_data() 98 data->nodeid = lkb->lkb_nodeid; in fill_data() [all …]
|
/fs/unicode/ |
D | utf8-norm.c | 319 static utf8leaf_t *utf8nlookup(const struct utf8data *data, in utf8nlookup() argument 328 if (!data) in utf8nlookup() 333 trie = utf8data + data->offset; in utf8nlookup() 395 static utf8leaf_t *utf8lookup(const struct utf8data *data, in utf8lookup() argument 398 return utf8nlookup(data, hangul, s, (size_t)-1); in utf8lookup() 406 int utf8agemax(const struct utf8data *data, const char *s) in utf8agemax() argument 413 if (!data) in utf8agemax() 417 leaf = utf8lookup(data, hangul, s); in utf8agemax() 422 if (leaf_age <= data->maxage && leaf_age > age) in utf8agemax() 435 int utf8agemin(const struct utf8data *data, const char *s) in utf8agemin() argument [all …]
|
D | utf8-core.c | 15 const struct utf8data *data = utf8nfdi(um->version); in utf8_validate() local 17 if (utf8nlen(data, str->name, str->len) < 0) in utf8_validate() 26 const struct utf8data *data = utf8nfdi(um->version); in utf8_strncmp() local 30 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncmp() 33 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncmp() 53 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp() local 57 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncasecmp() 60 if (utf8ncursor(&cur2, data, s2->name, s2->len) < 0) in utf8_strncasecmp() 84 const struct utf8data *data = utf8nfdicf(um->version); in utf8_strncasecmp_folded() local 89 if (utf8ncursor(&cur1, data, s1->name, s1->len) < 0) in utf8_strncasecmp_folded() [all …]
|
D | utf8n.h | 51 extern int utf8agemax(const struct utf8data *data, const char *s); 52 extern int utf8nagemax(const struct utf8data *data, const char *s, size_t len); 59 extern int utf8agemin(const struct utf8data *data, const char *s); 60 extern int utf8nagemin(const struct utf8data *data, const char *s, size_t len); 68 extern ssize_t utf8len(const struct utf8data *data, const char *s); 69 extern ssize_t utf8nlen(const struct utf8data *data, const char *s, size_t len); 78 const struct utf8data *data; member 95 extern int utf8cursor(struct utf8cursor *u8c, const struct utf8data *data, 97 extern int utf8ncursor(struct utf8cursor *u8c, const struct utf8data *data,
|
/fs/ubifs/ |
D | find.c | 85 struct scan_data *data) in scan_for_dirty_cb() argument 96 if (lprops->free + lprops->dirty < data->min_space) in scan_for_dirty_cb() 99 if (data->exclude_index && lprops->flags & LPROPS_INDEX) in scan_for_dirty_cb() 103 if (!data->pick_free) in scan_for_dirty_cb() 109 data->lnum = lprops->lnum; in scan_for_dirty_cb() 130 struct scan_data data; in scan_for_dirty() local 165 data.min_space = min_space; in scan_for_dirty() 166 data.pick_free = pick_free; in scan_for_dirty() 167 data.lnum = -1; in scan_for_dirty() 168 data.exclude_index = exclude_index; in scan_for_dirty() [all …]
|
/fs/hpfs/ |
D | buffer.c | 117 char *data; in hpfs_map_4sectors() local 138 return qbh->data = qbh->bh[0]->b_data; in hpfs_map_4sectors() 141 qbh->data = data = kmalloc(2048, GFP_NOFS); in hpfs_map_4sectors() 142 if (!data) { in hpfs_map_4sectors() 147 memcpy(data + 0 * 512, qbh->bh[0]->b_data, 512); in hpfs_map_4sectors() 148 memcpy(data + 1 * 512, qbh->bh[1]->b_data, 512); in hpfs_map_4sectors() 149 memcpy(data + 2 * 512, qbh->bh[2]->b_data, 512); in hpfs_map_4sectors() 150 memcpy(data + 3 * 512, qbh->bh[3]->b_data, 512); in hpfs_map_4sectors() 152 return data; in hpfs_map_4sectors() 188 return qbh->data = qbh->bh[0]->b_data; in hpfs_get_4sectors() [all …]
|
/fs/ocfs2/ |
D | blockcheck.c | 97 u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr) in ocfs2_hamming_encode() argument 112 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode() 144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 156 void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr, in ocfs2_hamming_fix() argument 203 if (ocfs2_test_bit(i, data)) in ocfs2_hamming_fix() 204 ocfs2_clear_bit(i, data); in ocfs2_hamming_fix() 206 ocfs2_set_bit(i, data); in ocfs2_hamming_fix() 212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() [all …]
|
/fs/efivarfs/ |
D | file.c | 19 void *data; in efivarfs_file_write() local 35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write() 36 if (IS_ERR(data)) in efivarfs_file_write() 37 return PTR_ERR(data); in efivarfs_file_write() 40 data, &set); in efivarfs_file_write() 61 kfree(data); in efivarfs_file_write() 72 void *data; in efivarfs_file_read() local 90 data = kmalloc(datasize + sizeof(attributes), GFP_KERNEL); in efivarfs_file_read() 92 if (!data) in efivarfs_file_read() 96 data + sizeof(attributes)); in efivarfs_file_read() [all …]
|
/fs/xfs/ |
D | xfs_sysctl.c | 20 int ret, *valp = ctl->data; in xfs_stats_clear_proc_handler() 40 int ret, *valp = ctl->data; in xfs_panic_mask_proc_handler() 72 .data = &xfs_params.sgid_inherit.val, 81 .data = &xfs_params.symlink_mode.val, 90 .data = &xfs_params.panic_mask.val, 100 .data = &xfs_params.error_level.val, 109 .data = &xfs_params.syncd_timer.val, 118 .data = &xfs_params.inherit_sync.val, 127 .data = &xfs_params.inherit_nodump.val, 136 .data = &xfs_params.inherit_noatim.val, [all …]
|
/fs/incfs/ |
D | verity.c | 75 .data = sig, in incfs_end_enable_verity() 171 verity_file_digest.data = smp_load_acquire( in incfs_get_verity_digest() 172 &df->df_verity_file_digest.data); in incfs_get_verity_digest() 185 kfree(verity_file_digest.data); in incfs_set_verity_digest() 199 if (cmpxchg_release(&df->df_verity_file_digest.data, NULL, in incfs_set_verity_digest() 200 verity_file_digest.data) != NULL) in incfs_set_verity_digest() 202 kfree(verity_file_digest.data); in incfs_set_verity_digest() 229 if (!verity_file_digest.data) in incfs_calc_verity_digest_from_desc() 233 verity_file_digest.data); in incfs_calc_verity_digest_from_desc() 240 verity_file_digest.data); in incfs_calc_verity_digest_from_desc() [all …]
|
D | integrity.c | 87 range->data = *p; in read_mem_range() 95 u8 *p = signature.data; in incfs_parse_signature() 96 u8 *top = signature.data + signature.len; in incfs_parse_signature() 194 memcpy(result->root_hash, si.root_hash.data, hash_alg->digest_size); in incfs_alloc_mtree() 207 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data, in incfs_calc_digest() argument 212 if (!alg || !alg->shash || !data.data || !digest.data) in incfs_calc_digest() 220 if (data.len < INCFS_DATA_FILE_BLOCK_SIZE) { in incfs_calc_digest() 227 memcpy(buf, data.data, data.len); in incfs_calc_digest() 229 digest.data); in incfs_calc_digest() 233 return crypto_shash_digest(desc, data.data, data.len, digest.data); in incfs_calc_digest()
|
/fs/lockd/ |
D | clnt4xdr.c | 109 const u8 *data, const unsigned int length) in encode_netobj() argument 114 xdr_encode_opaque(p, data, length); in encode_netobj() 122 ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, in decode_netobj() 136 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie() 158 memcpy(cookie->data, p, length); in decode_cookie() 162 memset(cookie->data, 0, 4); in decode_cookie() 176 encode_netobj(xdr, (u8 *)&fh->data, fh->size); in encode_fh() 248 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_holder() 326 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_lock() 354 const void *data) in nlm4_xdr_enc_testargs() argument [all …]
|
D | clntxdr.c | 106 const u8 *data, const unsigned int length) in encode_netobj() argument 111 xdr_encode_opaque(p, data, length); in encode_netobj() 119 ret = xdr_stream_decode_opaque_inline(xdr, (void *)&obj->data, in decode_netobj() 133 encode_netobj(xdr, (u8 *)&cookie->data, cookie->len); in encode_cookie() 155 memcpy(cookie->data, p, length); in decode_cookie() 159 memset(cookie->data, 0, 4); in decode_cookie() 173 encode_netobj(xdr, (u8 *)&fh->data, NFS2_FHSIZE); in encode_fh() 243 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_holder() 327 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_lock() 354 const void *data) in nlm_xdr_enc_testargs() argument [all …]
|
/fs/befs/ |
D | datastream.c | 25 const befs_data_stream *data, 29 const befs_data_stream *data, 34 const befs_data_stream *data, 95 befs_fblock2brun(struct super_block *sb, const befs_data_stream *data, in befs_fblock2brun() argument 101 if (pos < data->max_direct_range) { in befs_fblock2brun() 102 err = befs_find_brun_direct(sb, data, fblock, run); in befs_fblock2brun() 104 } else if (pos < data->max_indirect_range) { in befs_fblock2brun() 105 err = befs_find_brun_indirect(sb, data, fblock, run); in befs_fblock2brun() 107 } else if (pos < data->max_double_indirect_range) { in befs_fblock2brun() 108 err = befs_find_brun_dblindirect(sb, data, fblock, run); in befs_fblock2brun() [all …]
|
/fs/pstore/ |
D | inode.c | 66 struct pstore_ftrace_seq_data *data; in pstore_ftrace_seq_start() local 68 data = kzalloc(sizeof(*data), GFP_KERNEL); in pstore_ftrace_seq_start() 69 if (!data) in pstore_ftrace_seq_start() 72 data->off = ps->total_size % REC_SIZE; in pstore_ftrace_seq_start() 73 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start() 74 if (data->off + REC_SIZE > ps->total_size) { in pstore_ftrace_seq_start() 75 kfree(data); in pstore_ftrace_seq_start() 79 return data; in pstore_ftrace_seq_start() 91 struct pstore_ftrace_seq_data *data = v; in pstore_ftrace_seq_next() local 94 data->off += REC_SIZE; in pstore_ftrace_seq_next() [all …]
|