Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 95) sorted by relevance

1234

/fs/quota/
Dquota_tree.c25 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument
27 unsigned int epb = info->dqi_usable_bs >> 2; in get_index()
30 depth = info->dqi_qtree_depth - depth - 1; in get_index()
37 static int qtree_dqstr_in_blk(struct qtree_mem_dqinfo *info) in qtree_dqstr_in_blk() argument
39 return (info->dqi_usable_bs - sizeof(struct qt_disk_dqdbheader)) in qtree_dqstr_in_blk()
40 / info->dqi_entry_size; in qtree_dqstr_in_blk()
52 static ssize_t read_blk(struct qtree_mem_dqinfo *info, uint blk, char *buf) in read_blk() argument
54 struct super_block *sb = info->dqi_sb; in read_blk()
56 memset(buf, 0, info->dqi_usable_bs); in read_blk()
57 return sb->s_op->quota_read(sb, info->dqi_type, buf, in read_blk()
[all …]
Dquota_v2.c93 struct mem_dqinfo *info = sb_dqinfo(sb, type); in v2_read_file_info() local
101 if ((info->dqi_fmt_id == QFMT_VFS_V0 && version != 0) || in v2_read_file_info()
102 (info->dqi_fmt_id == QFMT_VFS_V1 && version != 1)) in v2_read_file_info()
111 info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); in v2_read_file_info()
112 if (!info->dqi_priv) { in v2_read_file_info()
117 qinfo = info->dqi_priv; in v2_read_file_info()
120 info->dqi_maxblimit = 0xffffffff; in v2_read_file_info()
121 info->dqi_maxilimit = 0xffffffff; in v2_read_file_info()
124 info->dqi_maxblimit = 0xffffffffffffffffULL; /* 2^64-1 */ in v2_read_file_info()
125 info->dqi_maxilimit = 0xffffffffffffffffULL; in v2_read_file_info()
[all …]
Dquota_v1.c90 sb_dqopt(dquot->dq_sb)->info[type].dqi_bgrace; in v1_commit_dqblk()
92 sb_dqopt(dquot->dq_sb)->info[type].dqi_igrace; in v1_commit_dqblk()
172 dqopt->info[type].dqi_maxblimit = 0xffffffff; in v1_read_file_info()
173 dqopt->info[type].dqi_maxilimit = 0xffffffff; in v1_read_file_info()
174 dqopt->info[type].dqi_igrace = in v1_read_file_info()
176 dqopt->info[type].dqi_bgrace = in v1_read_file_info()
188 dqopt->info[type].dqi_flags &= ~DQF_INFO_DIRTY; in v1_write_file_info()
196 dqblk.dqb_itime = dqopt->info[type].dqi_igrace; in v1_write_file_info()
197 dqblk.dqb_btime = dqopt->info[type].dqi_bgrace; in v1_write_file_info()
/fs/dlm/
Dplock.c28 struct dlm_plock_info info; member
40 static inline void set_version(struct dlm_plock_info *info) in set_version() argument
42 info->version[0] = DLM_PLOCK_VERSION_MAJOR; in set_version()
43 info->version[1] = DLM_PLOCK_VERSION_MINOR; in set_version()
44 info->version[2] = DLM_PLOCK_VERSION_PATCH; in set_version()
47 static int check_version(struct dlm_plock_info *info) in check_version() argument
49 if ((DLM_PLOCK_VERSION_MAJOR != info->version[0]) || in check_version()
50 (DLM_PLOCK_VERSION_MINOR < info->version[1])) { in check_version()
56 info->version[0], in check_version()
57 info->version[1], in check_version()
[all …]
/fs/bfs/
Dinode.c120 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 …]
Ddir.c34 struct bfs_sb_info *info = BFS_SB(dir->i_sb); in bfs_readdir() local
38 mutex_lock(&info->bfs_lock); in bfs_readdir()
44 mutex_unlock(&info->bfs_lock); in bfs_readdir()
64 mutex_unlock(&info->bfs_lock); in bfs_readdir()
74 mutex_unlock(&info->bfs_lock); in bfs_readdir()
93 struct bfs_sb_info *info = BFS_SB(s); in bfs_create() local
99 mutex_lock(&info->bfs_lock); in bfs_create()
100 ino = find_first_zero_bit(info->si_imap, info->si_lasti + 1); in bfs_create()
101 if (ino > info->si_lasti) { in bfs_create()
102 mutex_unlock(&info->bfs_lock); in bfs_create()
[all …]
Dfile.c71 struct bfs_sb_info *info = BFS_SB(sb); in bfs_get_block() local
96 if (phys >= info->si_blocks) in bfs_get_block()
100 mutex_lock(&info->bfs_lock); in bfs_get_block()
107 if (bi->i_eblock == info->si_lf_eblk) { in bfs_get_block()
111 info->si_freeb -= phys - bi->i_eblock; in bfs_get_block()
112 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block()
119 phys = info->si_lf_eblk + 1; in bfs_get_block()
120 if (phys + block >= info->si_blocks) { in bfs_get_block()
140 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block()
146 info->si_freeb -= bi->i_eblock - bi->i_sblock + 1 - inode->i_blocks; in bfs_get_block()
[all …]
/fs/sdcardfs/
Dderived_perm.c43 struct sdcardfs_inode_info *info = SDCARDFS_I(inode); in setup_derived_state() local
45 info->data->perm = perm; in setup_derived_state()
46 info->data->userid = userid; in setup_derived_state()
47 info->data->d_uid = uid; in setup_derived_state()
48 info->data->under_android = under_android; in setup_derived_state()
49 info->data->under_cache = false; in setup_derived_state()
50 info->data->under_obb = false; in setup_derived_state()
51 set_top(info, top); in setup_derived_state()
60 struct sdcardfs_inode_info *info = SDCARDFS_I(dentry->d_inode); in get_derived_permission_new() local
93 info->data->perm = PERM_ROOT; in get_derived_permission_new()
[all …]
/fs/ext3/
Ddir.c399 struct dir_private_info *info; in ext3_htree_store_dirent() local
402 info = (struct dir_private_info *) dir_file->private_data; in ext3_htree_store_dirent()
403 p = &info->root.rb_node; in ext3_htree_store_dirent()
444 rb_insert_color(&new_fn->rb_hash, &info->root); in ext3_htree_store_dirent()
458 struct dir_private_info *info = filp->private_data; in call_filldir() local
478 info->extra_fname = fname; in call_filldir()
489 struct dir_private_info *info = filp->private_data; in ext3_dx_readdir() local
494 if (!info) { in ext3_dx_readdir()
495 info = ext3_htree_create_dir_info(filp, filp->f_pos); in ext3_dx_readdir()
496 if (!info) in ext3_dx_readdir()
[all …]
/fs/ext4/
Ddir.c428 struct dir_private_info *info; in ext4_htree_store_dirent() local
431 info = dir_file->private_data; in ext4_htree_store_dirent()
432 p = &info->root.rb_node; in ext4_htree_store_dirent()
473 rb_insert_color(&new_fn->rb_hash, &info->root); in ext4_htree_store_dirent()
487 struct dir_private_info *info = file->private_data; in call_filldir() local
503 info->extra_fname = fname; in call_filldir()
513 struct dir_private_info *info = file->private_data; in ext4_dx_readdir() local
518 if (!info) { in ext4_dx_readdir()
519 info = ext4_htree_create_dir_info(file, ctx->pos); in ext4_dx_readdir()
520 if (!info) in ext4_dx_readdir()
[all …]
/fs/jbd/
Drecovery.c42 struct recovery_info *info, enum passtype pass);
229 struct recovery_info info; in journal_recover() local
231 memset(&info, 0, sizeof(info)); in journal_recover()
247 err = do_one_pass(journal, &info, PASS_SCAN); in journal_recover()
249 err = do_one_pass(journal, &info, PASS_REVOKE); in journal_recover()
251 err = do_one_pass(journal, &info, PASS_REPLAY); in journal_recover()
255 err, info.start_transaction, info.end_transaction); in journal_recover()
257 info.nr_replays, info.nr_revoke_hits, info.nr_revokes); in journal_recover()
261 journal->j_transaction_sequence = ++info.end_transaction; in journal_recover()
293 struct recovery_info info; in journal_skip_recovery() local
[all …]
/fs/cifs/
Dreaddir.c174 cifs_dir_info_to_fattr(struct cifs_fattr *fattr, FILE_DIRECTORY_INFO *info, in cifs_dir_info_to_fattr() argument
178 fattr->cf_cifsattrs = le32_to_cpu(info->ExtFileAttributes); in cifs_dir_info_to_fattr()
179 fattr->cf_eof = le64_to_cpu(info->EndOfFile); in cifs_dir_info_to_fattr()
180 fattr->cf_bytes = le64_to_cpu(info->AllocationSize); in cifs_dir_info_to_fattr()
181 fattr->cf_createtime = le64_to_cpu(info->CreationTime); in cifs_dir_info_to_fattr()
182 fattr->cf_atime = cifs_NTtimeToUnix(info->LastAccessTime); in cifs_dir_info_to_fattr()
183 fattr->cf_ctime = cifs_NTtimeToUnix(info->ChangeTime); in cifs_dir_info_to_fattr()
184 fattr->cf_mtime = cifs_NTtimeToUnix(info->LastWriteTime); in cifs_dir_info_to_fattr()
190 cifs_std_info_to_fattr(struct cifs_fattr *fattr, FIND_FILE_STANDARD_INFO *info, in cifs_std_info_to_fattr() argument
196 fattr->cf_atime = cnvrtDosUnixTm(info->LastAccessDate, in cifs_std_info_to_fattr()
[all …]
/fs/
Dbinfmt_elf.c1717 struct elf_note_info *info, in fill_note_info() argument
1727 info->size = 0; in fill_note_info()
1728 info->thread = NULL; in fill_note_info()
1732 info->psinfo.data = NULL; /* So we don't free this wrongly */ in fill_note_info()
1736 fill_note(&info->psinfo, "CORE", NT_PRPSINFO, sizeof(*psinfo), psinfo); in fill_note_info()
1741 info->thread_notes = 0; in fill_note_info()
1744 ++info->thread_notes; in fill_note_info()
1750 if (unlikely(info->thread_notes == 0) || in fill_note_info()
1767 notes[info->thread_notes]), in fill_note_info()
1773 if (ct->task == dump_task || !info->thread) { in fill_note_info()
[all …]
/fs/nfs/
Dmount_clnt.c144 int nfs_mount(struct nfs_mount_request *info) in nfs_mount() argument
147 .fh = info->fh, in nfs_mount()
148 .auth_count = info->auth_flav_len, in nfs_mount()
149 .auth_flavors = info->auth_flavs, in nfs_mount()
152 .rpc_argp = info->dirpath, in nfs_mount()
156 .net = info->net, in nfs_mount()
157 .protocol = info->protocol, in nfs_mount()
158 .address = info->sap, in nfs_mount()
159 .addrsize = info->salen, in nfs_mount()
160 .servername = info->hostname, in nfs_mount()
[all …]
Dproc.c54 struct nfs_fsinfo *info) in nfs_proc_get_root() argument
56 struct nfs_fattr *fattr = info->fattr; in nfs_proc_get_root()
84 info->rtmax = NFS_MAXDATA; in nfs_proc_get_root()
85 info->rtpref = fsinfo.tsize; in nfs_proc_get_root()
86 info->rtmult = fsinfo.bsize; in nfs_proc_get_root()
87 info->wtmax = NFS_MAXDATA; in nfs_proc_get_root()
88 info->wtpref = fsinfo.tsize; in nfs_proc_get_root()
89 info->wtmult = fsinfo.bsize; in nfs_proc_get_root()
90 info->dtpref = fsinfo.tsize; in nfs_proc_get_root()
91 info->maxfilesize = 0x7FFFFFFF; in nfs_proc_get_root()
[all …]
/fs/jbd2/
Drecovery.c43 struct recovery_info *info, enum passtype pass);
253 struct recovery_info info; in jbd2_journal_recover() local
255 memset(&info, 0, sizeof(info)); in jbd2_journal_recover()
271 err = do_one_pass(journal, &info, PASS_SCAN); in jbd2_journal_recover()
273 err = do_one_pass(journal, &info, PASS_REVOKE); in jbd2_journal_recover()
275 err = do_one_pass(journal, &info, PASS_REPLAY); in jbd2_journal_recover()
279 err, info.start_transaction, info.end_transaction); in jbd2_journal_recover()
281 info.nr_replays, info.nr_revoke_hits, info.nr_revokes); in jbd2_journal_recover()
285 journal->j_transaction_sequence = ++info.end_transaction; in jbd2_journal_recover()
317 struct recovery_info info; in jbd2_journal_skip_recovery() local
[all …]
/fs/btrfs/
Dsuper.c372 struct btrfs_fs_info *info = root->fs_info; in btrfs_parse_options() local
383 btrfs_set_opt(info->mount_opt, SPACE_CACHE); in btrfs_parse_options()
407 btrfs_set_opt(info->mount_opt, DEGRADED); in btrfs_parse_options()
420 btrfs_set_opt(info->mount_opt, NODATASUM); in btrfs_parse_options()
429 info->compress_type = BTRFS_COMPRESS_NONE; in btrfs_parse_options()
430 btrfs_clear_opt(info->mount_opt, COMPRESS); in btrfs_parse_options()
431 btrfs_clear_opt(info->mount_opt, FORCE_COMPRESS); in btrfs_parse_options()
432 btrfs_set_opt(info->mount_opt, NODATACOW); in btrfs_parse_options()
433 btrfs_set_opt(info->mount_opt, NODATASUM); in btrfs_parse_options()
445 info->compress_type = BTRFS_COMPRESS_ZLIB; in btrfs_parse_options()
[all …]
Dfree-space-cache.c35 struct btrfs_free_space *info);
37 struct btrfs_free_space *info);
1150 struct btrfs_free_space *info; in tree_insert_offset() local
1154 info = rb_entry(parent, struct btrfs_free_space, offset_index); in tree_insert_offset()
1156 if (offset < info->offset) { in tree_insert_offset()
1158 } else if (offset > info->offset) { in tree_insert_offset()
1175 if (info->bitmap) { in tree_insert_offset()
1181 if (!info->bitmap) { in tree_insert_offset()
1321 struct btrfs_free_space *info) in __unlink_free_space() argument
1323 rb_erase(&info->offset_index, &ctl->free_space_offset); in __unlink_free_space()
[all …]
Dinode-map.c261 struct btrfs_free_space *info; in btrfs_unpin_free_ino() local
273 info = rb_entry(n, struct btrfs_free_space, offset_index); in btrfs_unpin_free_ino()
274 BUG_ON(info->bitmap); /* Logic error */ in btrfs_unpin_free_ino()
276 if (info->offset > root->cache_progress) in btrfs_unpin_free_ino()
278 else if (info->offset + info->bytes > root->cache_progress) in btrfs_unpin_free_ino()
279 count = root->cache_progress - info->offset + 1; in btrfs_unpin_free_ino()
281 count = info->bytes; in btrfs_unpin_free_ino()
283 __btrfs_add_free_space(ctl, info->offset, count); in btrfs_unpin_free_ino()
285 rb_erase(&info->offset_index, rbroot); in btrfs_unpin_free_ino()
286 kfree(info); in btrfs_unpin_free_ino()
[all …]
Ddisk-io.c85 struct btrfs_fs_info *info; member
693 fs_info = end_io_wq->info; in end_workqueue_bio()
732 int btrfs_bio_wq_end_io(struct btrfs_fs_info *info, struct bio *bio, in btrfs_bio_wq_end_io() argument
742 end_io_wq->info = info; in btrfs_bio_wq_end_io()
752 unsigned long btrfs_async_submit_limit(struct btrfs_fs_info *info) in btrfs_async_submit_limit() argument
755 info->workers.max_workers, in btrfs_async_submit_limit()
756 info->fs_devices->open_devices); in btrfs_async_submit_limit()
1617 struct btrfs_fs_info *info = (struct btrfs_fs_info *)congested_data; in btrfs_congested_fn() local
1623 list_for_each_entry_rcu(device, &info->fs_devices->devices, dev_list) { in btrfs_congested_fn()
1640 static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi) in setup_bdi() argument
[all …]
/fs/sysfs/
Dmount.c79 struct sysfs_super_info *info = data; in sysfs_test_super() local
84 if (sb_info->ns[type] != info->ns[type]) in sysfs_test_super()
99 static void free_sysfs_super_info(struct sysfs_super_info *info) in free_sysfs_super_info() argument
103 kobj_ns_drop(type, info->ns[type]); in free_sysfs_super_info()
104 kfree(info); in free_sysfs_super_info()
110 struct sysfs_super_info *info; in sysfs_mount() local
118 info = kzalloc(sizeof(*info), GFP_KERNEL); in sysfs_mount()
119 if (!info) in sysfs_mount()
123 info->ns[type] = kobj_ns_grab_current(type); in sysfs_mount()
125 sb = sget(fs_type, sysfs_test_super, sysfs_set_super, flags, info); in sysfs_mount()
[all …]
/fs/ocfs2/
Dquota_global.c216 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_quota_write() local
217 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in ocfs2_quota_write()
341 struct mem_dqinfo *info = sb_dqinfo(sb, type); in ocfs2_global_read_info() local
342 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in ocfs2_global_read_info()
390 info->dqi_bgrace = le32_to_cpu(dinfo.dqi_bgrace); in ocfs2_global_read_info()
391 info->dqi_igrace = le32_to_cpu(dinfo.dqi_igrace); in ocfs2_global_read_info()
416 struct mem_dqinfo *info = sb_dqinfo(sb, type); in __ocfs2_global_write_info() local
417 struct ocfs2_mem_dqinfo *oinfo = info->dqi_priv; in __ocfs2_global_write_info()
422 info->dqi_flags &= ~DQF_INFO_DIRTY; in __ocfs2_global_write_info()
423 dinfo.dqi_bgrace = cpu_to_le32(info->dqi_bgrace); in __ocfs2_global_write_info()
[all …]
/fs/ceph/
Dmds_client.c64 struct ceph_mds_reply_info_in *info, in parse_reply_info_in() argument
69 info->in = *p; in parse_reply_info_in()
71 sizeof(*info->in->fragtree.splits) * in parse_reply_info_in()
72 le32_to_cpu(info->in->fragtree.nsplits); in parse_reply_info_in()
74 ceph_decode_32_safe(p, end, info->symlink_len, bad); in parse_reply_info_in()
75 ceph_decode_need(p, end, info->symlink_len, bad); in parse_reply_info_in()
76 info->symlink = *p; in parse_reply_info_in()
77 *p += info->symlink_len; in parse_reply_info_in()
80 ceph_decode_copy_safe(p, end, &info->dir_layout, in parse_reply_info_in()
81 sizeof(info->dir_layout), bad); in parse_reply_info_in()
[all …]
Dinode.c561 struct ceph_mds_reply_inode *info = iinfo->in; in fill_inode() local
572 inode, ceph_vinop(inode), le64_to_cpu(info->version), in fill_inode()
600 if (le64_to_cpu(info->version) > 0 && in fill_inode()
601 (ci->i_version & ~1) >= le64_to_cpu(info->version)) in fill_inode()
608 ci->i_version = le64_to_cpu(info->version); in fill_inode()
610 inode->i_rdev = le32_to_cpu(info->rdev); in fill_inode()
613 inode->i_mode = le32_to_cpu(info->mode); in fill_inode()
614 inode->i_uid = make_kuid(&init_user_ns, le32_to_cpu(info->uid)); in fill_inode()
615 inode->i_gid = make_kgid(&init_user_ns, le32_to_cpu(info->gid)); in fill_inode()
622 set_nlink(inode, le32_to_cpu(info->nlink)); in fill_inode()
[all …]
/fs/xfs/
Dxfs_da_btree.c137 ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) || in xfs_da3_node_hdr_from_disk()
138 from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)); in xfs_da3_node_hdr_from_disk()
140 if (from->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) { in xfs_da3_node_hdr_from_disk()
143 to->forw = be32_to_cpu(hdr3->info.hdr.forw); in xfs_da3_node_hdr_from_disk()
144 to->back = be32_to_cpu(hdr3->info.hdr.back); in xfs_da3_node_hdr_from_disk()
145 to->magic = be16_to_cpu(hdr3->info.hdr.magic); in xfs_da3_node_hdr_from_disk()
150 to->forw = be32_to_cpu(from->hdr.info.forw); in xfs_da3_node_hdr_from_disk()
151 to->back = be32_to_cpu(from->hdr.info.back); in xfs_da3_node_hdr_from_disk()
152 to->magic = be16_to_cpu(from->hdr.info.magic); in xfs_da3_node_hdr_from_disk()
168 hdr3->info.hdr.forw = cpu_to_be32(from->forw); in xfs_da3_node_hdr_to_disk()
[all …]

1234