/fs/cifs/ |
D | smbdirect.c | 15 struct smbd_connection *info); 17 struct smbd_connection *info); 19 struct smbd_connection *info, 21 static int allocate_receive_buffers(struct smbd_connection *info, int num_buf); 22 static void destroy_receive_buffers(struct smbd_connection *info); 25 struct smbd_connection *info, struct smbd_response *response); 27 struct smbd_connection *info, 30 struct smbd_connection *info); 33 struct smbd_connection *info, 36 static int smbd_post_send_empty(struct smbd_connection *info); [all …]
|
D | readdir.c | 198 cifs_dir_info_to_fattr(struct cifs_fattr *fattr, FILE_DIRECTORY_INFO *info, in cifs_dir_info_to_fattr() argument 202 fattr->cf_cifsattrs = le32_to_cpu(info->ExtFileAttributes); in cifs_dir_info_to_fattr() 203 fattr->cf_eof = le64_to_cpu(info->EndOfFile); in cifs_dir_info_to_fattr() 204 fattr->cf_bytes = le64_to_cpu(info->AllocationSize); in cifs_dir_info_to_fattr() 205 fattr->cf_createtime = le64_to_cpu(info->CreationTime); in cifs_dir_info_to_fattr() 206 fattr->cf_atime = cifs_NTtimeToUnix(info->LastAccessTime); in cifs_dir_info_to_fattr() 207 fattr->cf_ctime = cifs_NTtimeToUnix(info->ChangeTime); in cifs_dir_info_to_fattr() 208 fattr->cf_mtime = cifs_NTtimeToUnix(info->LastWriteTime); in cifs_dir_info_to_fattr() 214 cifs_std_info_to_fattr(struct cifs_fattr *fattr, FIND_FILE_STANDARD_INFO *info, in cifs_std_info_to_fattr() argument 220 fattr->cf_atime = cnvrtDosUnixTm(info->LastAccessDate, in cifs_std_info_to_fattr() [all …]
|
/fs/quota/ |
D | quota_tree.c | 26 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth) in __get_index() argument 28 unsigned int epb = info->dqi_usable_bs >> 2; in __get_index() 30 depth = info->dqi_qtree_depth - depth - 1; in __get_index() 36 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument 40 return __get_index(info, id, depth); in get_index() 44 static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info) in qtree_dqstr_in_blk() argument 46 return (info->dqi_usable_bs - sizeof(struct qt_disk_dqdbheader)) in qtree_dqstr_in_blk() 47 / info->dqi_entry_size; in qtree_dqstr_in_blk() 59 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 61 struct super_block *sb = info->dqi_sb; in read_blk() [all …]
|
D | quota_v2.c | 97 struct mem_dqinfo *info = &dqopt->info[type]; in v2_read_file_info() local 108 if ((info->dqi_fmt_id == QFMT_VFS_V0 && version != 0) || in v2_read_file_info() 109 (info->dqi_fmt_id == QFMT_VFS_V1 && version != 1)) { in v2_read_file_info() 124 info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); in v2_read_file_info() 125 if (!info->dqi_priv) { in v2_read_file_info() 129 qinfo = info->dqi_priv; in v2_read_file_info() 132 info->dqi_max_spc_limit = 0xffffffffLL << QUOTABLOCK_BITS; in v2_read_file_info() 133 info->dqi_max_ino_limit = 0xffffffff; in v2_read_file_info() 140 info->dqi_max_spc_limit = 0x7fffffffffffffffLL; /* 2^63-1 */ in v2_read_file_info() 141 info->dqi_max_ino_limit = 0x7fffffffffffffffLL; in v2_read_file_info() [all …]
|
/fs/xfs/ |
D | xfs_fsmap.c | 174 struct xfs_getfsmap_info *info); 193 struct xfs_getfsmap_info *info, in xfs_getfsmap_is_shared() argument 207 if (info->agno == NULLAGNUMBER) in xfs_getfsmap_is_shared() 212 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, in xfs_getfsmap_is_shared() 213 info->agno); in xfs_getfsmap_is_shared() 233 struct xfs_getfsmap_info *info, in xfs_getfsmap_helper() argument 249 if (xfs_rmap_compare(rec, &info->low) < 0) { in xfs_getfsmap_helper() 251 if (info->next_daddr < rec_daddr) in xfs_getfsmap_helper() 252 info->next_daddr = rec_daddr; in xfs_getfsmap_helper() 257 if (info->head->fmh_count == 0) { in xfs_getfsmap_helper() [all …]
|
/fs/dlm/ |
D | plock.c | 25 struct dlm_plock_info info; member 37 static inline void set_version(struct dlm_plock_info *info) in set_version() argument 39 info->version[0] = DLM_PLOCK_VERSION_MAJOR; in set_version() 40 info->version[1] = DLM_PLOCK_VERSION_MINOR; in set_version() 41 info->version[2] = DLM_PLOCK_VERSION_PATCH; in set_version() 44 static int check_version(struct dlm_plock_info *info) in check_version() argument 46 if ((DLM_PLOCK_VERSION_MAJOR != info->version[0]) || in check_version() 47 (DLM_PLOCK_VERSION_MINOR < info->version[1])) { in check_version() 53 info->version[0], in check_version() 54 info->version[1], in check_version() [all …]
|
/fs/ext4/ |
D | fsmap.c | 60 struct ext4_getfsmap_info *info); 74 static bool ext4_getfsmap_rec_before_low_key(struct ext4_getfsmap_info *info, in ext4_getfsmap_rec_before_low_key() argument 77 return rec->fmr_physical < info->gfi_low.fmr_physical; in ext4_getfsmap_rec_before_low_key() 85 struct ext4_getfsmap_info *info, in ext4_getfsmap_helper() argument 102 if (ext4_getfsmap_rec_before_low_key(info, rec)) { in ext4_getfsmap_helper() 104 if (info->gfi_next_fsblk < rec_fsblk) in ext4_getfsmap_helper() 105 info->gfi_next_fsblk = rec_fsblk; in ext4_getfsmap_helper() 110 if (info->gfi_head->fmh_count == 0) { in ext4_getfsmap_helper() 111 if (rec_fsblk > info->gfi_next_fsblk) in ext4_getfsmap_helper() 112 info->gfi_head->fmh_entries++; in ext4_getfsmap_helper() [all …]
|
D | dir.c | 449 struct dir_private_info *info; in ext4_htree_store_dirent() local 452 info = dir_file->private_data; in ext4_htree_store_dirent() 453 p = &info->root.rb_node; in ext4_htree_store_dirent() 494 rb_insert_color(&new_fn->rb_hash, &info->root); in ext4_htree_store_dirent() 508 struct dir_private_info *info = file->private_data; in call_filldir() local 524 info->extra_fname = fname; in call_filldir() 534 struct dir_private_info *info = file->private_data; in ext4_dx_readdir() local 539 if (!info) { in ext4_dx_readdir() 540 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir() 541 if (!info) in ext4_dx_readdir() [all …]
|
/fs/xfs/scrub/ |
D | bmap.c | 85 struct xchk_bmap_info *info, in xchk_bmap_get_rmap() argument 96 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap() 103 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap() 113 if (info->is_shared) { in xchk_bmap_get_rmap() 114 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 116 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap() 117 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() 125 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap() 127 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap() 128 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() [all …]
|
/fs/btrfs/ |
D | super.c | 427 int btrfs_parse_options(struct btrfs_fs_info *info, char *options, in btrfs_parse_options() argument 441 cache_gen = btrfs_super_cache_generation(info->super_copy); in btrfs_parse_options() 442 if (btrfs_fs_compat_ro(info, FREE_SPACE_TREE)) in btrfs_parse_options() 443 btrfs_set_opt(info->mount_opt, FREE_SPACE_TREE); in btrfs_parse_options() 445 btrfs_set_opt(info->mount_opt, SPACE_CACHE); in btrfs_parse_options() 462 btrfs_info(info, "allowing degraded mounts"); in btrfs_parse_options() 463 btrfs_set_opt(info->mount_opt, DEGRADED); in btrfs_parse_options() 476 btrfs_set_and_info(info, NODATASUM, in btrfs_parse_options() 480 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options() 481 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options() [all …]
|
D | free-space-cache.c | 35 struct btrfs_free_space *info); 37 struct btrfs_free_space *info); 1454 struct btrfs_free_space *info; in tree_insert_offset() local 1458 info = rb_entry(parent, struct btrfs_free_space, offset_index); in tree_insert_offset() 1460 if (offset < info->offset) { in tree_insert_offset() 1462 } else if (offset > info->offset) { in tree_insert_offset() 1479 if (info->bitmap) { in tree_insert_offset() 1485 if (!info->bitmap) { in tree_insert_offset() 1625 struct btrfs_free_space *info) in __unlink_free_space() argument 1627 rb_erase(&info->offset_index, &ctl->free_space_offset); in __unlink_free_space() [all …]
|
D | space-info.c | 26 void btrfs_clear_space_info_full(struct btrfs_fs_info *info) in btrfs_clear_space_info_full() argument 28 struct list_head *head = &info->space_info; in btrfs_clear_space_info_full() 37 static int create_space_info(struct btrfs_fs_info *info, u64 flags) in create_space_info() argument 66 ret = btrfs_sysfs_add_space_info_type(info, space_info); in create_space_info() 70 list_add_rcu(&space_info->list, &info->space_info); in create_space_info() 72 info->data_sinfo = space_info; in create_space_info() 114 void btrfs_update_space_info(struct btrfs_fs_info *info, u64 flags, in btrfs_update_space_info() argument 124 found = btrfs_find_space_info(info, flags); in btrfs_update_space_info() 134 btrfs_try_granting_tickets(info, found); in btrfs_update_space_info() 139 struct btrfs_space_info *btrfs_find_space_info(struct btrfs_fs_info *info, in btrfs_find_space_info() argument [all …]
|
D | block-group.c | 151 static int btrfs_add_block_group_cache(struct btrfs_fs_info *info, in btrfs_add_block_group_cache() argument 158 spin_lock(&info->block_group_cache_lock); in btrfs_add_block_group_cache() 159 p = &info->block_group_cache_tree.rb_node; in btrfs_add_block_group_cache() 170 spin_unlock(&info->block_group_cache_lock); in btrfs_add_block_group_cache() 177 &info->block_group_cache_tree); in btrfs_add_block_group_cache() 179 if (info->first_logical_byte > block_group->key.objectid) in btrfs_add_block_group_cache() 180 info->first_logical_byte = block_group->key.objectid; in btrfs_add_block_group_cache() 182 spin_unlock(&info->block_group_cache_lock); in btrfs_add_block_group_cache() 192 struct btrfs_fs_info *info, u64 bytenr, int contains) in block_group_cache_tree_search() argument 198 spin_lock(&info->block_group_cache_lock); in block_group_cache_tree_search() [all …]
|
D | free-space-tree.c | 52 struct btrfs_free_space_info *info; in add_new_free_space_info() local 61 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info() 66 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info() 68 btrfs_set_free_space_extent_count(leaf, info, 0); in add_new_free_space_info() 69 btrfs_set_free_space_flags(leaf, info, 0); in add_new_free_space_info() 188 struct btrfs_free_space_info *info; in convert_free_space_to_bitmaps() local 258 info = search_free_space_info(trans, block_group, path, 1); in convert_free_space_to_bitmaps() 259 if (IS_ERR(info)) { in convert_free_space_to_bitmaps() 260 ret = PTR_ERR(info); in convert_free_space_to_bitmaps() 264 flags = btrfs_free_space_flags(leaf, info); in convert_free_space_to_bitmaps() [all …]
|
/fs/bfs/ |
D | inode.c | 119 struct bfs_sb_info *info = BFS_SB(inode->i_sb); in bfs_write_inode() local 132 mutex_lock(&info->bfs_lock); in bfs_write_inode() 159 mutex_unlock(&info->bfs_lock); in bfs_write_inode() 169 struct bfs_sb_info *info = BFS_SB(s); in bfs_evict_inode() local 185 mutex_lock(&info->bfs_lock); in bfs_evict_inode() 193 info->si_freeb += bi->i_eblock + 1 - bi->i_sblock; in bfs_evict_inode() 194 info->si_freei++; in bfs_evict_inode() 195 clear_bit(ino, info->si_imap); in bfs_evict_inode() 204 if (info->si_lf_eblk == bi->i_eblock) in bfs_evict_inode() 205 info->si_lf_eblk = bi->i_sblock - 1; in bfs_evict_inode() [all …]
|
D | dir.c | 84 struct bfs_sb_info *info = BFS_SB(s); in bfs_create() local 90 mutex_lock(&info->bfs_lock); in bfs_create() 91 ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); in bfs_create() 92 if (ino > info->si_lasti) { in bfs_create() 93 mutex_unlock(&info->bfs_lock); in bfs_create() 97 set_bit(ino, info->si_imap); in bfs_create() 98 info->si_freei--; in bfs_create() 116 mutex_unlock(&info->bfs_lock); in bfs_create() 120 mutex_unlock(&info->bfs_lock); in bfs_create() 131 struct bfs_sb_info *info = BFS_SB(dir->i_sb); in bfs_lookup() local [all …]
|
D | file.c | 70 struct bfs_sb_info *info = BFS_SB(sb); in bfs_get_block() local 95 if (phys >= info->si_blocks) in bfs_get_block() 99 mutex_lock(&info->bfs_lock); in bfs_get_block() 106 if (bi->i_eblock == info->si_lf_eblk) { in bfs_get_block() 110 info->si_freeb -= phys - bi->i_eblock; in bfs_get_block() 111 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block() 118 phys = info->si_lf_eblk + 1; in bfs_get_block() 119 if (phys + block >= info->si_blocks) { in bfs_get_block() 139 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block() 145 info->si_freeb -= bi->i_eblock - bi->i_sblock + 1 - inode->i_blocks; in bfs_get_block() [all …]
|
/fs/nfs/ |
D | mount_clnt.c | 146 int nfs_mount(struct nfs_mount_request *info) in nfs_mount() argument 149 .fh = info->fh, in nfs_mount() 150 .auth_count = info->auth_flav_len, in nfs_mount() 151 .auth_flavors = info->auth_flavs, in nfs_mount() 154 .rpc_argp = info->dirpath, in nfs_mount() 158 .net = info->net, in nfs_mount() 159 .protocol = info->protocol, in nfs_mount() 160 .address = info->sap, in nfs_mount() 161 .addrsize = info->salen, in nfs_mount() 162 .servername = info->hostname, in nfs_mount() [all …]
|
D | proc.c | 55 struct nfs_fsinfo *info) in nfs_proc_get_root() argument 57 struct nfs_fattr *fattr = info->fattr; in nfs_proc_get_root() 85 info->rtmax = NFS_MAXDATA; in nfs_proc_get_root() 86 info->rtpref = fsinfo.tsize; in nfs_proc_get_root() 87 info->rtmult = fsinfo.bsize; in nfs_proc_get_root() 88 info->wtmax = NFS_MAXDATA; in nfs_proc_get_root() 89 info->wtpref = fsinfo.tsize; in nfs_proc_get_root() 90 info->wtmult = fsinfo.bsize; in nfs_proc_get_root() 91 info->dtpref = fsinfo.tsize; in nfs_proc_get_root() 92 info->maxfilesize = 0x7FFFFFFF; in nfs_proc_get_root() [all …]
|
/fs/sdcardfs/ |
D | derived_perm.c | 41 struct sdcardfs_inode_info *info = SDCARDFS_I(inode); in setup_derived_state() local 43 info->data->perm = perm; in setup_derived_state() 44 info->data->userid = userid; in setup_derived_state() 45 info->data->d_uid = uid; in setup_derived_state() 46 info->data->under_android = false; in setup_derived_state() 47 info->data->under_cache = false; in setup_derived_state() 48 info->data->under_obb = false; in setup_derived_state() 57 struct sdcardfs_inode_info *info = SDCARDFS_I(d_inode(dentry)); in get_derived_permission_new() local 82 set_top(info, parent_info); in get_derived_permission_new() 89 set_top(info, parent_info); in get_derived_permission_new() [all …]
|
/fs/ |
D | binfmt_elf.c | 1761 struct elf_note_info *info, in fill_note_info() argument 1771 info->size = 0; in fill_note_info() 1772 info->thread = NULL; in fill_note_info() 1776 info->psinfo.data = NULL; /* So we don't free this wrongly */ in fill_note_info() 1780 fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in fill_note_info() 1785 info->thread_notes = 0; in fill_note_info() 1788 ++info->thread_notes; in fill_note_info() 1794 if (unlikely(info->thread_notes == 0) || in fill_note_info() 1811 notes[info->thread_notes]), in fill_note_info() 1817 if (ct->task == dump_task || !info->thread) { in fill_note_info() [all …]
|
/fs/kernfs/ |
D | mount.c | 78 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_fh_get_inode() local 85 kn = kernfs_find_and_get_node_by_ino(info->root, ino); in kernfs_fh_get_inode() 215 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_fill_super() local 219 info->sb = sb; in kernfs_fill_super() 227 if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP) in kernfs_fill_super() 236 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super() 257 struct kernfs_super_info *info = fc->s_fs_info; in kernfs_test_super() local 259 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super() 278 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_super_ns() local 280 return info->ns; in kernfs_super_ns() [all …]
|
/fs/jbd2/ |
D | recovery.c | 40 struct recovery_info *info, enum passtype pass); 249 struct recovery_info info; in jbd2_journal_recover() local 251 memset(&info, 0, sizeof(info)); in jbd2_journal_recover() 267 err = do_one_pass(journal, &info, PASS_SCAN); in jbd2_journal_recover() 269 err = do_one_pass(journal, &info, PASS_REVOKE); in jbd2_journal_recover() 271 err = do_one_pass(journal, &info, PASS_REPLAY); in jbd2_journal_recover() 275 err, info.start_transaction, info.end_transaction); in jbd2_journal_recover() 277 info.nr_replays, info.nr_revoke_hits, info.nr_revokes); in jbd2_journal_recover() 281 journal->j_transaction_sequence = ++info.end_transaction; in jbd2_journal_recover() 313 struct recovery_info info; in jbd2_journal_skip_recovery() local [all …]
|
/fs/xfs/libxfs/ |
D | xfs_da_format.c | 437 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_dir2_leaf_hdr_from_disk() 438 to->back = be32_to_cpu(from->hdr.info.back); in xfs_dir2_leaf_hdr_from_disk() 439 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_dir2_leaf_hdr_from_disk() 455 to->hdr.info.forw = cpu_to_be32(from->forw); in xfs_dir2_leaf_hdr_to_disk() 456 to->hdr.info.back = cpu_to_be32(from->back); in xfs_dir2_leaf_hdr_to_disk() 457 to->hdr.info.magic = cpu_to_be16(from->magic); in xfs_dir2_leaf_hdr_to_disk() 469 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_dir3_leaf_hdr_from_disk() 470 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_dir3_leaf_hdr_from_disk() 471 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_dir3_leaf_hdr_from_disk() 489 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_dir3_leaf_hdr_to_disk() [all …]
|
/fs/ocfs2/ |
D | quota_global.c | 219 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() local 220 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in ocfs2_quota_write() 344 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() local 345 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in ocfs2_global_read_info() 393 info->dqi_bgrace = le32_to_cpu(dinfo.dqi_bgrace); in ocfs2_global_read_info() 394 info->dqi_igrace = le32_to_cpu(dinfo.dqi_igrace); in ocfs2_global_read_info() 419 struct mem_dqinfo *info = sb_dqinfo(sb, type); in __ocfs2_global_write_info() local 420 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in __ocfs2_global_write_info() 425 info->dqi_flags &= ~DQF_INFO_DIRTY; in __ocfs2_global_write_info() 426 dinfo.dqi_bgrace = cpu_to_le32(info->dqi_bgrace); in __ocfs2_global_write_info() [all …]
|