Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 25 of 28) sorted by relevance

12

/fs/ntfs3/
Drecord.c34 static __le16 mi_new_attt_id(struct mft_inode *mi) in mi_new_attt_id() argument
37 struct MFT_REC *rec = mi->mrec; in mi_new_attt_id()
55 attr = mi_enum_attr(mi, attr); in mi_new_attt_id()
58 mi->dirty = true; in mi_new_attt_id()
71 int mi_get(struct ntfs_sb_info *sbi, CLST rno, struct mft_inode **mi) in mi_get() argument
91 *mi = m; in mi_get()
95 void mi_put(struct mft_inode *mi) in mi_put() argument
97 mi_clear(mi); in mi_put()
98 kfree(mi); in mi_put()
101 int mi_init(struct mft_inode *mi, struct ntfs_sb_info *sbi, CLST rno) in mi_init() argument
[all …]
Dfrecord.c26 struct mft_inode *mi; in ni_ins_mi() local
29 mi = rb_entry(pr, struct mft_inode, node); in ni_ins_mi()
30 if (mi->rno > ino) in ni_ins_mi()
32 else if (mi->rno < ino) in ni_ins_mi()
35 return mi; in ni_ins_mi()
57 static void ni_add_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_add_mi() argument
59 ni_ins_mi(ni, &ni->mi_tree, mi->rno, &mi->node); in ni_add_mi()
65 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_remove_mi() argument
67 rb_erase(&mi->node, &ni->mi_tree); in ni_remove_mi()
77 attr = mi_find_attr(&ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std()
[all …]
Dattrib.c108 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs()
238 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_make_nonresident() argument
256 sbi = mi->sbi; in attr_make_nonresident()
257 rec = mi->mrec; in attr_make_nonresident()
321 mi->dirty = true; in attr_make_nonresident()
348 mi->dirty = true; in attr_make_nonresident()
363 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi, in attr_set_size_res() argument
367 struct ntfs_sb_info *sbi = mi->sbi; in attr_set_size_res()
368 struct MFT_REC *rec = mi->mrec; in attr_set_size_res()
381 return attr_make_nonresident(ni, attr, le, mi, new_size, in attr_set_size_res()
[all …]
Dntfs_fs.h343 struct mft_inode mi; // base record member
421 struct ATTR_LIST_ENTRY *le, struct mft_inode *mi,
505 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi);
509 int ni_load_mi_ex(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
511 struct mft_inode **mi);
516 struct mft_inode **mi);
519 struct mft_inode **mi);
524 bool ni_add_subrecord(struct ntfs_inode *ni, CLST rno, struct mft_inode **mi);
534 struct mft_inode **mi);
537 struct ATTRIB **new_attr, struct mft_inode **mi,
[all …]
Dindex.c196 struct mft_inode *mi; member
209 struct ntfs_sb_info *sbi = ni->mi.sbi; in bmp_buf_get()
220 &vcn, &bbuf->mi); in bmp_buf_get()
293 bbuf->mi->dirty = true; in bmp_buf_put()
302 bbuf->mi->dirty = true; in bmp_buf_put()
366 struct ntfs_sb_info *sbi = ni->mi.sbi; in scan_nres_bitmap()
956 err = ntfs_get_bh(ni->mi.sbi, &indx->alloc_run, vbo, bytes, &r->nb); in indx_new()
996 struct ATTRIB **attr, struct mft_inode **mi) in indx_get_root() argument
1004 mi); in indx_get_root()
1027 return ntfs_write_bh(ni->mi.sbi, &ib->rhdr, &node->nb, sync); in indx_write()
[all …]
Dxattr.c76 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_read_ea()
309 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_set_ea()
320 struct mft_inode *mi; in ntfs_set_ea() local
457 attr = ni_find_attr(ni, NULL, &le, ATTR_EA_INFO, NULL, 0, NULL, &mi); in ntfs_set_ea()
465 ni_remove_attr_le(ni, attr, mi, le); in ntfs_set_ea()
473 mi->dirty = true; in ntfs_set_ea()
477 attr = ni_find_attr(ni, NULL, &le, ATTR_EA, NULL, 0, NULL, &mi); in ntfs_set_ea()
485 ni_remove_attr_le(ni, attr, mi, le); in ntfs_set_ea()
502 mi->dirty = true; in ntfs_set_ea()
799 if (!is_ntfs3(ni->mi.sbi)) { in ntfs_getxattr()
[all …]
Dattrlist.c77 err = run_unpack_ex(&ni->attr_list.run, ni->mi.sbi, ni->mi.rno, in ntfs_load_attr_list()
100 err = ntfs_read_run_nb(ni->mi.sbi, &ni->attr_list.run, 0, le, in ntfs_load_attr_list()
213 name_len, ni->mi.sbi->upcase, in al_find_ex()
265 name_len, ni->mi.sbi->upcase, in al_find_le_to_insert()
351 err = ntfs_sb_write_run(ni->mi.sbi, &al->run, 0, al->le, in al_add_le()
412 ni->mi.sbi->upcase, true)) in al_delete_le()
460 err = ntfs_sb_write_run(ni->mi.sbi, &al->run, 0, al->le, in al_update()
468 ni->mi.dirty = true; in al_update()
Dfslog.c1143 err = ntfs_read_run_nb(ni->mi.sbi, &ni->file.run, page_vbo, page_buf, in read_log_page()
1297 log->clst_per_page = log->page_size >> log->ni->mi.sbi->cluster_bits; in log_init_pg_hdr()
2152 if (sb_rdonly(log->ni->mi.sbi->sb)) { in last_log_lsn()
2194 err = ntfs_sb_write_run(log->ni->mi.sbi, in last_log_lsn()
2211 if (sb_rdonly(log->ni->mi.sbi->sb)) { in last_log_lsn()
3021 struct ntfs_sb_info *sbi = log->ni->mi.sbi; in do_action()
3023 struct mft_inode *mi = NULL, *mi2_child = NULL; in do_action() local
3074 mi = &ntfs_i(inode)->mi; in do_action()
3076 mi = kzalloc(sizeof(struct mft_inode), GFP_NOFS); in do_action()
3077 if (!mi) in do_action()
[all …]
Dinode.c53 err = mi_init(&ni->mi, sbi, ino); in ntfs_read_mft()
69 err = mi_read(&ni->mi, ino == MFT_REC_MFT); in ntfs_read_mft()
74 rec = ni->mi.mrec; in ntfs_read_mft()
421 ni->mi.dirty = true; in ntfs_read_mft()
525 else if (ref->seq != ntfs_i(inode)->mi.mrec->seq) { in ntfs_iget5()
1320 rec = ni->mi.mrec; in ntfs_create_inode()
1371 mi_get_ref(&ni->mi, &new_de->ref); in ntfs_create_inode()
1374 mi_get_ref(&dir_ni->mi, &fname->home); in ntfs_create_inode()
1660 ni->mi.dirty = false; in ntfs_create_inode()
1732 if (ntfs_is_meta_file(sbi, ni->mi.rno)) in ntfs_unlink_inode()
Dfile.c90 stat->blksize = ni->mi.sbi->cluster_size; /* 512, 1K, ..., 2M */ in ntfs_getattr()
431 ntfs_set_state(ni->mi.sbi, NTFS_DIRTY_DIRTY); in ntfs_extend()
497 &new_valid, ni->mi.sbi->options->prealloc, NULL); in ntfs_truncate()
886 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_compress_write()
1192 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_file_release()
Dfsntfs.c493 ni->mi.dirty = true; in ntfs_extend_mft()
528 struct ntfs_inode *ni, struct mft_inode **mi) in ntfs_look_free_mft() argument
606 mrec = ni->mi.mrec; in ntfs_look_free_mft()
686 if (ni && !ni_add_subrecord(ni, *rno, mi)) { in ntfs_look_free_mft()
905 struct mft_inode *mi; in ntfs_set_state() local
927 attr = ni_find_attr(ni, NULL, NULL, ATTR_VOL_INFO, NULL, 0, NULL, &mi); in ntfs_set_state()
953 mi->dirty = true; in ntfs_set_state()
1669 err = mi_format_new(&ni->mi, sbi, rno, dir ? RECORD_FLAG_DIR : 0, in ntfs_new_inode()
Dnamei.c76 err = ntfs_nls_to_utf16(ni->mi.sbi, dentry->d_name.name, in ntfs_lookup()
/fs/incfs/
Ddata_mgmt.c37 struct mount_info *mi = in zstd_free_workspace() local
40 mutex_lock(&mi->mi_zstd_workspace_mutex); in zstd_free_workspace()
41 kvfree(mi->mi_zstd_workspace); in zstd_free_workspace()
42 mi->mi_zstd_workspace = NULL; in zstd_free_workspace()
43 mi->mi_zstd_stream = NULL; in zstd_free_workspace()
44 mutex_unlock(&mi->mi_zstd_workspace_mutex); in zstd_free_workspace()
51 struct mount_info *mi = NULL; in incfs_alloc_mount_info() local
55 mi = kzalloc(sizeof(*mi), GFP_NOFS); in incfs_alloc_mount_info()
56 if (!mi) in incfs_alloc_mount_info()
59 mi->mi_sb = sb; in incfs_alloc_mount_info()
[all …]
Dpseudo_files.c43 struct mount_info *mi = get_mount_info(file_superblock(f)); in pending_reads_read() local
55 if (!mi) in pending_reads_read()
58 report_uid = mi->mi_options.report_uid; in pending_reads_read()
62 if (!incfs_fresh_pending_reads_exist(mi, last_known_read_sn)) in pending_reads_read()
77 reads_collected = incfs_collect_pending_reads(mi, last_known_read_sn, in pending_reads_read()
110 struct mount_info *mi = get_mount_info(file_superblock(file)); in pending_reads_poll() local
113 poll_wait(file, &mi->mi_pending_reads_notif_wq, wait); in pending_reads_poll()
114 if (incfs_fresh_pending_reads_exist(mi, in pending_reads_poll()
237 struct mount_info *mi, in dir_relative_path_resolve() argument
247 base_path = &mi->mi_backing_dir_path; in dir_relative_path_resolve()
[all …]
Dvfs.c400 struct mount_info *mi = get_mount_info(file_superblock(file)); in iterate_incfs_dir() local
409 == d_inode(mi->mi_backing_dir_path.dentry); in iterate_incfs_dir()
490 struct mount_info *mi = df->df_mount_info; in read_single_page_timeouts() local
497 spin_lock(&mi->mi_per_uid_read_timeouts_lock); in read_single_page_timeouts()
498 for (i = 0; i < mi->mi_per_uid_read_timeouts_size / in read_single_page_timeouts()
499 sizeof(*mi->mi_per_uid_read_timeouts); ++i) { in read_single_page_timeouts()
501 &mi->mi_per_uid_read_timeouts[i]; in read_single_page_timeouts()
510 spin_unlock(&mi->mi_per_uid_read_timeouts_lock); in read_single_page_timeouts()
512 u64 read_timeout_us = (u64)mi->mi_options.read_timeout_ms * in read_single_page_timeouts()
696 struct mount_info *mi = df->df_mount_info; in handle_file_completed() local
[all …]
Ddata_mgmt.h411 int incfs_realloc_mount_info(struct mount_info *mi,
414 void incfs_free_mount_info(struct mount_info *mi);
418 struct data_file *incfs_open_data_file(struct mount_info *mi, struct file *bf);
421 struct dir_file *incfs_open_dir_file(struct mount_info *mi, struct file *bf);
451 bool incfs_fresh_pending_reads_exist(struct mount_info *mi, int last_number);
458 int incfs_collect_pending_reads(struct mount_info *mi, int sn_lowerbound,
463 int incfs_collect_logged_reads(struct mount_info *mi,
468 struct read_log_state incfs_get_log_state(struct mount_info *mi);
469 int incfs_get_uncollected_logs_count(struct mount_info *mi,
518 int make_inode_ready_for_data_ops(struct mount_info *mi,
Dsysfs.c161 struct mount_info *mi) in incfs_add_sysfs_node() argument
173 node->isn_mi = mi; in incfs_add_sysfs_node()
Dsysfs.h19 struct mount_info *mi);
Dformat.h346 struct backing_file_context *incfs_alloc_bfc(struct mount_info *mi,
Dformat.c18 struct backing_file_context *incfs_alloc_bfc(struct mount_info *mi, in incfs_alloc_bfc() argument
28 result->bc_cred = mi->mi_owner; in incfs_alloc_bfc()
/fs/nilfs2/
Dmdt.c447 struct nilfs_mdt_info *mi; in nilfs_mdt_init() local
449 mi = kzalloc(max(sizeof(*mi), objsz), GFP_NOFS); in nilfs_mdt_init()
450 if (!mi) in nilfs_mdt_init()
453 init_rwsem(&mi->mi_sem); in nilfs_mdt_init()
454 inode->i_private = mi; in nilfs_mdt_init()
502 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_set_entry_size() local
504 mi->mi_entry_size = entry_size; in nilfs_mdt_set_entry_size()
505 mi->mi_entries_per_block = i_blocksize(inode) / entry_size; in nilfs_mdt_set_entry_size()
506 mi->mi_first_entry_offset = DIV_ROUND_UP(header_size, entry_size); in nilfs_mdt_set_entry_size()
517 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_mdt_setup_shadow_map() local
[all …]
Dalloc.c49 struct nilfs_mdt_info *mi = NILFS_MDT(inode); in nilfs_palloc_init_blockgroup() local
51 mi->mi_bgl = kmalloc(sizeof(*mi->mi_bgl), GFP_NOFS); in nilfs_palloc_init_blockgroup()
52 if (!mi->mi_bgl) in nilfs_palloc_init_blockgroup()
55 bgl_lock_init(mi->mi_bgl); in nilfs_palloc_init_blockgroup()
59 mi->mi_blocks_per_group = in nilfs_palloc_init_blockgroup()
61 mi->mi_entries_per_block) + 1; in nilfs_palloc_init_blockgroup()
66 mi->mi_blocks_per_desc_block = in nilfs_palloc_init_blockgroup()
68 mi->mi_blocks_per_group + 1; in nilfs_palloc_init_blockgroup()
Ddat.c30 struct nilfs_mdt_info mi; member
512 lockdep_set_class(&di->mi.mi_sem, &dat_lock_key); in nilfs_dat_read()
Difile.c25 struct nilfs_mdt_info mi; member
/fs/quota/
Ddquot.c2864 struct mem_dqinfo *mi; in dquot_get_state() local
2874 mi = sb_dqopt(sb)->info + type; in dquot_get_state()
2877 if (mi->dqi_flags & DQF_SYS_FILE) in dquot_get_state()
2879 if (mi->dqi_flags & DQF_ROOT_SQUASH) in dquot_get_state()
2883 tstate->spc_timelimit = mi->dqi_bgrace; in dquot_get_state()
2884 tstate->ino_timelimit = mi->dqi_igrace; in dquot_get_state()
2899 struct mem_dqinfo *mi; in dquot_set_dqinfo() local
2907 mi = sb_dqopt(sb)->info + type; in dquot_set_dqinfo()
2910 mi->dqi_format->qf_fmt_id != QFMT_VFS_OLD)) in dquot_set_dqinfo()
2915 mi->dqi_bgrace = ii->i_spc_timelimit; in dquot_set_dqinfo()
[all …]

12