/fs/nfs/ |
D | pagelist.c | 218 void nfs_pageio_init(struct nfs_pageio_descriptor *desc, in nfs_pageio_init() argument 224 INIT_LIST_HEAD(&desc->pg_list); in nfs_pageio_init() 225 desc->pg_bytes_written = 0; in nfs_pageio_init() 226 desc->pg_count = 0; in nfs_pageio_init() 227 desc->pg_bsize = bsize; in nfs_pageio_init() 228 desc->pg_base = 0; in nfs_pageio_init() 229 desc->pg_inode = inode; in nfs_pageio_init() 230 desc->pg_doio = doio; in nfs_pageio_init() 231 desc->pg_ioflags = io_flags; in nfs_pageio_init() 232 desc->pg_error = 0; in nfs_pageio_init() [all …]
|
D | dir.c | 176 int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page *page) in nfs_readdir_filler() argument 178 struct file *file = desc->file; in nfs_readdir_filler() 185 __func__, (long long)desc->entry->cookie, in nfs_readdir_filler() 191 error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, desc->entry->cookie, page, in nfs_readdir_filler() 192 NFS_SERVER(inode)->dtsize, desc->plus); in nfs_readdir_filler() 195 if (error == -ENOTSUPP && desc->plus) { in nfs_readdir_filler() 198 desc->plus = 0; in nfs_readdir_filler() 203 desc->timestamp = timestamp; in nfs_readdir_filler() 204 desc->gencount = gencount; in nfs_readdir_filler() 205 desc->timestamp_valid = 1; in nfs_readdir_filler() [all …]
|
D | read.c | 530 struct nfs_readdesc *desc = (struct nfs_readdesc *)data; in readpage_async_filler() local 540 new = nfs_create_request(desc->ctx, inode, page, 0, len); in readpage_async_filler() 546 if (!nfs_pageio_add_request(desc->pgio, new)) { in readpage_async_filler() 547 error = desc->pgio->pg_error; in readpage_async_filler() 563 struct nfs_readdesc desc = { in nfs_readpages() local 582 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpages() 583 if (desc.ctx == NULL) in nfs_readpages() 586 desc.ctx = get_nfs_open_context(nfs_file_open_context(filp)); in nfs_readpages() 592 ret = read_cache_pages(mapping, pages, readpage_async_filler, &desc); in nfs_readpages() 597 put_nfs_open_context(desc.ctx); in nfs_readpages()
|
D | inode.c | 211 struct nfs_find_desc *desc = (struct nfs_find_desc *)opaque; in nfs_find_actor() local 212 struct nfs_fh *fh = desc->fh; in nfs_find_actor() 213 struct nfs_fattr *fattr = desc->fattr; in nfs_find_actor() 227 struct nfs_find_desc *desc = (struct nfs_find_desc *)opaque; in nfs_init_locked() local 228 struct nfs_fattr *fattr = desc->fattr; in nfs_init_locked() 231 nfs_copy_fh(NFS_FH(inode), desc->fh); in nfs_init_locked() 245 struct nfs_find_desc desc = { in nfs_fhget() local 262 inode = iget5_locked(sb, hash, nfs_find_actor, nfs_init_locked, &desc); in nfs_fhget()
|
/fs/ext2/ |
D | ialloc.c | 48 struct ext2_group_desc *desc; in read_inode_bitmap() local 51 desc = ext2_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 52 if (!desc) in read_inode_bitmap() 55 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 60 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 67 struct ext2_group_desc * desc; in ext2_release_inode() local 70 desc = ext2_get_group_desc(sb, group, &bh); in ext2_release_inode() 71 if (!desc) { in ext2_release_inode() 78 le16_add_cpu(&desc->bg_free_inodes_count, 1); in ext2_release_inode() 80 le16_add_cpu(&desc->bg_used_dirs_count, -1); in ext2_release_inode() [all …]
|
D | balloc.c | 44 struct ext2_group_desc * desc; in ext2_get_group_desc() local 66 desc = (struct ext2_group_desc *) sbi->s_group_desc[group_desc]->b_data; in ext2_get_group_desc() 69 return desc + offset; in ext2_get_group_desc() 73 struct ext2_group_desc *desc, in ext2_valid_block_bitmap() argument 85 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in ext2_valid_block_bitmap() 92 bitmap_blk = le32_to_cpu(desc->bg_inode_bitmap); in ext2_valid_block_bitmap() 99 bitmap_blk = le32_to_cpu(desc->bg_inode_table); in ext2_valid_block_bitmap() 125 struct ext2_group_desc * desc; in read_block_bitmap() local 129 desc = ext2_get_group_desc(sb, block_group, NULL); in read_block_bitmap() 130 if (!desc) in read_block_bitmap() [all …]
|
/fs/ext3/ |
D | ialloc.c | 56 struct ext3_group_desc *desc; in read_inode_bitmap() local 59 desc = ext3_get_group_desc(sb, block_group, NULL); in read_inode_bitmap() 60 if (!desc) in read_inode_bitmap() 63 bh = sb_bread(sb, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 68 block_group, le32_to_cpu(desc->bg_inode_bitmap)); in read_inode_bitmap() 204 struct ext3_group_desc *desc, *best_desc = NULL; in find_group_dir() local 211 desc = ext3_get_group_desc (sb, group, NULL); in find_group_dir() 212 if (!desc || !desc->bg_free_inodes_count) in find_group_dir() 214 if (le16_to_cpu(desc->bg_free_inodes_count) < avefreei) in find_group_dir() 217 (le16_to_cpu(desc->bg_free_blocks_count) > in find_group_dir() [all …]
|
D | balloc.c | 54 struct ext3_group_desc * desc; in ext3_get_group_desc() local 77 desc = (struct ext3_group_desc *) sbi->s_group_desc[group_desc]->b_data; in ext3_get_group_desc() 80 return desc + offset; in ext3_get_group_desc() 84 struct ext3_group_desc *desc, in ext3_valid_block_bitmap() argument 96 bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); in ext3_valid_block_bitmap() 103 bitmap_blk = le32_to_cpu(desc->bg_inode_bitmap); in ext3_valid_block_bitmap() 110 bitmap_blk = le32_to_cpu(desc->bg_inode_table); in ext3_valid_block_bitmap() 140 struct ext3_group_desc * desc; in read_block_bitmap() local 144 desc = ext3_get_group_desc(sb, block_group, NULL); in read_block_bitmap() 145 if (!desc) in read_block_bitmap() [all …]
|
/fs/nfs_common/ |
D | nfsacl.c | 36 struct xdr_array2_desc desc; member 45 xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_encode() argument 48 (struct nfsacl_encode_desc *) desc; in xdr_nfsace_encode() 80 .desc = { in nfsacl_encode() 110 err = xdr_encode_array2(buf, base + 4, &nfsacl_desc.desc); in nfsacl_encode() 114 err = 8 + nfsacl_desc.desc.elem_size * in nfsacl_encode() 115 nfsacl_desc.desc.array_len; in nfsacl_encode() 120 struct xdr_array2_desc desc; member 126 xdr_nfsace_decode(struct xdr_array2_desc *desc, void *elem) in xdr_nfsace_decode() argument 129 (struct nfsacl_decode_desc *) desc; in xdr_nfsace_decode() [all …]
|
/fs/ext4/ |
D | ialloc.c | 102 struct ext4_group_desc *desc; in ext4_read_inode_bitmap() local 106 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_inode_bitmap() 107 if (!desc) in ext4_read_inode_bitmap() 109 bitmap_blk = ext4_inode_bitmap(sb, desc); in ext4_read_inode_bitmap() 127 if (desc->bg_flags & cpu_to_le16(EXT4_BG_INODE_UNINIT)) { in ext4_read_inode_bitmap() 128 ext4_init_inode_bitmap(sb, bh, block_group, desc); in ext4_read_inode_bitmap() 315 struct ext4_group_desc *desc, *best_desc = NULL; in find_group_dir() local 323 desc = ext4_get_group_desc(sb, group, NULL); in find_group_dir() 324 if (!desc || !ext4_free_inodes_count(sb, desc)) in find_group_dir() 326 if (ext4_free_inodes_count(sb, desc) < avefreei) in find_group_dir() [all …]
|
D | balloc.c | 211 struct ext4_group_desc *desc; in ext4_get_group_desc() local 234 desc = (struct ext4_group_desc *)( in ext4_get_group_desc() 239 return desc; in ext4_get_group_desc() 243 struct ext4_group_desc *desc, in ext4_valid_block_bitmap() argument 264 bitmap_blk = ext4_block_bitmap(sb, desc); in ext4_valid_block_bitmap() 271 bitmap_blk = ext4_inode_bitmap(sb, desc); in ext4_valid_block_bitmap() 278 bitmap_blk = ext4_inode_table(sb, desc); in ext4_valid_block_bitmap() 307 struct ext4_group_desc *desc; in ext4_read_block_bitmap() local 311 desc = ext4_get_group_desc(sb, block_group, NULL); in ext4_read_block_bitmap() 312 if (!desc) in ext4_read_block_bitmap() [all …]
|
D | group.h | 21 struct ext4_group_desc *desc); 22 #define ext4_free_blocks_after_init(sb, group, desc) \ argument 23 ext4_init_block_bitmap(sb, NULL, group, desc) 27 struct ext4_group_desc *desc);
|
/fs/ubifs/ |
D | debug.h | 348 int dbg_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, 350 int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, 352 int dbg_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, 354 int dbg_leb_erase(struct ubi_volume_desc *desc, int lnum); 355 int dbg_leb_unmap(struct ubi_volume_desc *desc, int lnum); 356 int dbg_is_mapped(struct ubi_volume_desc *desc, int lnum); 357 int dbg_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); 359 static inline int dbg_read(struct ubi_volume_desc *desc, int lnum, char *buf, in dbg_read() argument 362 return dbg_leb_read(desc, lnum, buf, offset, len, 0); in dbg_read() 365 static inline int dbg_write(struct ubi_volume_desc *desc, int lnum, in dbg_write() argument [all …]
|
D | debug.c | 2208 static struct ubifs_info *dbg_find_info(struct ubi_volume_desc *desc) in dbg_find_info() argument 2214 if (fmi->c->ubi == desc) { in dbg_find_info() 2224 static int in_failure_mode(struct ubi_volume_desc *desc) in in_failure_mode() argument 2226 struct ubifs_info *c = dbg_find_info(desc); in in_failure_mode() 2233 static int do_fail(struct ubi_volume_desc *desc, int lnum, int write) in do_fail() argument 2235 struct ubifs_info *c = dbg_find_info(desc); in do_fail() 2339 int dbg_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, in dbg_leb_read() argument 2342 if (in_failure_mode(desc)) in dbg_leb_read() 2344 return ubi_leb_read(desc, lnum, buf, offset, len, check); in dbg_leb_read() 2347 int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, in dbg_leb_write() argument [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() 317 struct hfs_bnode_desc *desc; in hfs_bnode_find() local 340 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + node->page_offset); in hfs_bnode_find() 341 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find() 342 node->next = be32_to_cpu(desc->next); in hfs_bnode_find() 343 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() [all …]
|
D | btree.c | 175 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local 192 desc.next = 0; in hfs_bmap_new_bmap() 193 desc.prev = 0; in hfs_bmap_new_bmap() 194 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap() 195 desc.height = 0; in hfs_bmap_new_bmap() 196 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap() 197 desc.reserved = 0; in hfs_bmap_new_bmap() 198 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
|
/fs/hfsplus/ |
D | bnode.c | 296 struct hfs_bnode_desc desc; in hfs_bnode_dump() local 301 hfs_bnode_read(node, &desc, 0, sizeof(desc)); in hfs_bnode_dump() 303 be32_to_cpu(desc.next), be32_to_cpu(desc.prev), in hfs_bnode_dump() 304 desc.type, desc.height, be16_to_cpu(desc.num_recs)); in hfs_bnode_dump() 307 for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { in hfs_bnode_dump() 477 struct hfs_bnode_desc *desc; in hfs_bnode_find() local 500 desc = (struct hfs_bnode_desc *)(kmap(node->page[0]) + node->page_offset); in hfs_bnode_find() 501 node->prev = be32_to_cpu(desc->prev); in hfs_bnode_find() 502 node->next = be32_to_cpu(desc->next); in hfs_bnode_find() 503 node->num_recs = be16_to_cpu(desc->num_recs); in hfs_bnode_find() [all …]
|
D | btree.c | 153 struct hfs_bnode_desc desc; in hfs_bmap_new_bmap() local 168 desc.next = 0; in hfs_bmap_new_bmap() 169 desc.prev = 0; in hfs_bmap_new_bmap() 170 desc.type = HFS_NODE_MAP; in hfs_bmap_new_bmap() 171 desc.height = 0; in hfs_bmap_new_bmap() 172 desc.num_recs = cpu_to_be16(1); in hfs_bmap_new_bmap() 173 desc.reserved = 0; in hfs_bmap_new_bmap() 174 hfs_bnode_write(node, &desc, 0, sizeof(desc)); in hfs_bmap_new_bmap()
|
/fs/reiserfs/ |
D | journal.c | 2008 struct reiserfs_journal_desc *desc, in journal_compare_desc_commit() argument 2011 if (get_commit_trans_id(commit) != get_desc_trans_id(desc) || in journal_compare_desc_commit() 2012 get_commit_trans_len(commit) != get_desc_trans_len(desc) || in journal_compare_desc_commit() 2029 struct reiserfs_journal_desc *desc; in journal_transaction_is_valid() local 2037 desc = (struct reiserfs_journal_desc *)d_bh->b_data; in journal_transaction_is_valid() 2038 if (get_desc_trans_len(desc) > 0 in journal_transaction_is_valid() 2041 && get_desc_trans_id(desc) > *oldest_invalid_trans_id) { in journal_transaction_is_valid() 2046 get_desc_trans_id(desc), in journal_transaction_is_valid() 2051 && *newest_mount_id > get_desc_mount_id(desc)) { in journal_transaction_is_valid() 2056 get_desc_mount_id(desc), in journal_transaction_is_valid() [all …]
|
D | prints.c | 543 struct reiserfs_journal_desc *desc; in print_desc_block() local 548 desc = (struct reiserfs_journal_desc *)(bh->b_data); in print_desc_block() 550 (unsigned long long)bh->b_blocknr, get_desc_trans_id(desc), in print_desc_block() 551 get_desc_mount_id(desc), get_desc_trans_len(desc)); in print_desc_block()
|
/fs/nfsd/ |
D | nfs4recover.c | 97 struct hash_desc desc; in nfs4_make_rec_clidname() local 103 desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in nfs4_make_rec_clidname() 104 desc.tfm = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); in nfs4_make_rec_clidname() 105 if (IS_ERR(desc.tfm)) in nfs4_make_rec_clidname() 107 cksum.len = crypto_hash_digestsize(desc.tfm); in nfs4_make_rec_clidname() 114 if (crypto_hash_digest(&desc, &sg, sg.length, cksum.data)) in nfs4_make_rec_clidname() 122 crypto_free_hash(desc.tfm); in nfs4_make_rec_clidname()
|
/fs/ocfs2/ |
D | aops.c | 1328 struct ocfs2_write_cluster_desc *desc; in ocfs2_write_cluster_by_desc() local 1332 desc = &wc->w_desc[i]; in ocfs2_write_cluster_by_desc() 1343 ret = ocfs2_write_cluster(mapping, desc->c_phys, in ocfs2_write_cluster_by_desc() 1344 desc->c_unwritten, data_ac, meta_ac, in ocfs2_write_cluster_by_desc() 1345 wc, desc->c_cpos, pos, local_len); in ocfs2_write_cluster_by_desc() 1369 struct ocfs2_write_cluster_desc *desc; in ocfs2_set_target_boundaries() local 1393 desc = &wc->w_desc[0]; in ocfs2_set_target_boundaries() 1394 if (ocfs2_should_zero_cluster(desc)) in ocfs2_set_target_boundaries() 1396 desc->c_cpos, in ocfs2_set_target_boundaries() 1400 desc = &wc->w_desc[wc->w_clen - 1]; in ocfs2_set_target_boundaries() [all …]
|
/fs/ecryptfs/ |
D | keystore.c | 484 struct blkcipher_desc desc; member 517 s->desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in ecryptfs_write_tag_70_packet() 520 &s->desc.tfm, in ecryptfs_write_tag_70_packet() 529 s->block_size = crypto_blkcipher_blocksize(s->desc.tfm); in ecryptfs_write_tag_70_packet() 715 s->desc.info = s->iv; in ecryptfs_write_tag_70_packet() 717 s->desc.tfm, in ecryptfs_write_tag_70_packet() 730 rc = crypto_blkcipher_encrypt_iv(&s->desc, &s->dst_sg, &s->src_sg, in ecryptfs_write_tag_70_packet() 765 struct blkcipher_desc desc; member 804 s->desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in ecryptfs_parse_tag_70_packet() 858 rc = ecryptfs_get_tfm_and_mutex_for_cipher_name(&s->desc.tfm, in ecryptfs_parse_tag_70_packet() [all …]
|
D | crypto.c | 99 struct hash_desc desc = { in ecryptfs_calculate_md5() local 107 if (!desc.tfm) { in ecryptfs_calculate_md5() 108 desc.tfm = crypto_alloc_hash(ECRYPTFS_DEFAULT_HASH, 0, in ecryptfs_calculate_md5() 110 if (IS_ERR(desc.tfm)) { in ecryptfs_calculate_md5() 111 rc = PTR_ERR(desc.tfm); in ecryptfs_calculate_md5() 117 crypt_stat->hash_tfm = desc.tfm; in ecryptfs_calculate_md5() 119 rc = crypto_hash_init(&desc); in ecryptfs_calculate_md5() 126 rc = crypto_hash_update(&desc, &sg, len); in ecryptfs_calculate_md5() 133 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() 342 struct blkcipher_desc desc = { in encrypt_scatterlist() local [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_stats.c | 38 char *desc; in xfs_read_xfsstats() member 64 len += sprintf(buffer + len, "%s", xstats[i].desc); in xfs_read_xfsstats()
|