/fs/nfs/ |
D | pagelist.c | 34 nfs_pgio_current_mirror(struct nfs_pageio_descriptor *desc) in nfs_pgio_current_mirror() argument 36 return nfs_pgio_has_mirroring(desc) ? in nfs_pgio_current_mirror() 37 &desc->pg_mirrors[desc->pg_mirror_idx] : in nfs_pgio_current_mirror() 38 &desc->pg_mirrors[0]; in nfs_pgio_current_mirror() 42 void nfs_pgheader_init(struct nfs_pageio_descriptor *desc, in nfs_pgheader_init() argument 46 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() 50 hdr->inode = desc->pg_inode; in nfs_pgheader_init() 54 hdr->io_completion = desc->pg_io_completion; in nfs_pgheader_init() 55 hdr->dreq = desc->pg_dreq; in nfs_pgheader_init() 57 hdr->completion_ops = desc->pg_completion_ops; in nfs_pgheader_init() [all …]
|
D | dir.c | 231 int nfs_readdir_search_for_pos(struct nfs_cache_array *array, nfs_readdir_descriptor_t *desc) in nfs_readdir_search_for_pos() argument 233 loff_t diff = desc->ctx->pos - desc->current_index; in nfs_readdir_search_for_pos() 245 *desc->dir_cookie = array->array[index].cookie; in nfs_readdir_search_for_pos() 246 desc->cache_entry_index = index; in nfs_readdir_search_for_pos() 249 desc->eof = true; in nfs_readdir_search_for_pos() 263 int nfs_readdir_search_for_cookie(struct nfs_cache_array *array, nfs_readdir_descriptor_t *desc) in nfs_readdir_search_for_cookie() argument 270 if (array->array[i].cookie == *desc->dir_cookie) { in nfs_readdir_search_for_cookie() 271 struct nfs_inode *nfsi = NFS_I(file_inode(desc->file)); in nfs_readdir_search_for_cookie() 272 struct nfs_open_dir_context *ctx = desc->file->private_data; in nfs_readdir_search_for_cookie() 274 new_pos = desc->current_index + i; in nfs_readdir_search_for_cookie() [all …]
|
D | direct.c | 451 struct nfs_pageio_descriptor desc; in nfs_direct_read_schedule_iovec() local 457 nfs_pageio_init_read(&desc, dreq->inode, false, in nfs_direct_read_schedule_iovec() 460 desc.pg_dreq = dreq; in nfs_direct_read_schedule_iovec() 489 if (!nfs_pageio_add_request(&desc, req)) { in nfs_direct_read_schedule_iovec() 490 result = desc.pg_error; in nfs_direct_read_schedule_iovec() 506 nfs_pageio_complete(&desc); in nfs_direct_read_schedule_iovec() 623 struct nfs_pageio_descriptor desc; in nfs_direct_write_reschedule() local 640 nfs_pageio_init_write(&desc, dreq->inode, FLUSH_STABLE, false, in nfs_direct_write_reschedule() 642 desc.pg_dreq = dreq; in nfs_direct_write_reschedule() 647 if (!nfs_pageio_add_request(&desc, req)) { in nfs_direct_write_reschedule() [all …]
|
D | read.c | 375 struct nfs_readdesc *desc = (struct nfs_readdesc *)data; in readpage_async_filler() local 384 new = nfs_create_request(desc->ctx, page, 0, len); in readpage_async_filler() 390 if (!nfs_pageio_add_request(desc->pgio, new)) { in readpage_async_filler() 392 error = desc->pgio->pg_error; in readpage_async_filler() 409 struct nfs_readdesc desc = { in nfs_readpages() local 426 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpages() 427 if (desc.ctx == NULL) in nfs_readpages() 430 desc.ctx = get_nfs_open_context(nfs_file_open_context(filp)); in nfs_readpages() 435 ret = nfs_readpages_from_fscache(desc.ctx, inode, mapping, in nfs_readpages() 443 ret = read_cache_pages(mapping, pages, readpage_async_filler, &desc); in nfs_readpages() [all …]
|
D | pnfs.c | 2551 pnfs_generic_pg_cleanup(struct nfs_pageio_descriptor *desc) in pnfs_generic_pg_cleanup() argument 2553 if (desc->pg_lseg) { in pnfs_generic_pg_cleanup() 2554 pnfs_put_lseg(desc->pg_lseg); in pnfs_generic_pg_cleanup() 2555 desc->pg_lseg = NULL; in pnfs_generic_pg_cleanup() 2648 pnfs_write_through_mds(struct nfs_pageio_descriptor *desc, in pnfs_write_through_mds() argument 2651 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_write_through_mds() 2655 nfs_pageio_reset_write_mds(desc); in pnfs_write_through_mds() 2683 pnfs_do_write(struct nfs_pageio_descriptor *desc, in pnfs_do_write() argument 2686 const struct rpc_call_ops *call_ops = desc->pg_rpc_callops; in pnfs_do_write() 2687 struct pnfs_layout_segment *lseg = desc->pg_lseg; in pnfs_do_write() [all …]
|
/fs/ext2/ |
D | ialloc.c | 49 struct ext2_group_desc *desc; in read_inode_bitmap() local 52 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 53 if (!desc) in read_inode_bitmap() 56 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 61 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 68 struct ext2_group_desc * desc; in ext2_release_inode() local 71 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode() 72 if (!desc) { in ext2_release_inode() 79 le16_add_cpu(&desc->bg_free_inodes_count, 1); in ext2_release_inode() 81 le16_add_cpu(&desc->bg_used_dirs_count, -1); in ext2_release_inode() [all …]
|
D | balloc.c | 47 struct ext2_group_desc * desc; in ext2_get_group_desc() local 69 desc = (struct ext2_group_desc *) sbi->s_group_desc[group_desc]->b_data; in ext2_get_group_desc() 72 return desc + offset; in ext2_get_group_desc() 76 struct ext2_group_desc *desc, in ext2_valid_block_bitmap() argument 88 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in ext2_valid_block_bitmap() 95 bitmap_blk = le32_to_cpu(desc->bg_inode_bitmap); in ext2_valid_block_bitmap() 102 bitmap_blk = le32_to_cpu(desc->bg_inode_table); in ext2_valid_block_bitmap() 128 struct ext2_group_desc * desc; in read_block_bitmap() local 132 desc = ext2_get_group_desc(sb, block_group, NULL); in read_block_bitmap() 133 if (!desc) in read_block_bitmap() [all …]
|
/fs/verity/ |
D | open.c | 130 struct fsverity_descriptor *desc, in compute_file_measurement() argument 133 __le32 sig_size = desc->sig_size; in compute_file_measurement() 136 desc->sig_size = 0; in compute_file_measurement() 137 err = fsverity_hash_buffer(hash_alg, desc, sizeof(*desc), measurement); in compute_file_measurement() 138 desc->sig_size = sig_size; in compute_file_measurement() 150 struct fsverity_descriptor *desc = _desc; in fsverity_create_info() local 154 if (desc_size < sizeof(*desc)) { in fsverity_create_info() 160 if (desc->version != 1) { in fsverity_create_info() 162 desc->version); in fsverity_create_info() 166 if (memchr_inv(desc->__reserved, 0, sizeof(desc->__reserved))) { in fsverity_create_info() [all …]
|
D | enable.c | 163 struct fsverity_descriptor *desc; in enable_verity() local 164 size_t desc_size = sizeof(*desc) + arg->sig_size; in enable_verity() 169 desc = kzalloc(desc_size, GFP_KERNEL); in enable_verity() 170 if (!desc) in enable_verity() 172 desc->version = 1; in enable_verity() 173 desc->hash_algorithm = arg->hash_algorithm; in enable_verity() 174 desc->log_blocksize = ilog2(arg->block_size); in enable_verity() 178 copy_from_user(desc->salt, in enable_verity() 184 desc->salt_size = arg->salt_size; in enable_verity() 188 copy_from_user(desc->signature, in enable_verity() [all …]
|
D | signature.c | 38 const struct fsverity_descriptor *desc, in fsverity_verify_signature() argument 43 const u32 sig_size = le32_to_cpu(desc->sig_size); in fsverity_verify_signature() 56 if (sig_size > desc_size - sizeof(*desc)) { in fsverity_verify_signature() 70 desc->signature, sig_size, in fsverity_verify_signature()
|
/fs/ |
D | fs_parser.c | 46 const struct fs_parameter_description *desc, in fs_lookup_key() argument 51 if (!desc->specs) in fs_lookup_key() 54 for (p = desc->specs; p->name; p++) in fs_lookup_key() 80 const struct fs_parameter_description *desc, in fs_parse() argument 92 p = fs_lookup_key(desc, param->key); in fs_parse() 103 p = fs_lookup_key(desc, param->key + 2); in fs_parse() 114 desc->name, param->key); in fs_parse() 150 desc->name, param->key); in fs_parse() 190 for (e = desc->enums; e->name[0]; e++) { in fs_parse() 240 return invalf(fc, "%s: Bad value for '%s'", desc->name, param->key); in fs_parse() [all …]
|
/fs/nfs_common/ |
D | nfsacl.c | 35 struct xdr_array2_desc desc; member 49 xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_encode() argument 52 (struct nfsacl_encode_desc *) desc; in xdr_nfsace_encode() 97 .desc = { in nfsacl_encode() 131 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode() 133 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode() 134 nfsacl_desc.desc.array_len; in nfsacl_encode() 140 struct xdr_array2_desc desc; member 146 xdr_nfsace_decode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_decode() argument 149 (struct nfsacl_decode_desc *) desc; in xdr_nfsace_decode() [all …]
|
/fs/crypto/ |
D | hkdf.c | 47 SHASH_DESC_ON_STACK(desc, hmac_tfm); in hkdf_extract() 54 desc->tfm = hmac_tfm; in hkdf_extract() 55 err = crypto_shash_digest(desc, ikm, ikmlen, prk); in hkdf_extract() 56 shash_desc_zero(desc); in hkdf_extract() 119 SHASH_DESC_ON_STACK(desc, hkdf->hmac_tfm); in fscrypt_hkdf_expand() 130 desc->tfm = hkdf->hmac_tfm; in fscrypt_hkdf_expand() 137 err = crypto_shash_init(desc); in fscrypt_hkdf_expand() 142 err = crypto_shash_update(desc, prev, HKDF_HASHLEN); in fscrypt_hkdf_expand() 147 err = crypto_shash_update(desc, prefix, sizeof(prefix)); in fscrypt_hkdf_expand() 151 err = crypto_shash_update(desc, info, infolen); in fscrypt_hkdf_expand() [all …]
|
/fs/ext4/ |
D | ialloc.c | 80 struct ext4_group_desc *desc, in ext4_validate_inode_bitmap() argument 95 blk = ext4_inode_bitmap(sb, desc); in ext4_validate_inode_bitmap() 96 if (!ext4_inode_bitmap_csum_verify(sb, block_group, desc, bh, in ext4_validate_inode_bitmap() 120 struct ext4_group_desc *desc; in ext4_read_inode_bitmap() local 126 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() 127 if (!desc) in ext4_read_inode_bitmap() 130 bitmap_blk = ext4_inode_bitmap(sb, desc); in ext4_read_inode_bitmap() 157 (desc->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT))) { in ext4_read_inode_bitmap() 206 err = ext4_validate_inode_bitmap(sb, desc, block_group, bh); in ext4_read_inode_bitmap() 367 struct ext4_group_desc *desc; in get_orlov_stats() local [all …]
|
D | balloc.c | 271 struct ext4_group_desc *desc; in ext4_get_group_desc() local 290 desc = (struct ext4_group_desc *)( in ext4_get_group_desc() 295 return desc; in ext4_get_group_desc() 303 struct ext4_group_desc *desc, in ext4_valid_block_bitmap() argument 326 blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap() 334 blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap() 342 blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap() 358 struct ext4_group_desc *desc, in ext4_validate_block_bitmap() argument 374 desc, bh))) { in ext4_validate_block_bitmap() 381 blk = ext4_valid_block_bitmap(sb, desc, block_group, bh); in ext4_validate_block_bitmap() [all …]
|
D | verity.c | 175 static int ext4_write_verity_descriptor(struct inode *inode, const void *desc, in ext4_write_verity_descriptor() argument 187 err = pagecache_write(inode, desc, desc_size, desc_pos); in ext4_write_verity_descriptor() 195 static int ext4_end_enable_verity(struct file *filp, const void *desc, in ext4_end_enable_verity() argument 204 if (desc != NULL) { in ext4_end_enable_verity() 206 err = ext4_write_verity_descriptor(inode, desc, desc_size, in ext4_end_enable_verity() 215 if (desc == NULL || err) in ext4_end_enable_verity() 237 if (desc != NULL && !err) { in ext4_end_enable_verity()
|
/fs/nilfs2/ |
D | alloc.c | 130 nilfs_palloc_group_desc_nfrees(const struct nilfs_palloc_group_desc *desc, in nilfs_palloc_group_desc_nfrees() argument 136 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_nfrees() 148 nilfs_palloc_group_desc_add_entries(struct nilfs_palloc_group_desc *desc, in nilfs_palloc_group_desc_add_entries() argument 154 le32_add_cpu(&desc->pg_nfrees, n); in nilfs_palloc_group_desc_add_entries() 155 nfree = le32_to_cpu(desc->pg_nfrees); in nilfs_palloc_group_desc_add_entries() 185 struct nilfs_palloc_group_desc *desc = kaddr + bh_offset(bh); in nilfs_palloc_desc_block_init() local 191 desc->pg_nfrees = nfrees; in nilfs_palloc_desc_block_init() 192 desc++; in nilfs_palloc_desc_block_init() 502 struct nilfs_palloc_group_desc *desc; in nilfs_palloc_prepare_alloc_entry() local 528 desc = nilfs_palloc_block_get_group_desc( in nilfs_palloc_prepare_alloc_entry() [all …]
|
/fs/hfs/ |
D | bnode.c | 136 struct hfs_bnode_desc desc; in hfs_bnode_dump() local 141 hfs_bnode_read(node, &desc, 0, sizeof(desc)); in hfs_bnode_dump() 143 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump() 144 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 147 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 315 struct hfs_bnode_desc *desc; in hfs_bnode_find() local 338 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + node->page_offset); in hfs_bnode_find() 339 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find() 340 node->next = be32_to_cpu(desc->next); in hfs_bnode_find() 341 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() [all …]
|
D | btree.c | 192 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local 209 desc.next = 0; in hfs_bmap_new_bmap() 210 desc.prev = 0; in hfs_bmap_new_bmap() 211 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap() 212 desc.height = 0; in hfs_bmap_new_bmap() 213 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap() 214 desc.reserved = 0; in hfs_bmap_new_bmap() 215 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
|
/fs/ocfs2/ |
D | aops.c | 1240 struct ocfs2_write_cluster_desc *desc; in ocfs2_write_cluster_by_desc() local 1244 desc = &wc->w_desc[i]; in ocfs2_write_cluster_by_desc() 1255 ret = ocfs2_write_cluster(mapping, &desc->c_phys, in ocfs2_write_cluster_by_desc() 1256 desc->c_new, in ocfs2_write_cluster_by_desc() 1257 desc->c_clear_unwritten, in ocfs2_write_cluster_by_desc() 1258 desc->c_needs_zero, in ocfs2_write_cluster_by_desc() 1260 wc, desc->c_cpos, pos, local_len); in ocfs2_write_cluster_by_desc() 1284 struct ocfs2_write_cluster_desc *desc; in ocfs2_set_target_boundaries() local 1308 desc = &wc->w_desc[0]; in ocfs2_set_target_boundaries() 1309 if (desc->c_needs_zero) in ocfs2_set_target_boundaries() [all …]
|
/fs/hfsplus/ |
D | bnode.c | 300 struct hfs_bnode_desc desc; in hfs_bnode_dump() local 305 hfs_bnode_read(node, &desc, 0, sizeof(desc)); in hfs_bnode_dump() 307 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump() 308 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 311 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 481 struct hfs_bnode_desc *desc; in hfs_bnode_find() local 505 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + in hfs_bnode_find() 507 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find() 508 node->next = be32_to_cpu(desc->next); in hfs_bnode_find() 509 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() [all …]
|
D | btree.c | 316 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local 331 desc.next = 0; in hfs_bmap_new_bmap() 332 desc.prev = 0; in hfs_bmap_new_bmap() 333 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap() 334 desc.height = 0; in hfs_bmap_new_bmap() 335 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap() 336 desc.reserved = 0; in hfs_bmap_new_bmap() 337 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
|
/fs/reiserfs/ |
D | journal.c | 1987 struct reiserfs_journal_desc *desc, in journal_compare_desc_commit() argument 1990 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) || in journal_compare_desc_commit() 1991 get_commit_trans_len(commit) != get_desc_trans_len(desc) || in journal_compare_desc_commit() 2010 struct reiserfs_journal_desc *desc; in journal_transaction_is_valid() local 2018 desc = (struct reiserfs_journal_desc *)d_bh->b_data; in journal_transaction_is_valid() 2019 if (get_desc_trans_len(desc) > 0 in journal_transaction_is_valid() 2022 && get_desc_trans_id(desc) > *oldest_invalid_trans_id) { in journal_transaction_is_valid() 2027 get_desc_trans_id(desc), in journal_transaction_is_valid() 2032 && *newest_mount_id > get_desc_mount_id(desc)) { in journal_transaction_is_valid() 2037 get_desc_mount_id(desc), in journal_transaction_is_valid() [all …]
|
/fs/ubifs/ |
D | auth.c | 117 struct shash_desc *desc; in ubifs_get_desc() local 123 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(tfm), GFP_KERNEL); in ubifs_get_desc() 124 if (!desc) in ubifs_get_desc() 127 desc->tfm = tfm; in ubifs_get_desc() 129 err = crypto_shash_init(desc); in ubifs_get_desc() 131 kfree(desc); in ubifs_get_desc() 135 return desc; in ubifs_get_desc()
|
/fs/f2fs/ |
D | verity.c | 149 static int f2fs_end_enable_verity(struct file *filp, const void *desc, in f2fs_end_enable_verity() argument 161 if (desc != NULL) { in f2fs_end_enable_verity() 163 err = pagecache_write(inode, desc, desc_size, desc_pos); in f2fs_end_enable_verity() 171 if (desc == NULL || err) in f2fs_end_enable_verity() 176 if (desc != NULL && !err) { in f2fs_end_enable_verity()
|