/fs/f2fs/ |
D | extent_cache.c | 198 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument 207 en->ei = *ei; in __attach_extent_node() 279 struct extent_tree *et, struct extent_info *ei) in __init_extent_tree() argument 284 en = __attach_extent_node(sbi, et, ei, NULL, p); in __init_extent_tree() 288 et->largest = en->ei; in __init_extent_tree() 328 struct extent_info ei; in __f2fs_init_extent_tree() local 344 get_extent_info(&ei, i_ext); in __f2fs_init_extent_tree() 350 en = __init_extent_tree(sbi, et, &ei); in __f2fs_init_extent_tree() 372 struct extent_info *ei) in f2fs_lookup_extent_tree() argument 387 *ei = et->largest; in f2fs_lookup_extent_tree() [all …]
|
/fs/ext2/ |
D | ioctl.c | 23 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_ioctl() local 32 ext2_get_inode_flags(ei); in ext2_ioctl() 33 flags = ei->i_flags & EXT2_FL_USER_VISIBLE; in ext2_ioctl() 61 oldflags = ei->i_flags; in ext2_ioctl() 79 ei->i_flags = flags; in ext2_ioctl() 118 && ei->i_block_alloc_info) { in ext2_ioctl() 119 rsv_window_size = ei->i_block_alloc_info->rsv_window_node.rsv_goal_size; in ext2_ioctl() 149 mutex_lock(&ei->truncate_mutex); in ext2_ioctl() 150 if (!ei->i_block_alloc_info) in ext2_ioctl() 153 if (ei->i_block_alloc_info){ in ext2_ioctl() [all …]
|
D | inode.c | 293 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_find_near() local 294 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext2_find_near() 312 bg_start = ext2_group_first_block_no(inode->i_sb, ei->i_block_group); in ext2_find_near() 631 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local 677 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks() 698 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 710 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks() 730 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 741 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 747 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() [all …]
|
D | ialloc.c | 441 struct ext2_inode_info *ei; in ext2_new_inode() local 450 ei = EXT2_I(inode); in ext2_new_inode() 555 memset(ei->i_data, 0, sizeof(ei->i_data)); in ext2_new_inode() 556 ei->i_flags = in ext2_new_inode() 558 ei->i_faddr = 0; in ext2_new_inode() 559 ei->i_frag_no = 0; in ext2_new_inode() 560 ei->i_frag_size = 0; in ext2_new_inode() 561 ei->i_file_acl = 0; in ext2_new_inode() 562 ei->i_dir_acl = 0; in ext2_new_inode() 563 ei->i_dtime = 0; in ext2_new_inode() [all …]
|
/fs/ext3/ |
D | inode.c | 190 struct ext3_inode_info *ei = EXT3_I(inode); in ext3_evict_inode() local 224 tid_t commit_tid = atomic_read(&ei->i_datasync_tid); in ext3_evict_inode() 234 rsv = ei->i_block_alloc_info; in ext3_evict_inode() 235 ei->i_block_alloc_info = NULL; in ext3_evict_inode() 265 ei->i_dtime = get_seconds(); in ext3_evict_inode() 468 struct ext3_inode_info *ei = EXT3_I(inode); in ext3_find_near() local 469 __le32 *start = ind->bh ? (__le32*) ind->bh->b_data : ei->i_data; in ext3_find_near() 488 bg_start = ext3_group_first_block_no(inode->i_sb, ei->i_block_group); in ext3_find_near() 754 struct ext3_inode_info *ei = EXT3_I(inode); in ext3_splice_branch() local 757 block_i = ei->i_block_alloc_info; in ext3_splice_branch() [all …]
|
D | ioctl.c | 18 struct ext3_inode_info *ei = EXT3_I(inode); in ext3_ioctl() local 26 ext3_get_inode_flags(ei); in ext3_ioctl() 27 flags = ei->i_flags & EXT3_FL_USER_VISIBLE; in ext3_ioctl() 55 oldflags = ei->i_flags; in ext3_ioctl() 93 ei->i_flags = flags; in ext3_ioctl() 155 && ei->i_block_alloc_info) { in ext3_ioctl() 156 rsv_window_size = ei->i_block_alloc_info->rsv_window_node.rsv_goal_size; in ext3_ioctl() 187 mutex_lock(&ei->truncate_mutex); in ext3_ioctl() 188 if (!ei->i_block_alloc_info) in ext3_ioctl() 191 if (ei->i_block_alloc_info){ in ext3_ioctl() [all …]
|
D | ialloc.c | 357 struct ext3_inode_info *ei; in ext3_new_inode() local 372 ei = EXT3_I(inode); in ext3_new_inode() 480 memset(ei->i_data, 0, sizeof(ei->i_data)); in ext3_new_inode() 481 ei->i_dir_start_lookup = 0; in ext3_new_inode() 482 ei->i_disksize = 0; in ext3_new_inode() 484 ei->i_flags = in ext3_new_inode() 487 ei->i_faddr = 0; in ext3_new_inode() 488 ei->i_frag_no = 0; in ext3_new_inode() 489 ei->i_frag_size = 0; in ext3_new_inode() 491 ei->i_file_acl = 0; in ext3_new_inode() [all …]
|
D | fsync.c | 44 struct ext3_inode_info *ei = EXT3_I(inode); in ext3_sync_file() local 84 commit_tid = atomic_read(&ei->i_datasync_tid); in ext3_sync_file() 86 commit_tid = atomic_read(&ei->i_sync_tid); in ext3_sync_file()
|
/fs/logfs/ |
D | dev_mtd.c | 67 static void logfs_erase_callback(struct erase_info *ei) in logfs_erase_callback() argument 69 complete((struct completion *)ei->priv); in logfs_erase_callback() 94 struct erase_info ei; in logfs_mtd_erase() local 102 memset(&ei, 0, sizeof(ei)); in logfs_mtd_erase() 103 ei.mtd = mtd; in logfs_mtd_erase() 104 ei.addr = ofs; in logfs_mtd_erase() 105 ei.len = len; in logfs_mtd_erase() 106 ei.callback = logfs_erase_callback; in logfs_mtd_erase() 107 ei.priv = (long)&complete; in logfs_mtd_erase() 108 ret = mtd_erase(mtd, &ei); in logfs_mtd_erase() [all …]
|
/fs/coda/ |
D | inode.c | 44 struct coda_inode_info *ei; in coda_alloc_inode() local 45 ei = kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); in coda_alloc_inode() 46 if (!ei) in coda_alloc_inode() 48 memset(&ei->c_fid, 0, sizeof(struct CodaFid)); in coda_alloc_inode() 49 ei->c_flags = 0; in coda_alloc_inode() 50 ei->c_uid = GLOBAL_ROOT_UID; in coda_alloc_inode() 51 ei->c_cached_perm = 0; in coda_alloc_inode() 52 spin_lock_init(&ei->c_lock); in coda_alloc_inode() 53 return &ei->vfs_inode; in coda_alloc_inode() 69 struct coda_inode_info *ei = (struct coda_inode_info *) foo; in init_once() local [all …]
|
/fs/proc/ |
D | namespaces.c | 65 struct proc_inode *ei; in proc_ns_get_dentry() local 86 ei = PROC_I(inode); in proc_ns_get_dentry() 92 ei->ns.ns_ops = ns_ops; in proc_ns_get_dentry() 93 ei->ns.ns = ns; in proc_ns_get_dentry() 113 struct proc_inode *ei = PROC_I(inode); in proc_ns_follow_link() local 125 ns_path.dentry = proc_ns_get_dentry(sb, task, ei->ns.ns_ops); in proc_ns_follow_link() 144 struct proc_inode *ei = PROC_I(inode); in proc_ns_readlink() local 145 const struct proc_ns_operations *ns_ops = ei->ns.ns_ops; in proc_ns_readlink() 183 struct proc_inode *ei; in proc_ns_instantiate() local 189 ei = PROC_I(inode); in proc_ns_instantiate() [all …]
|
D | inode.c | 65 struct proc_inode *ei; in proc_alloc_inode() local 68 ei = (struct proc_inode *)kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); in proc_alloc_inode() 69 if (!ei) in proc_alloc_inode() 71 ei->pid = NULL; in proc_alloc_inode() 72 ei->fd = 0; in proc_alloc_inode() 73 ei->op.proc_get_link = NULL; in proc_alloc_inode() 74 ei->pde = NULL; in proc_alloc_inode() 75 ei->sysctl = NULL; in proc_alloc_inode() 76 ei->sysctl_entry = NULL; in proc_alloc_inode() 77 ei->ns.ns = NULL; in proc_alloc_inode() [all …]
|
D | fd.c | 175 struct proc_inode *ei; in proc_fd_instantiate() local 182 ei = PROC_I(inode); in proc_fd_instantiate() 183 ei->fd = fd; in proc_fd_instantiate() 189 ei->op.proc_get_link = proc_fd_link; in proc_fd_instantiate() 313 struct proc_inode *ei; in proc_fdinfo_instantiate() local 320 ei = PROC_I(inode); in proc_fdinfo_instantiate() 321 ei->fd = fd; in proc_fdinfo_instantiate()
|
/fs/ext4/ |
D | extents_status.c | 150 static int __es_try_to_reclaim_extents(struct ext4_inode_info *ei, 956 struct ext4_inode_info *ei; in __ext4_es_shrink() local 981 ei = list_entry(cur, struct ext4_inode_info, i_es_lru); in __ext4_es_shrink() 988 if ((es_stats->es_stats_last_sorted < ei->i_touch_when) || in __ext4_es_shrink() 989 (skip_precached && ext4_test_inode_state(&ei->vfs_inode, in __ext4_es_shrink() 996 if (ei->i_es_lru_nr == 0 || ei == locked_ei || in __ext4_es_shrink() 997 !write_trylock(&ei->i_es_lock)) in __ext4_es_shrink() 1000 shrunk = __es_try_to_reclaim_extents(ei, nr_to_scan); in __ext4_es_shrink() 1001 if (ei->i_es_lru_nr == 0) in __ext4_es_shrink() 1002 list_del_init(&ei->i_es_lru); in __ext4_es_shrink() [all …]
|
D | inode.c | 54 struct ext4_inode_info *ei) in ext4_inode_csum() argument 64 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) { in ext4_inode_csum() 69 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, in ext4_inode_csum() 74 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum() 81 struct ext4_inode_info *ei) in ext4_inode_csum_verify() argument 91 calculated = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_verify() 93 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_verify() 102 struct ext4_inode_info *ei) in ext4_inode_csum_set() argument 111 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set() 114 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_set() [all …]
|
D | crypto_key.c | 98 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_free_encryption_info() local 102 ci = ACCESS_ONCE(ei->i_crypt_info); in ext4_free_encryption_info() 105 prev = cmpxchg(&ei->i_crypt_info, ci, NULL); in ext4_free_encryption_info() 114 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_get_encryption_info() local 129 if (ei->i_crypt_info) in ext4_get_encryption_info() 250 if (cmpxchg(&ei->i_crypt_info, NULL, crypt_info) == NULL) in ext4_get_encryption_info() 263 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_has_encryption_key() local 265 return (ei->i_crypt_info != NULL); in ext4_has_encryption_key()
|
D | migrate.c | 321 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() local 335 i_data[0] = ei->i_data[EXT4_IND_BLOCK]; in ext4_ext_swap_inode_data() 336 i_data[1] = ei->i_data[EXT4_DIND_BLOCK]; in ext4_ext_swap_inode_data() 337 i_data[2] = ei->i_data[EXT4_TIND_BLOCK]; in ext4_ext_swap_inode_data() 356 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); in ext4_ext_swap_inode_data() 418 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() local 419 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block() 440 struct ext4_inode_info *ei; in ext4_ext_migrate() local 528 ei = EXT4_I(inode); in ext4_ext_migrate() 529 i_data = ei->i_data; in ext4_ext_migrate() [all …]
|
D | page-io.c | 218 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() local 226 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_add_complete_io() 228 if (list_empty(&ei->i_rsv_conversion_list)) in ext4_add_complete_io() 229 queue_work(wq, &ei->i_rsv_conversion_work); in ext4_add_complete_io() 230 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list); in ext4_add_complete_io() 231 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_add_complete_io() 240 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO() local 243 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO() 246 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO() 265 struct ext4_inode_info *ei = container_of(work, struct ext4_inode_info, in ext4_end_io_rsv_work() local [all …]
|
D | ialloc.c | 723 struct ext4_inode_info *ei; in __ext4_new_inode() local 755 ei = EXT4_I(inode); in __ext4_new_inode() 999 inode->i_mtime = inode->i_atime = inode->i_ctime = ei->i_crtime = in __ext4_new_inode() 1002 memset(ei->i_data, 0, sizeof(ei->i_data)); in __ext4_new_inode() 1003 ei->i_dir_start_lookup = 0; in __ext4_new_inode() 1004 ei->i_disksize = 0; in __ext4_new_inode() 1007 ei->i_flags = in __ext4_new_inode() 1009 ei->i_file_acl = 0; in __ext4_new_inode() 1010 ei->i_dtime = 0; in __ext4_new_inode() 1011 ei->i_block_group = group; in __ext4_new_inode() [all …]
|
D | indirect.c | 210 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_find_near() local 211 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext4_find_near() 650 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_direct_IO() local 673 ei->i_disksize = inode->i_size; in ext4_ind_direct_IO() 732 ei->i_disksize = end; in ext4_ind_direct_IO() 758 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_calc_metadata_amount() local 767 if (ei->i_da_metadata_calc_len && in ext4_ind_calc_metadata_amount() 768 (lblock & dind_mask) == ei->i_da_metadata_calc_last_lblock) { in ext4_ind_calc_metadata_amount() 769 ei->i_da_metadata_calc_len++; in ext4_ind_calc_metadata_amount() 772 ei->i_da_metadata_calc_last_lblock = lblock & dind_mask; in ext4_ind_calc_metadata_amount() [all …]
|
/fs/isofs/ |
D | inode.c | 67 struct iso_inode_info *ei; in isofs_alloc_inode() local 68 ei = kmem_cache_alloc(isofs_inode_cachep, GFP_KERNEL); in isofs_alloc_inode() 69 if (!ei) in isofs_alloc_inode() 71 return &ei->vfs_inode; in isofs_alloc_inode() 87 struct iso_inode_info *ei = foo; in init_once() local 89 inode_init_once(&ei->vfs_inode); in init_once() 1004 struct iso_inode_info *ei = ISOFS_I(inode); in isofs_get_blocks() local 1015 firstext = ei->i_first_extent; in isofs_get_blocks() 1016 sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); in isofs_get_blocks() 1017 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() 508 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_private_inode() local 511 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); in qnx6_private_inode() 512 ei->di_filelevels = p->levels; in qnx6_private_inode() 524 struct qnx6_inode_info *ei; in qnx6_iget() local 535 ei = QNX6_I(inode); in qnx6_iget() 572 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget() 574 ei->di_filelevels = raw_inode->di_filelevels; in qnx6_iget() [all …]
|
/fs/btrfs/ |
D | print-tree.c | 59 struct btrfs_extent_item *ei; in print_extent_item() local 70 if (item_size < sizeof(*ei)) { in print_extent_item() 83 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item() 84 flags = btrfs_extent_flags(eb, ei); in print_extent_item() 87 btrfs_extent_refs(eb, ei), btrfs_extent_generation(eb, ei), in print_extent_item() 93 info = (struct btrfs_tree_block_info *)(ei + 1); in print_extent_item() 102 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item() 106 end = (unsigned long)ei + item_size; in print_extent_item()
|
/fs/efs/ |
D | super.c | 69 struct efs_inode_info *ei; in efs_alloc_inode() local 70 ei = (struct efs_inode_info *)kmem_cache_alloc(efs_inode_cachep, GFP_KERNEL); in efs_alloc_inode() 71 if (!ei) in efs_alloc_inode() 73 return &ei->vfs_inode; in efs_alloc_inode() 89 struct efs_inode_info *ei = (struct efs_inode_info *) foo; in init_once() local 91 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 …]
|