Home
last modified time | relevance | path

Searched refs:ei (Results 1 – 25 of 78) sorted by relevance

1234

/fs/f2fs/
Dextent_cache.c27 struct extent_info *ei; in sanity_check_extent_cache() local
32 ei = &et->largest; in sanity_check_extent_cache()
33 if (!ei->len) in sanity_check_extent_cache()
38 ei->len = 0; in sanity_check_extent_cache()
43 if (!f2fs_is_valid_blkaddr(sbi, ei->blk, DATA_GENERIC_ENHANCE) || in sanity_check_extent_cache()
44 !f2fs_is_valid_blkaddr(sbi, ei->blk + ei->len - 1, in sanity_check_extent_cache()
49 ei->blk, ei->fofs, ei->len); in sanity_check_extent_cache()
55 static void __set_extent_info(struct extent_info *ei, in __set_extent_info() argument
61 ei->fofs = fofs; in __set_extent_info()
62 ei->len = len; in __set_extent_info()
[all …]
/fs/exfat/
Dcache.c77 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_update_lru() local
79 if (ei->cache_lru.next != &cache->cache_list) in exfat_cache_update_lru()
80 list_move(&cache->cache_list, &ei->cache_lru); in exfat_cache_update_lru()
87 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_lookup() local
92 spin_lock(&ei->cache_lru_lock); in exfat_cache_lookup()
93 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_lookup()
108 cid->id = ei->cache_valid_id; in exfat_cache_lookup()
115 spin_unlock(&ei->cache_lru_lock); in exfat_cache_lookup()
123 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_cache_merge() local
126 list_for_each_entry(p, &ei->cache_lru, cache_list) { in exfat_cache_merge()
[all …]
Dinode.c27 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_write_inode() local
28 bool is_dir = (ei->type == TYPE_DIR) ? true : false; in __exfat_write_inode()
36 if (ei->dir.dir == DIR_DELETED) in __exfat_write_inode()
39 if (is_dir && ei->dir.dir == sbi->root_dir && ei->entry == -1) in __exfat_write_inode()
45 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, ES_ALL_ENTRIES); in __exfat_write_inode()
54 exfat_set_entry_time(sbi, &ei->i_crtime, in __exfat_write_inode()
73 if (ei->start_clu == EXFAT_EOF_CLUSTER) in __exfat_write_inode()
79 ep2->dentry.stream.flags = ei->flags; in __exfat_write_inode()
80 ep2->dentry.stream.start_clu = cpu_to_le32(ei->start_clu); in __exfat_write_inode()
120 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_map_cluster() local
[all …]
Dfile.c103 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_truncate() local
106 if (ei->type != TYPE_FILE && ei->type != TYPE_DIR) in __exfat_truncate()
112 num_clusters_phys = EXFAT_B_TO_CLU_ROUND_UP(ei->i_size_ondisk, sbi); in __exfat_truncate()
114 exfat_chain_set(&clu, ei->start_clu, num_clusters_phys, ei->flags); in __exfat_truncate()
142 ei->flags = ALLOC_NO_FAT_CHAIN; in __exfat_truncate()
143 ei->start_clu = EXFAT_EOF_CLUSTER; in __exfat_truncate()
148 if (ei->type == TYPE_FILE) in __exfat_truncate()
149 ei->attr |= ATTR_ARCHIVE; in __exfat_truncate()
166 if (ei->flags == ALLOC_FAT_CHAIN && last_clu != EXFAT_FREE_CLUSTER && in __exfat_truncate()
177 ei->hint_bmap.off = EXFAT_EOF_CLUSTER; in __exfat_truncate()
[all …]
Dnamei.c323 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_find_empty_entry() local
328 if (ei->hint_femp.eidx != EXFAT_HINT_NONE) { in exfat_find_empty_entry()
329 hint_femp = ei->hint_femp; in exfat_find_empty_entry()
330 ei->hint_femp.eidx = EXFAT_HINT_NONE; in exfat_find_empty_entry()
344 if (ei->start_clu != EXFAT_EOF_CLUSTER) { in exfat_find_empty_entry()
364 if (ei->start_clu == EXFAT_EOF_CLUSTER) { in exfat_find_empty_entry()
365 ei->start_clu = clu.dir; in exfat_find_empty_entry()
398 ei->i_size_ondisk += sbi->cluster_size; in exfat_find_empty_entry()
399 ei->i_size_aligned += sbi->cluster_size; in exfat_find_empty_entry()
400 ei->flags = p_dir->flags; in exfat_find_empty_entry()
[all …]
Dsuper.c182 struct exfat_inode_info *ei; in exfat_alloc_inode() local
184 ei = alloc_inode_sb(sb, exfat_inode_cachep, GFP_NOFS); in exfat_alloc_inode()
185 if (!ei) in exfat_alloc_inode()
188 init_rwsem(&ei->truncate_lock); in exfat_alloc_inode()
189 return &ei->vfs_inode; in exfat_alloc_inode()
343 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_read_root() local
347 exfat_chain_set(&ei->dir, sbi->root_dir, 0, ALLOC_FAT_CHAIN); in exfat_read_root()
348 ei->entry = -1; in exfat_read_root()
349 ei->start_clu = sbi->root_dir; in exfat_read_root()
350 ei->flags = ALLOC_FAT_CHAIN; in exfat_read_root()
[all …]
Ddir.c76 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_readdir() local
81 if (ei->type != TYPE_DIR) in exfat_readdir()
84 if (ei->entry == -1) in exfat_readdir()
87 exfat_chain_set(&dir, ei->start_clu, in exfat_readdir()
88 EXFAT_B_TO_CLU(i_size_read(inode), sbi), ei->flags); in exfat_readdir()
103 if (clu_offset > 0 && ei->hint_bmap.off != EXFAT_EOF_CLUSTER && in exfat_readdir()
104 ei->hint_bmap.off > 0 && clu_offset >= ei->hint_bmap.off) { in exfat_readdir()
105 clu_offset -= ei->hint_bmap.off; in exfat_readdir()
106 clu.dir = ei->hint_bmap.clu; in exfat_readdir()
170 ei->hint_bmap.off = dentry >> dentries_per_clu_bits; in exfat_readdir()
[all …]
/fs/ext2/
Dioctl.c23 struct ext2_inode_info *ei = EXT2_I(d_inode(dentry)); in ext2_fileattr_get() local
25 fileattr_fill_flags(fa, ei->i_flags & EXT2_FL_USER_VISIBLE); in ext2_fileattr_get()
34 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_fileattr_set() local
43 ei->i_flags = (ei->i_flags & ~EXT2_FL_USER_MODIFIABLE) | in ext2_fileattr_set()
57 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_ioctl() local
92 && ei->i_block_alloc_info) { in ext2_ioctl()
93 rsv_window_size = ei->i_block_alloc_info->rsv_window_node.rsv_goal_size; in ext2_ioctl()
123 mutex_lock(&ei->truncate_mutex); in ext2_ioctl()
124 if (!ei->i_block_alloc_info) in ext2_ioctl()
127 if (ei->i_block_alloc_info){ in ext2_ioctl()
[all …]
Dinode.c296 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_find_near() local
297 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext2_find_near()
315 bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group); in ext2_find_near()
633 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local
679 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks()
700 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
705 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
714 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks()
734 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
755 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks()
[all …]
Dialloc.c433 struct ext2_inode_info *ei; in ext2_new_inode() local
442 ei = EXT2_I(inode); in ext2_new_inode()
553 memset(ei->i_data, 0, sizeof(ei->i_data)); in ext2_new_inode()
554 ei->i_flags = in ext2_new_inode()
556 ei->i_faddr = 0; in ext2_new_inode()
557 ei->i_frag_no = 0; in ext2_new_inode()
558 ei->i_frag_size = 0; in ext2_new_inode()
559 ei->i_file_acl = 0; in ext2_new_inode()
560 ei->i_dir_acl = 0; in ext2_new_inode()
561 ei->i_dtime = 0; in ext2_new_inode()
[all …]
/fs/ext4/
Dfast_commit.c189 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() local
191 ei->i_fc_lblk_start = 0; in ext4_fc_reset_inode()
192 ei->i_fc_lblk_len = 0; in ext4_fc_reset_inode()
197 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() local
201 INIT_LIST_HEAD(&ei->i_fc_list); in ext4_fc_init_inode()
202 INIT_LIST_HEAD(&ei->i_fc_dilist); in ext4_fc_init_inode()
203 init_waitqueue_head(&ei->i_fc_wait); in ext4_fc_init_inode()
204 atomic_set(&ei->i_fc_updates, 0); in ext4_fc_init_inode()
212 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() local
215 DEFINE_WAIT_BIT(wait, &ei->i_state_flags, in ext4_fc_wait_committing_inode()
[all …]
Dextents_status.c152 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan);
426 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() local
429 if (!list_empty(&ei->i_es_list)) in ext4_es_list_add()
433 if (list_empty(&ei->i_es_list)) { in ext4_es_list_add()
434 list_add_tail(&ei->i_es_list, &sbi->s_es_list); in ext4_es_list_add()
442 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() local
446 if (!list_empty(&ei->i_es_list)) { in ext4_es_list_del()
447 list_del_init(&ei->i_es_list); in ext4_es_list_del()
1548 struct ext4_inode_info *ei; in __es_shrink() local
1567 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink()
[all …]
Dinode.c53 struct ext4_inode_info *ei) in ext4_inode_csum() argument
61 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, offset); in ext4_inode_csum()
72 if (EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) { in ext4_inode_csum()
85 struct ext4_inode_info *ei) in ext4_inode_csum_verify() argument
95 calculated = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_verify()
97 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_verify()
106 struct ext4_inode_info *ei) in ext4_inode_csum_set() argument
115 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set()
118 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_set()
364 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() local
[all …]
Dmigrate.c291 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() local
302 i_data[0] = ei->i_data[EXT4_IND_BLOCK]; in ext4_ext_swap_inode_data()
303 i_data[1] = ei->i_data[EXT4_DIND_BLOCK]; in ext4_ext_swap_inode_data()
304 i_data[2] = ei->i_data[EXT4_TIND_BLOCK]; in ext4_ext_swap_inode_data()
323 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); in ext4_ext_swap_inode_data()
392 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() local
393 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block()
415 struct ext4_inode_info *ei; in ext4_ext_migrate() local
467 ei = EXT4_I(inode); in ext4_ext_migrate()
469 EXT4_I(tmp_inode)->i_csum_seed = ei->i_csum_seed; in ext4_ext_migrate()
[all …]
Dpage-io.c224 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() local
232 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_add_complete_io()
234 if (list_empty(&ei->i_rsv_conversion_list)) in ext4_add_complete_io()
235 queue_work(wq, &ei->i_rsv_conversion_work); in ext4_add_complete_io()
236 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list); in ext4_add_complete_io()
237 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_add_complete_io()
246 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO() local
249 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO()
252 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO()
271 struct ext4_inode_info *ei = container_of(work, struct ext4_inode_info, in ext4_end_io_rsv_work() local
[all …]
Dialloc.c938 struct ext4_inode_info *ei; in __ext4_new_inode() local
962 ei = EXT4_I(inode); in __ext4_new_inode()
982 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode()
984 ei->i_projid = make_kprojid(&init_user_ns, EXT4_DEF_PROJID); in __ext4_new_inode()
1256 ei->i_crtime = inode->i_mtime; in __ext4_new_inode()
1258 memset(ei->i_data, 0, sizeof(ei->i_data)); in __ext4_new_inode()
1259 ei->i_dir_start_lookup = 0; in __ext4_new_inode()
1260 ei->i_disksize = 0; in __ext4_new_inode()
1263 ei->i_flags = in __ext4_new_inode()
1265 ei->i_flags |= i_flags; in __ext4_new_inode()
[all …]
/fs/proc/
Dinode.c35 struct proc_inode *ei = PROC_I(inode); in proc_evict_inode() local
41 if (ei->pid) { in proc_evict_inode()
42 proc_pid_evict_inode(ei); in proc_evict_inode()
43 ei->pid = NULL; in proc_evict_inode()
47 de = ei->pde; in proc_evict_inode()
50 ei->pde = NULL; in proc_evict_inode()
53 head = ei->sysctl; in proc_evict_inode()
55 RCU_INIT_POINTER(ei->sysctl, NULL); in proc_evict_inode()
65 struct proc_inode *ei; in proc_alloc_inode() local
67 ei = alloc_inode_sb(sb, proc_inode_cachep, GFP_KERNEL); in proc_alloc_inode()
[all …]
Dfd.c199 struct proc_inode *ei; in proc_fd_instantiate() local
206 ei = PROC_I(inode); in proc_fd_instantiate()
207 ei->fd = data->fd; in proc_fd_instantiate()
212 ei->op.proc_get_link = proc_fd_link; in proc_fd_instantiate()
332 struct proc_inode *ei; in proc_fdinfo_instantiate() local
339 ei = PROC_I(inode); in proc_fdinfo_instantiate()
340 ei->fd = data->fd; in proc_fdinfo_instantiate()
/fs/coda/
Dinode.c45 struct coda_inode_info *ei; in coda_alloc_inode() local
46 ei = alloc_inode_sb(sb, coda_inode_cachep, GFP_KERNEL); in coda_alloc_inode()
47 if (!ei) in coda_alloc_inode()
49 memset(&ei->c_fid, 0, sizeof(struct CodaFid)); in coda_alloc_inode()
50 ei->c_flags = 0; in coda_alloc_inode()
51 ei->c_uid = GLOBAL_ROOT_UID; in coda_alloc_inode()
52 ei->c_cached_perm = 0; in coda_alloc_inode()
53 spin_lock_init(&ei->c_lock); in coda_alloc_inode()
54 return &ei->vfs_inode; in coda_alloc_inode()
64 struct coda_inode_info *ei = (struct coda_inode_info *) foo; in init_once() local
[all …]
/fs/isofs/
Dinode.c72 struct iso_inode_info *ei; in isofs_alloc_inode() local
73 ei = alloc_inode_sb(sb, isofs_inode_cachep, GFP_KERNEL); in isofs_alloc_inode()
74 if (!ei) in isofs_alloc_inode()
76 return &ei->vfs_inode; in isofs_alloc_inode()
86 struct iso_inode_info *ei = foo; in init_once() local
88 inode_init_once(&ei->vfs_inode); in init_once()
1059 struct iso_inode_info *ei = ISOFS_I(inode); in isofs_get_blocks() local
1070 firstext = ei->i_first_extent; in isofs_get_blocks()
1071 sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); in isofs_get_blocks()
1072 nextblk = ei->i_next_section_block; in isofs_get_blocks()
[all …]
/fs/qnx6/
Dinode.c115 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_block_map() local
123 int depth = ei->di_filelevels; in qnx6_block_map()
134 block = qnx6_get_devblock(s, ei->di_block_ptr[levelptr]); in qnx6_block_map()
507 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_private_inode() local
510 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); in qnx6_private_inode()
511 ei->di_filelevels = p->levels; in qnx6_private_inode()
523 struct qnx6_inode_info *ei; in qnx6_iget() local
534 ei = QNX6_I(inode); in qnx6_iget()
571 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget()
573 ei->di_filelevels = raw_inode->di_filelevels; in qnx6_iget()
[all …]
/fs/btrfs/
Dprint-tree.c82 struct btrfs_extent_item *ei; in print_extent_item() local
94 if (unlikely(item_size < sizeof(*ei))) { in print_extent_item()
99 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item()
100 flags = btrfs_extent_flags(eb, ei); in print_extent_item()
103 btrfs_extent_refs(eb, ei), btrfs_extent_generation(eb, ei), in print_extent_item()
109 info = (struct btrfs_tree_block_info *)(ei + 1); in print_extent_item()
117 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item()
121 end = (unsigned long)ei + item_size; in print_extent_item()
/fs/efs/
Dsuper.c71 struct efs_inode_info *ei; in efs_alloc_inode() local
72 ei = alloc_inode_sb(sb, efs_inode_cachep, GFP_KERNEL); in efs_alloc_inode()
73 if (!ei) in efs_alloc_inode()
75 return &ei->vfs_inode; in efs_alloc_inode()
85 struct efs_inode_info *ei = (struct efs_inode_info *) foo; in init_once() local
87 inode_init_once(&ei->vfs_inode); in init_once()
/fs/reiserfs/
Dbitmap.c503 struct reiserfs_inode_info *ei) in __discard_prealloc() argument
505 unsigned long save = ei->i_prealloc_block; in __discard_prealloc()
507 struct inode *inode = &ei->vfs_inode; in __discard_prealloc()
511 if (ei->i_prealloc_count < 0) in __discard_prealloc()
515 while (ei->i_prealloc_count > 0) { in __discard_prealloc()
524 block_to_free = ei->i_prealloc_block++; in __discard_prealloc()
525 ei->i_prealloc_count--; in __discard_prealloc()
531 ei->i_prealloc_block = save; in __discard_prealloc()
532 list_del_init(&ei->i_prealloc_list); in __discard_prealloc()
539 struct reiserfs_inode_info *ei = REISERFS_I(inode); in reiserfs_discard_prealloc() local
[all …]
/fs/qnx4/
Dinode.c341 struct qnx4_inode_info *ei; in qnx4_alloc_inode() local
342 ei = alloc_inode_sb(sb, qnx4_inode_cachep, GFP_KERNEL); in qnx4_alloc_inode()
343 if (!ei) in qnx4_alloc_inode()
345 return &ei->vfs_inode; in qnx4_alloc_inode()
355 struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo; in init_once() local
357 inode_init_once(&ei->vfs_inode); in init_once()

1234