Home
last modified time | relevance | path

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

1234

/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()
113 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_map_cluster() local
117 if (ei->i_size_ondisk > 0) in exfat_map_cluster()
119 EXFAT_B_TO_CLU_ROUND_UP(ei->i_size_ondisk, sbi); in exfat_map_cluster()
[all …]
Dfile.c102 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_truncate() local
103 int evict = (ei->dir.dir == DIR_DELETED) ? 1 : 0; in __exfat_truncate()
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()
158 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, in __exfat_truncate()
[all …]
Dnamei.c315 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_find_empty_entry() local
320 if (ei->hint_femp.eidx != EXFAT_HINT_NONE) { in exfat_find_empty_entry()
321 hint_femp = ei->hint_femp; in exfat_find_empty_entry()
322 ei->hint_femp.eidx = EXFAT_HINT_NONE; in exfat_find_empty_entry()
336 if (ei->start_clu != EXFAT_EOF_CLUSTER) { in exfat_find_empty_entry()
356 if (ei->start_clu == EXFAT_EOF_CLUSTER) { in exfat_find_empty_entry()
357 ei->start_clu = clu.dir; in exfat_find_empty_entry()
393 &(ei->dir), ei->entry + 1, &bh, &sector); in exfat_find_empty_entry()
402 if (exfat_update_dir_chksum(inode, &(ei->dir), in exfat_find_empty_entry()
403 ei->entry)) in exfat_find_empty_entry()
[all …]
Dsuper.c183 struct exfat_inode_info *ei; in exfat_alloc_inode() local
185 ei = kmem_cache_alloc(exfat_inode_cachep, GFP_NOFS); in exfat_alloc_inode()
186 if (!ei) in exfat_alloc_inode()
189 init_rwsem(&ei->truncate_lock); in exfat_alloc_inode()
190 return &ei->vfs_inode; in exfat_alloc_inode()
334 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_read_root() local
338 exfat_chain_set(&ei->dir, sbi->root_dir, 0, ALLOC_FAT_CHAIN); in exfat_read_root()
339 ei->entry = -1; in exfat_read_root()
340 ei->start_clu = sbi->root_dir; in exfat_read_root()
341 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/f2fs/
Dextent_cache.c22 static void __set_extent_info(struct extent_info *ei, in __set_extent_info() argument
28 ei->fofs = fofs; in __set_extent_info()
29 ei->len = len; in __set_extent_info()
32 ei->blk = blk; in __set_extent_info()
36 ei->c_len = 0; in __set_extent_info()
39 ei->age = age; in __set_extent_info()
40 ei->last_blocks = last_blocks; in __set_extent_info()
87 if (en->ei.len <= et->largest.len) in __try_update_largest_extent()
90 et->largest = en->ei; in __try_update_largest_extent()
345 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument
[all …]
/fs/ext2/
Dioctl.c24 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_ioctl() local
33 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_ioctl()
61 oldflags = ei->i_flags; in ext2_ioctl()
71 ei->i_flags = flags; in ext2_ioctl()
110 && ei->i_block_alloc_info) { in ext2_ioctl()
111 rsv_window_size = ei->i_block_alloc_info->rsv_window_node.rsv_goal_size; in ext2_ioctl()
141 mutex_lock(&ei->truncate_mutex); in ext2_ioctl()
142 if (!ei->i_block_alloc_info) in ext2_ioctl()
145 if (ei->i_block_alloc_info){ in ext2_ioctl()
146 struct ext2_reserve_window_node *rsv = &ei->i_block_alloc_info->rsv_window_node; 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.c439 struct ext2_inode_info *ei; in ext2_new_inode() local
448 ei = EXT2_I(inode); in ext2_new_inode()
559 memset(ei->i_data, 0, sizeof(ei->i_data)); in ext2_new_inode()
560 ei->i_flags = in ext2_new_inode()
562 ei->i_faddr = 0; in ext2_new_inode()
563 ei->i_frag_no = 0; in ext2_new_inode()
564 ei->i_frag_size = 0; in ext2_new_inode()
565 ei->i_file_acl = 0; in ext2_new_inode()
566 ei->i_dir_acl = 0; in ext2_new_inode()
567 ei->i_dtime = 0; in ext2_new_inode()
[all …]
/fs/proc/
Dinode.c37 struct proc_inode *ei = PROC_I(inode); in proc_evict_inode() local
43 if (ei->pid) { in proc_evict_inode()
44 proc_pid_evict_inode(ei); in proc_evict_inode()
45 ei->pid = NULL; in proc_evict_inode()
49 de = ei->pde; in proc_evict_inode()
52 ei->pde = NULL; in proc_evict_inode()
55 head = ei->sysctl; in proc_evict_inode()
57 RCU_INIT_POINTER(ei->sysctl, NULL); in proc_evict_inode()
67 struct proc_inode *ei; in proc_alloc_inode() local
69 ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); in proc_alloc_inode()
[all …]
Dfd.c210 struct proc_inode *ei; in proc_fd_instantiate() local
217 ei = PROC_I(inode); in proc_fd_instantiate()
218 ei->fd = data->fd; in proc_fd_instantiate()
223 ei->op.proc_get_link = proc_fd_link; in proc_fd_instantiate()
349 struct proc_inode *ei; in proc_fdinfo_instantiate() local
356 ei = PROC_I(inode); in proc_fdinfo_instantiate()
357 ei->fd = data->fd; in proc_fdinfo_instantiate()
/fs/ext4/
Dfast_commit.c140 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() local
142 ei->i_fc_lblk_start = 0; in ext4_fc_reset_inode()
143 ei->i_fc_lblk_len = 0; in ext4_fc_reset_inode()
148 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() local
152 INIT_LIST_HEAD(&ei->i_fc_list); in ext4_fc_init_inode()
153 init_waitqueue_head(&ei->i_fc_wait); in ext4_fc_init_inode()
154 atomic_set(&ei->i_fc_updates, 0); in ext4_fc_init_inode()
162 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() local
165 DEFINE_WAIT_BIT(wait, &ei->i_state_flags, in ext4_fc_wait_committing_inode()
167 wq = bit_waitqueue(&ei->i_state_flags, in ext4_fc_wait_committing_inode()
[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()
368 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() local
[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()
1547 struct ext4_inode_info *ei; in __es_shrink() local
1566 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink()
[all …]
Dmigrate.c292 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() local
303 i_data[0] = ei->i_data[EXT4_IND_BLOCK]; in ext4_ext_swap_inode_data()
304 i_data[1] = ei->i_data[EXT4_DIND_BLOCK]; in ext4_ext_swap_inode_data()
305 i_data[2] = ei->i_data[EXT4_TIND_BLOCK]; in ext4_ext_swap_inode_data()
324 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); in ext4_ext_swap_inode_data()
393 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() local
394 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block()
416 struct ext4_inode_info *ei; in ext4_ext_migrate() local
468 ei = EXT4_I(inode); in ext4_ext_migrate()
470 EXT4_I(tmp_inode)->i_csum_seed = ei->i_csum_seed; in ext4_ext_migrate()
[all …]
Dpage-io.c227 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() local
235 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_add_complete_io()
237 if (list_empty(&ei->i_rsv_conversion_list)) in ext4_add_complete_io()
238 queue_work(wq, &ei->i_rsv_conversion_work); in ext4_add_complete_io()
239 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list); in ext4_add_complete_io()
240 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_add_complete_io()
249 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO() local
252 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO()
255 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO()
274 struct ext4_inode_info *ei = container_of(work, struct ext4_inode_info, in ext4_end_io_rsv_work() local
[all …]
Dialloc.c939 struct ext4_inode_info *ei; in __ext4_new_inode() local
963 ei = EXT4_I(inode); in __ext4_new_inode()
983 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode()
985 ei->i_projid = make_kprojid(&init_user_ns, EXT4_DEF_PROJID); in __ext4_new_inode()
1254 ei->i_crtime = inode->i_mtime; in __ext4_new_inode()
1256 memset(ei->i_data, 0, sizeof(ei->i_data)); in __ext4_new_inode()
1257 ei->i_dir_start_lookup = 0; in __ext4_new_inode()
1258 ei->i_disksize = 0; in __ext4_new_inode()
1261 ei->i_flags = in __ext4_new_inode()
1263 ei->i_flags |= i_flags; in __ext4_new_inode()
[all …]
Dioctl.c91 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_reset_inode_seed() local
101 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, sizeof(gen)); in ext4_reset_inode_seed()
284 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_check_immutable() local
285 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable()
293 __kprojid_val(ei->i_projid) != new_projid) in ext4_ioctl_check_immutable()
301 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dax_dontcache() local
310 if ((ei->i_flags ^ flags) & EXT4_DAX_FL) in ext4_dax_dontcache()
340 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags() local
351 oldflags = ei->i_flags; in ext4_ioctl_setflags()
471 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject() local
[all …]
/fs/coda/
Dinode.c45 struct coda_inode_info *ei; in coda_alloc_inode() local
46 ei = kmem_cache_alloc(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 = kmem_cache_alloc(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()
1058 struct iso_inode_info *ei = ISOFS_I(inode); in isofs_get_blocks() local
1069 firstext = ei->i_first_extent; in isofs_get_blocks()
1070 sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); in isofs_get_blocks()
1071 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()
509 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_private_inode() local
512 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); in qnx6_private_inode()
513 ei->di_filelevels = p->levels; in qnx6_private_inode()
525 struct qnx6_inode_info *ei; in qnx6_iget() local
536 ei = QNX6_I(inode); in qnx6_iget()
573 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget()
575 ei->di_filelevels = raw_inode->di_filelevels; in qnx6_iget()
[all …]
/fs/btrfs/
Dprint-tree.c81 struct btrfs_extent_item *ei; in print_extent_item() local
93 if (unlikely(item_size < sizeof(*ei))) { in print_extent_item()
98 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item()
99 flags = btrfs_extent_flags(eb, ei); in print_extent_item()
102 btrfs_extent_refs(eb, ei), btrfs_extent_generation(eb, ei), in print_extent_item()
108 info = (struct btrfs_tree_block_info *)(ei + 1); in print_extent_item()
116 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item()
120 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 = kmem_cache_alloc(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 …]

1234