/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 | 232 cifs_posix_to_fattr(struct cifs_fattr *fattr, struct smb2_posix_info *info, in cifs_posix_to_fattr() argument 237 posix_info_parse(info, NULL, &parsed); in cifs_posix_to_fattr() 240 fattr->cf_uniqueid = le64_to_cpu(info->Inode); in cifs_posix_to_fattr() 241 fattr->cf_bytes = le64_to_cpu(info->AllocationSize); in cifs_posix_to_fattr() 242 fattr->cf_eof = le64_to_cpu(info->EndOfFile); in cifs_posix_to_fattr() 244 fattr->cf_atime = cifs_NTtimeToUnix(info->LastAccessTime); in cifs_posix_to_fattr() 245 fattr->cf_mtime = cifs_NTtimeToUnix(info->LastWriteTime); in cifs_posix_to_fattr() 246 fattr->cf_ctime = cifs_NTtimeToUnix(info->CreationTime); in cifs_posix_to_fattr() 248 fattr->cf_nlink = le32_to_cpu(info->HardLinks); in cifs_posix_to_fattr() 249 fattr->cf_cifsattrs = le32_to_cpu(info->DosAttributes); in cifs_posix_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() 50 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument 52 struct super_block *sb = info->dqi_sb; in read_blk() [all …]
|
D | quota_v2.c | 95 struct mem_dqinfo *info = &dqopt->info[type]; in v2_read_file_info() local 106 if ((info->dqi_fmt_id == QFMT_VFS_V0 && version != 0) || in v2_read_file_info() 107 (info->dqi_fmt_id == QFMT_VFS_V1 && version != 1)) { in v2_read_file_info() 122 info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); in v2_read_file_info() 123 if (!info->dqi_priv) { in v2_read_file_info() 127 qinfo = info->dqi_priv; in v2_read_file_info() 130 info->dqi_max_spc_limit = 0xffffffffLL << QUOTABLOCK_BITS; in v2_read_file_info() 131 info->dqi_max_ino_limit = 0xffffffff; in v2_read_file_info() 138 info->dqi_max_spc_limit = 0x7fffffffffffffffLL; /* 2^63-1 */ in v2_read_file_info() 139 info->dqi_max_ino_limit = 0x7fffffffffffffffLL; in v2_read_file_info() [all …]
|
/fs/dlm/ |
D | plock.c | 32 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/xfs/ |
D | xfs_fsmap.c | 175 struct xfs_getfsmap_info *info); 194 struct xfs_getfsmap_info *info, in xfs_getfsmap_is_shared() argument 208 if (!info->pag) in xfs_getfsmap_is_shared() 213 cur = xfs_refcountbt_init_cursor(mp, tp, info->agf_bp, info->pag); in xfs_getfsmap_is_shared() 230 struct xfs_getfsmap_info *info) in xfs_getfsmap_format() argument 236 rec = &info->fsmap_recs[info->head->fmh_entries++]; in xfs_getfsmap_format() 247 struct xfs_getfsmap_info *info, in xfs_getfsmap_helper() argument 263 if (xfs_rmap_compare(rec, &info->low) < 0) { in xfs_getfsmap_helper() 265 if (info->next_daddr < rec_daddr) in xfs_getfsmap_helper() 266 info->next_daddr = rec_daddr; in xfs_getfsmap_helper() [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 (info->gfi_head->fmh_entries == UINT_MAX) in ext4_getfsmap_helper() 114 if (rec_fsblk > info->gfi_next_fsblk) in ext4_getfsmap_helper() [all …]
|
D | dir.c | 467 struct dir_private_info *info; in ext4_htree_store_dirent() local 470 info = dir_file->private_data; in ext4_htree_store_dirent() 471 p = &info->root.rb_node; in ext4_htree_store_dirent() 511 rb_insert_color(&new_fn->rb_hash, &info->root); in ext4_htree_store_dirent() 525 struct dir_private_info *info = file->private_data; in call_filldir() local 541 info->extra_fname = fname; in call_filldir() 551 struct dir_private_info *info = file->private_data; in ext4_dx_readdir() local 556 if (!info) { in ext4_dx_readdir() 557 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir() 558 if (!info) in ext4_dx_readdir() [all …]
|
/fs/xfs/scrub/ |
D | bmap.c | 103 struct xchk_bmap_info *info, in xchk_bmap_get_rmap() argument 114 if (info->whichfork == XFS_ATTR_FORK) in xchk_bmap_get_rmap() 123 if (info->whichfork == XFS_COW_FORK) in xchk_bmap_get_rmap() 133 if (info->is_shared) { in xchk_bmap_get_rmap() 134 error = xfs_rmap_lookup_le_range(info->sc->sa.rmap_cur, agbno, in xchk_bmap_get_rmap() 136 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap() 137 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() 145 error = xfs_rmap_lookup_le(info->sc->sa.rmap_cur, agbno, 0, owner, in xchk_bmap_get_rmap() 147 if (!xchk_should_check_xref(info->sc, &error, in xchk_bmap_get_rmap() 148 &info->sc->sa.rmap_cur)) in xchk_bmap_get_rmap() [all …]
|
/fs/btrfs/ |
D | super.c | 499 static int parse_rescue_options(struct btrfs_fs_info *info, const char *options) in parse_rescue_options() argument 520 btrfs_info(info, in parse_rescue_options() 522 btrfs_set_opt(info->mount_opt, USEBACKUPROOT); in parse_rescue_options() 525 btrfs_set_and_info(info, NOLOGREPLAY, in parse_rescue_options() 529 btrfs_set_and_info(info, IGNOREBADROOTS, in parse_rescue_options() 533 btrfs_set_and_info(info, IGNOREDATACSUMS, in parse_rescue_options() 537 btrfs_info(info, "enabling all of the rescue options"); in parse_rescue_options() 538 btrfs_set_and_info(info, IGNOREDATACSUMS, in parse_rescue_options() 540 btrfs_set_and_info(info, IGNOREBADROOTS, in parse_rescue_options() 542 btrfs_set_and_info(info, NOLOGREPLAY, in parse_rescue_options() [all …]
|
D | free-space-cache.c | 37 struct btrfs_free_space *info); 39 struct btrfs_free_space *info); 46 struct btrfs_free_space *info, u64 offset, 871 struct btrfs_free_space *info; in copy_free_space_cache() local 876 info = rb_entry(n, struct btrfs_free_space, offset_index); in copy_free_space_cache() 877 if (!info->bitmap) { in copy_free_space_cache() 878 unlink_free_space(ctl, info); in copy_free_space_cache() 879 ret = btrfs_add_free_space(block_group, info->offset, in copy_free_space_cache() 880 info->bytes); in copy_free_space_cache() 881 kmem_cache_free(btrfs_free_space_cachep, info); in copy_free_space_cache() [all …]
|
/fs/notify/fanotify/ |
D | fanotify.h | 77 static inline int fanotify_info_dir_fh_len(struct fanotify_info *info) in fanotify_info_dir_fh_len() argument 79 if (!info->dir_fh_totlen || in fanotify_info_dir_fh_len() 80 WARN_ON_ONCE(info->dir_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_dir_fh_len() 83 return info->dir_fh_totlen - FANOTIFY_FH_HDR_LEN; in fanotify_info_dir_fh_len() 86 static inline struct fanotify_fh *fanotify_info_dir_fh(struct fanotify_info *info) in fanotify_info_dir_fh() argument 90 return (struct fanotify_fh *)info->buf; in fanotify_info_dir_fh() 93 static inline int fanotify_info_file_fh_len(struct fanotify_info *info) in fanotify_info_file_fh_len() argument 95 if (!info->file_fh_totlen || in fanotify_info_file_fh_len() 96 WARN_ON_ONCE(info->file_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_file_fh_len() 99 return info->file_fh_totlen - FANOTIFY_FH_HDR_LEN; in fanotify_info_file_fh_len() [all …]
|
/fs/bfs/ |
D | inode.c | 120 struct bfs_sb_info *info = BFS_SB(inode->i_sb); in bfs_write_inode() local 133 mutex_lock(&info->bfs_lock); in bfs_write_inode() 160 mutex_unlock(&info->bfs_lock); in bfs_write_inode() 170 struct bfs_sb_info *info = BFS_SB(s); in bfs_evict_inode() local 186 mutex_lock(&info->bfs_lock); in bfs_evict_inode() 194 info->si_freeb += bi->i_eblock + 1 - bi->i_sblock; in bfs_evict_inode() 195 info->si_freei++; in bfs_evict_inode() 196 clear_bit(ino, info->si_imap); in bfs_evict_inode() 205 if (info->si_lf_eblk == bi->i_eblock) in bfs_evict_inode() 206 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, int timeo, int retrans) in nfs_mount() argument 150 .fh = info->fh, in nfs_mount() 151 .auth_count = info->auth_flav_len, in nfs_mount() 152 .auth_flavors = info->auth_flavs, in nfs_mount() 155 .rpc_argp = info->dirpath, in nfs_mount() 159 .net = info->net, in nfs_mount() 160 .protocol = info->protocol, in nfs_mount() 161 .address = info->sap, in nfs_mount() 162 .addrsize = info->salen, in nfs_mount() 164 .servername = info->hostname, in nfs_mount() [all …]
|
/fs/ |
D | binfmt_elf.c | 1802 struct elf_note_info *info, in fill_note_info() argument 1812 info->size = 0; in fill_note_info() 1813 info->thread = NULL; in fill_note_info() 1817 info->psinfo.data = NULL; /* So we don't free this wrongly */ in fill_note_info() 1821 fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in fill_note_info() 1826 info->thread_notes = 0; in fill_note_info() 1829 ++info->thread_notes; in fill_note_info() 1835 if (unlikely(info->thread_notes == 0) || in fill_note_info() 1852 notes[info->thread_notes]), in fill_note_info() 1858 if (ct->task == dump_task || !info->thread) { in fill_note_info() [all …]
|
/fs/kernfs/ |
D | mount.c | 75 struct kernfs_super_info *info = kernfs_info(sb); in __kernfs_fh_to_dentry() local 101 kn = kernfs_find_and_get_node_by_id(info->root, id); in __kernfs_fh_to_dentry() 238 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_fill_super() local 243 info->sb = sb; in kernfs_fill_super() 251 if (info->root->flags & KERNFS_ROOT_SUPPORT_EXPORTOP) in kernfs_fill_super() 260 inode = kernfs_get_inode(sb, info->root->kn); in kernfs_fill_super() 281 struct kernfs_super_info *info = fc->s_fs_info; in kernfs_test_super() local 283 return sb_info->root == info->root && sb_info->ns == info->ns; in kernfs_test_super() 302 struct kernfs_super_info *info = kernfs_info(sb); in kernfs_super_ns() local 304 return info->ns; in kernfs_super_ns() [all …]
|
/fs/vboxsf/ |
D | utils.c | 49 const struct shfl_fsobjinfo *info, bool reinit) in vboxsf_init_inode() argument 55 attr = &info->attr; in vboxsf_init_inode() 121 inode->i_size = info->size; in vboxsf_init_inode() 124 allocated = info->allocated + 511; in vboxsf_init_inode() 129 info->access_time.ns_relative_to_unix_epoch); in vboxsf_init_inode() 131 info->change_time.ns_relative_to_unix_epoch); in vboxsf_init_inode() 133 info->modification_time.ns_relative_to_unix_epoch); in vboxsf_init_inode() 155 struct shfl_fsobjinfo *info) in vboxsf_stat() argument 170 if (info) in vboxsf_stat() 171 *info = params.info; in vboxsf_stat() [all …]
|
D | dir.c | 99 struct shfl_dirinfo *info; in vboxsf_dir_emit() local 121 for (i = 0, info = b->buf; i < ctx->pos - cur; i++) { in vboxsf_dir_emit() 122 end = &info->name.string.utf8[info->name.size]; in vboxsf_dir_emit() 126 info = end; in vboxsf_dir_emit() 129 end = &info->name.string.utf8[info->name.size]; in vboxsf_dir_emit() 134 d_type = vboxsf_get_d_type(info->info.attr.mode); in vboxsf_dir_emit() 150 info->name.string.utf8, in vboxsf_dir_emit() 151 info->name.length); in vboxsf_dir_emit() 162 return dir_emit(ctx, info->name.string.utf8, info->name.length, in vboxsf_dir_emit() 235 struct shfl_fsobjinfo *info) in vboxsf_dir_instantiate() argument [all …]
|
/fs/jbd2/ |
D | recovery.c | 39 struct recovery_info *info, enum passtype pass); 232 struct recovery_info *info, enum passtype pass) in fc_do_one_pass() argument 234 unsigned int expected_commit_id = info->end_transaction; in fc_do_one_pass() 285 struct recovery_info info; in jbd2_journal_recover() local 289 memset(&info, 0, sizeof(info)); in jbd2_journal_recover() 308 err = do_one_pass(journal, &info, PASS_SCAN); in jbd2_journal_recover() 310 err = do_one_pass(journal, &info, PASS_REVOKE); in jbd2_journal_recover() 312 err = do_one_pass(journal, &info, PASS_REPLAY); in jbd2_journal_recover() 316 err, info.start_transaction, info.end_transaction); in jbd2_journal_recover() 318 info.nr_replays, info.nr_revoke_hits, info.nr_revokes); in jbd2_journal_recover() [all …]
|
/fs/pstore/ |
D | zone.c | 203 struct pstore_zone_info *info = pstore_zone_cxt.pstore_zone_info; in psz_zone_write() local 221 writeop = is_on_panic() ? info->panic_write : info->write; in psz_zone_write() 334 struct pstore_zone_info *info = cxt->pstore_zone_info; in psz_kmsg_recover_data() local 340 if (!info->read) in psz_kmsg_recover_data() 363 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data() 373 struct pstore_zone_info *info = cxt->pstore_zone_info; in psz_kmsg_recover_meta() local 386 if (!info->read) in psz_kmsg_recover_meta() 396 rcnt = info->read((char *)buf, len, zone->off); in psz_kmsg_recover_meta() 483 struct pstore_zone_info *info = cxt->pstore_zone_info; in psz_recover_zone() local 498 if (unlikely(!info->read)) in psz_recover_zone() [all …]
|
/fs/exfat/ |
D | namei.c | 477 static inline loff_t exfat_make_i_pos(struct exfat_dir_entry *info) in exfat_make_i_pos() argument 479 return ((loff_t) info->dir.dir << 32) | (info->entry & 0xffffffff); in exfat_make_i_pos() 484 struct exfat_dir_entry *info) in exfat_add_entry() argument 532 info->dir = *p_dir; in exfat_add_entry() 533 info->entry = dentry; in exfat_add_entry() 534 info->flags = ALLOC_NO_FAT_CHAIN; in exfat_add_entry() 535 info->type = type; in exfat_add_entry() 538 info->attr = ATTR_ARCHIVE; in exfat_add_entry() 539 info->start_clu = EXFAT_EOF_CLUSTER; in exfat_add_entry() 540 info->size = 0; in exfat_add_entry() [all …]
|
D | inode.c | 532 struct exfat_inode_info *info; in exfat_iget() local 537 hlist_for_each_entry(info, head, i_hash_fat) { in exfat_iget() 538 WARN_ON(info->vfs_inode.i_sb != sb); in exfat_iget() 540 if (i_pos != info->i_pos) in exfat_iget() 542 inode = igrab(&info->vfs_inode); in exfat_iget() 551 static int exfat_fill_inode(struct inode *inode, struct exfat_dir_entry *info) in exfat_fill_inode() argument 555 loff_t size = info->size; in exfat_fill_inode() 557 ei->dir = info->dir; in exfat_fill_inode() 558 ei->entry = info->entry; in exfat_fill_inode() 559 ei->attr = info->attr; in exfat_fill_inode() [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() 343 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() local 344 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 …]
|