/fs/exfat/ |
D | cache.c | 77 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 …]
|
D | inode.c | 27 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 …]
|
D | file.c | 103 struct exfat_inode_info *ei = EXFAT_I(inode); in __exfat_truncate() local 104 int evict = (ei->dir.dir == DIR_DELETED) ? 1 : 0; in __exfat_truncate() 107 if (ei->type != TYPE_FILE && ei->type != TYPE_DIR) in __exfat_truncate() 113 num_clusters_phys = EXFAT_B_TO_CLU_ROUND_UP(ei->i_size_ondisk, sbi); in __exfat_truncate() 115 exfat_chain_set(&clu, ei->start_clu, num_clusters_phys, ei->flags); in __exfat_truncate() 143 ei->flags = ALLOC_NO_FAT_CHAIN; in __exfat_truncate() 144 ei->start_clu = EXFAT_EOF_CLUSTER; in __exfat_truncate() 149 if (ei->type == TYPE_FILE) in __exfat_truncate() 150 ei->attr |= ATTR_ARCHIVE; in __exfat_truncate() 159 es = exfat_get_dentry_set(sb, &(ei->dir), ei->entry, in __exfat_truncate() [all …]
|
D | namei.c | 315 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, §or); 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 …]
|
D | super.c | 183 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 …]
|
D | dir.c | 77 struct exfat_inode_info *ei = EXFAT_I(inode); in exfat_readdir() local 82 if (ei->type != TYPE_DIR) in exfat_readdir() 85 if (ei->entry == -1) in exfat_readdir() 88 exfat_chain_set(&dir, ei->start_clu, in exfat_readdir() 89 EXFAT_B_TO_CLU(i_size_read(inode), sbi), ei->flags); in exfat_readdir() 104 if (clu_offset > 0 && ei->hint_bmap.off != EXFAT_EOF_CLUSTER && in exfat_readdir() 105 ei->hint_bmap.off > 0 && clu_offset >= ei->hint_bmap.off) { in exfat_readdir() 106 clu_offset -= ei->hint_bmap.off; in exfat_readdir() 107 clu.dir = ei->hint_bmap.clu; in exfat_readdir() 171 ei->hint_bmap.off = dentry >> dentries_per_clu_bits; in exfat_readdir() [all …]
|
/fs/f2fs/ |
D | extent_cache.c | 236 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument 246 en->ei = *ei; in __attach_extent_node() 319 struct extent_tree *et, struct extent_info *ei) in __init_extent_tree() argument 324 en = __attach_extent_node(sbi, et, ei, NULL, p, true); in __init_extent_tree() 328 et->largest = en->ei; in __init_extent_tree() 368 struct extent_info ei; in __f2fs_init_extent_tree() local 386 get_extent_info(&ei, i_ext); in __f2fs_init_extent_tree() 392 en = __init_extent_tree(sbi, et, &ei); in __f2fs_init_extent_tree() 411 struct extent_info *ei) in f2fs_lookup_extent_tree() argument 427 *ei = et->largest; in f2fs_lookup_extent_tree() [all …]
|
/fs/ext2/ |
D | ioctl.c | 23 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 …]
|
D | inode.c | 296 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 …]
|
D | ialloc.c | 439 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/ |
D | inode.c | 37 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 …]
|
D | fd.c | 199 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/ext4/ |
D | fast_commit.c | 191 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() local 193 ei->i_fc_lblk_start = 0; in ext4_fc_reset_inode() 194 ei->i_fc_lblk_len = 0; in ext4_fc_reset_inode() 199 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() local 203 INIT_LIST_HEAD(&ei->i_fc_list); in ext4_fc_init_inode() 204 init_waitqueue_head(&ei->i_fc_wait); in ext4_fc_init_inode() 205 atomic_set(&ei->i_fc_updates, 0); in ext4_fc_init_inode() 213 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() local 216 DEFINE_WAIT_BIT(wait, &ei->i_state_flags, in ext4_fc_wait_committing_inode() 218 wq = bit_waitqueue(&ei->i_state_flags, in ext4_fc_wait_committing_inode() [all …]
|
D | extents_status.c | 152 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() 1549 struct ext4_inode_info *ei; in __es_shrink() local 1568 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink() [all …]
|
D | inode.c | 54 struct ext4_inode_info *ei) in ext4_inode_csum() argument 62 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, offset); in ext4_inode_csum() 73 if (EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) { in ext4_inode_csum() 86 struct ext4_inode_info *ei) in ext4_inode_csum_verify() argument 96 calculated = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_verify() 98 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_verify() 107 struct ext4_inode_info *ei) in ext4_inode_csum_set() argument 116 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set() 119 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 …]
|
D | migrate.c | 292 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 …]
|
D | page-io.c | 224 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 …]
|
D | ialloc.c | 939 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() 1257 ei->i_crtime = inode->i_mtime; in __ext4_new_inode() 1259 memset(ei->i_data, 0, sizeof(ei->i_data)); in __ext4_new_inode() 1260 ei->i_dir_start_lookup = 0; in __ext4_new_inode() 1261 ei->i_disksize = 0; in __ext4_new_inode() 1264 ei->i_flags = in __ext4_new_inode() 1266 ei->i_flags |= i_flags; in __ext4_new_inode() [all …]
|
/fs/coda/ |
D | inode.c | 45 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/ |
D | inode.c | 72 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() 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/ |
D | inode.c | 115 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/ |
D | print-tree.c | 81 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/ |
D | super.c | 71 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/ |
D | bitmap.c | 503 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/ |
D | inode.c | 340 struct qnx4_inode_info *ei; in qnx4_alloc_inode() local 341 ei = kmem_cache_alloc(qnx4_inode_cachep, GFP_KERNEL); in qnx4_alloc_inode() 342 if (!ei) in qnx4_alloc_inode() 344 return &ei->vfs_inode; in qnx4_alloc_inode() 354 struct qnx4_inode_info *ei = (struct qnx4_inode_info *) foo; in init_once() local 356 inode_init_once(&ei->vfs_inode); in init_once()
|