/fs/f2fs/ |
D | extent_cache.c | 203 struct extent_tree *et, struct extent_info *ei, in __attach_extent_node() argument 213 en->ei = *ei; in __attach_extent_node() 285 struct extent_tree *et, struct extent_info *ei) in __init_extent_tree() argument 290 en = __attach_extent_node(sbi, et, ei, NULL, p, true); in __init_extent_tree() 294 et->largest = en->ei; in __init_extent_tree() 333 struct extent_info ei; in __f2fs_init_extent_tree() local 349 get_extent_info(&ei, i_ext); in __f2fs_init_extent_tree() 355 en = __init_extent_tree(sbi, et, &ei); in __f2fs_init_extent_tree() 377 struct extent_info *ei) in f2fs_lookup_extent_tree() argument 392 *ei = et->largest; in f2fs_lookup_extent_tree() [all …]
|
/fs/ext2/ |
D | ioctl.c | 24 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 …]
|
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() 636 struct ext2_inode_info *ei = EXT2_I(inode); in ext2_get_blocks() local 682 mutex_lock(&ei->truncate_mutex); in ext2_get_blocks() 703 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 708 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 717 if (S_ISREG(inode->i_mode) && (!ei->i_block_alloc_info)) in ext2_get_blocks() 737 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() 758 mutex_unlock(&ei->truncate_mutex); in ext2_get_blocks() [all …]
|
D | ialloc.c | 438 struct ext2_inode_info *ei; in ext2_new_inode() local 447 ei = EXT2_I(inode); in ext2_new_inode() 558 memset(ei->i_data, 0, sizeof(ei->i_data)); in ext2_new_inode() 559 ei->i_flags = in ext2_new_inode() 561 ei->i_faddr = 0; in ext2_new_inode() 562 ei->i_frag_no = 0; in ext2_new_inode() 563 ei->i_frag_size = 0; in ext2_new_inode() 564 ei->i_file_acl = 0; in ext2_new_inode() 565 ei->i_dir_acl = 0; in ext2_new_inode() 566 ei->i_dtime = 0; in ext2_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/ext4/ |
D | extents_status.c | 150 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan); 416 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() local 419 if (!list_empty(&ei->i_es_list)) in ext4_es_list_add() 423 if (list_empty(&ei->i_es_list)) { in ext4_es_list_add() 424 list_add_tail(&ei->i_es_list, &sbi->s_es_list); in ext4_es_list_add() 432 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() local 436 if (!list_empty(&ei->i_es_list)) { in ext4_es_list_del() 437 list_del_init(&ei->i_es_list); in ext4_es_list_del() 1448 struct ext4_inode_info *ei; in __es_shrink() local 1467 ei = list_first_entry(&sbi->s_es_list, struct ext4_inode_info, in __es_shrink() [all …]
|
D | inode.c | 55 struct ext4_inode_info *ei) in ext4_inode_csum() argument 63 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)raw, offset); in ext4_inode_csum() 74 if (EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) { in ext4_inode_csum() 87 struct ext4_inode_info *ei) in ext4_inode_csum_verify() argument 97 calculated = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_verify() 99 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_verify() 108 struct ext4_inode_info *ei) in ext4_inode_csum_set() argument 117 csum = ext4_inode_csum(inode, raw, ei); in ext4_inode_csum_set() 120 EXT4_FITS_IN_INODE(raw, ei, i_checksum_hi)) in ext4_inode_csum_set() 367 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() local [all …]
|
D | migrate.c | 314 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() local 328 i_data[0] = ei->i_data[EXT4_IND_BLOCK]; in ext4_ext_swap_inode_data() 329 i_data[1] = ei->i_data[EXT4_DIND_BLOCK]; in ext4_ext_swap_inode_data() 330 i_data[2] = ei->i_data[EXT4_TIND_BLOCK]; in ext4_ext_swap_inode_data() 349 memcpy(ei->i_data, tmp_ei->i_data, sizeof(ei->i_data)); in ext4_ext_swap_inode_data() 411 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() local 412 struct ext4_extent_header *eh = (struct ext4_extent_header *)ei->i_data; in free_ext_block() 433 struct ext4_inode_info *ei; in ext4_ext_migrate() local 520 ei = EXT4_I(inode); in ext4_ext_migrate() 521 i_data = ei->i_data; in ext4_ext_migrate() [all …]
|
D | page-io.c | 191 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() local 199 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_add_complete_io() 201 if (list_empty(&ei->i_rsv_conversion_list)) in ext4_add_complete_io() 202 queue_work(wq, &ei->i_rsv_conversion_work); in ext4_add_complete_io() 203 list_add_tail(&io_end->list, &ei->i_rsv_conversion_list); in ext4_add_complete_io() 204 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_add_complete_io() 213 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO() local 216 spin_lock_irqsave(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO() 219 spin_unlock_irqrestore(&ei->i_completed_io_lock, flags); in ext4_do_flush_completed_IO() 238 struct ext4_inode_info *ei = container_of(work, struct ext4_inode_info, in ext4_end_io_rsv_work() local [all …]
|
D | ialloc.c | 750 struct ext4_inode_info *ei; in __ext4_new_inode() local 827 ei = EXT4_I(inode); in __ext4_new_inode() 847 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode() 849 ei->i_projid = make_kprojid(&init_user_ns, EXT4_DEF_PROJID); in __ext4_new_inode() 1084 ei->i_crtime = inode->i_mtime; in __ext4_new_inode() 1086 memset(ei->i_data, 0, sizeof(ei->i_data)); in __ext4_new_inode() 1087 ei->i_dir_start_lookup = 0; in __ext4_new_inode() 1088 ei->i_disksize = 0; in __ext4_new_inode() 1091 ei->i_flags = in __ext4_new_inode() 1093 ei->i_flags |= i_flags; in __ext4_new_inode() [all …]
|
D | ioctl.c | 91 struct ext4_inode_info *ei = EXT4_I(inode); in reset_inode_seed() local 101 ei->i_csum_seed = ext4_chksum(sbi, csum, (__u8 *)&gen, sizeof(gen)); in reset_inode_seed() 280 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_check_immutable() local 281 unsigned int oldflags = ei->i_flags; in ext4_ioctl_check_immutable() 289 __kprojid_val(ei->i_projid) != new_projid) in ext4_ioctl_check_immutable() 298 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags() local 310 oldflags = ei->i_flags; in ext4_ioctl_setflags() 435 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject() local 468 if (!EXT4_FITS_IN_INODE(raw_inode, ei, i_projid)) { in ext4_ioctl_setproject() 739 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fill_fsxattr() local [all …]
|
D | indirect.c | 212 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_find_near() local 213 __le32 *start = ind->bh ? (__le32 *) ind->bh->b_data : ei->i_data; in ext4_find_near() 658 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_calc_metadata_amount() local 667 if (ei->i_da_metadata_calc_len && in ext4_ind_calc_metadata_amount() 668 (lblock & dind_mask) == ei->i_da_metadata_calc_last_lblock) { in ext4_ind_calc_metadata_amount() 669 ei->i_da_metadata_calc_len++; in ext4_ind_calc_metadata_amount() 672 ei->i_da_metadata_calc_last_lblock = lblock & dind_mask; in ext4_ind_calc_metadata_amount() 673 ei->i_da_metadata_calc_len = 1; in ext4_ind_calc_metadata_amount() 1097 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_truncate() local 1098 __le32 *i_data = ei->i_data; in ext4_ind_truncate() [all …]
|
D | fsync.c | 98 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_sync_file() local 150 commit_tid = datasync ? ei->i_datasync_tid : ei->i_sync_tid; in ext4_sync_file()
|
/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() 1065 struct iso_inode_info *ei = ISOFS_I(inode); in isofs_get_blocks() local 1076 firstext = ei->i_first_extent; in isofs_get_blocks() 1077 sect_size = ei->i_section_size >> ISOFS_BUFFER_BITS(inode); in isofs_get_blocks() 1078 nextblk = ei->i_next_section_block; in isofs_get_blocks() [all …]
|
D | export.c | 116 struct iso_inode_info * ei = ISOFS_I(inode); in isofs_export_encode_fh() local 136 fh32[0] = ei->i_iget5_block; in isofs_export_encode_fh() 137 fh16[2] = (__u16)ei->i_iget5_offset; /* fh16 [sic] */ in isofs_export_encode_fh()
|
/fs/proc/ |
D | inode.c | 60 struct proc_inode *ei; in proc_alloc_inode() local 62 ei = kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); in proc_alloc_inode() 63 if (!ei) in proc_alloc_inode() 65 ei->pid = NULL; in proc_alloc_inode() 66 ei->fd = 0; in proc_alloc_inode() 67 ei->op.proc_get_link = NULL; in proc_alloc_inode() 68 ei->pde = NULL; in proc_alloc_inode() 69 ei->sysctl = NULL; in proc_alloc_inode() 70 ei->sysctl_entry = NULL; in proc_alloc_inode() 71 ei->ns_ops = NULL; in proc_alloc_inode() [all …]
|
D | fd.c | 186 struct proc_inode *ei; in proc_fd_instantiate() local 193 ei = PROC_I(inode); in proc_fd_instantiate() 194 ei->fd = data->fd; in proc_fd_instantiate() 199 ei->op.proc_get_link = proc_fd_link; in proc_fd_instantiate() 325 struct proc_inode *ei; in proc_fdinfo_instantiate() local 332 ei = PROC_I(inode); in proc_fdinfo_instantiate() 333 ei->fd = data->fd; in proc_fdinfo_instantiate()
|
D | namespaces.c | 95 struct proc_inode *ei; in proc_ns_instantiate() local 101 ei = PROC_I(inode); in proc_ns_instantiate() 103 ei->ns_ops = ns_ops; in proc_ns_instantiate()
|
/fs/qnx6/ |
D | inode.c | 116 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_block_map() local 124 int depth = ei->di_filelevels; in qnx6_block_map() 135 block = qnx6_get_devblock(s, ei->di_block_ptr[levelptr]); in qnx6_block_map() 511 struct qnx6_inode_info *ei = QNX6_I(inode); in qnx6_private_inode() local 514 memcpy(ei->di_block_ptr, p->ptr, sizeof(p->ptr)); in qnx6_private_inode() 515 ei->di_filelevels = p->levels; in qnx6_private_inode() 527 struct qnx6_inode_info *ei; in qnx6_iget() local 538 ei = QNX6_I(inode); in qnx6_iget() 575 memcpy(&ei->di_block_ptr, &raw_inode->di_block_ptr, in qnx6_iget() 577 ei->di_filelevels = raw_inode->di_filelevels; in qnx6_iget() [all …]
|
/fs/btrfs/ |
D | print-tree.c | 43 struct btrfs_extent_item *ei; in print_extent_item() local 55 if (unlikely(item_size < sizeof(*ei))) { in print_extent_item() 60 ei = btrfs_item_ptr(eb, slot, struct btrfs_extent_item); in print_extent_item() 61 flags = btrfs_extent_flags(eb, ei); in print_extent_item() 64 btrfs_extent_refs(eb, ei), btrfs_extent_generation(eb, ei), in print_extent_item() 70 info = (struct btrfs_tree_block_info *)(ei + 1); in print_extent_item() 78 iref = (struct btrfs_extent_inline_ref *)(ei + 1); in print_extent_item() 82 end = (unsigned long)ei + item_size; in print_extent_item()
|
D | extent-tree.c | 46 struct btrfs_extent_item *ei); 157 struct btrfs_extent_item *ei; in btrfs_lookup_extent_info() local 210 if (item_size >= sizeof(*ei)) { in btrfs_lookup_extent_info() 211 ei = btrfs_item_ptr(leaf, path->slots[0], in btrfs_lookup_extent_info() 213 num_refs = btrfs_extent_refs(leaf, ei); in btrfs_lookup_extent_info() 214 extent_flags = btrfs_extent_flags(leaf, ei); in btrfs_lookup_extent_info() 829 struct btrfs_extent_item *ei; in lookup_inline_extent_backref() local 904 if (unlikely(item_size < sizeof(*ei))) { in lookup_inline_extent_backref() 911 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_extent_item); in lookup_inline_extent_backref() 912 flags = btrfs_extent_flags(leaf, ei); in lookup_inline_extent_backref() [all …]
|
D | backref.c | 888 struct btrfs_extent_item *ei; in add_inline_refs() local 899 BUG_ON(item_size < sizeof(*ei)); in add_inline_refs() 901 ei = btrfs_item_ptr(leaf, slot, struct btrfs_extent_item); in add_inline_refs() 902 flags = btrfs_extent_flags(leaf, ei); in add_inline_refs() 903 *total_refs += btrfs_extent_refs(leaf, ei); in add_inline_refs() 906 ptr = (unsigned long)(ei + 1); in add_inline_refs() 907 end = (unsigned long)ei + item_size; in add_inline_refs() 1697 struct btrfs_extent_item *ei; local 1732 BUG_ON(item_size < sizeof(*ei)); 1734 ei = btrfs_item_ptr(eb, path->slots[0], struct btrfs_extent_item); [all …]
|
/fs/efs/ |
D | super.c | 70 struct efs_inode_info *ei; in efs_alloc_inode() local 71 ei = kmem_cache_alloc(efs_inode_cachep, GFP_KERNEL); in efs_alloc_inode() 72 if (!ei) in efs_alloc_inode() 74 return &ei->vfs_inode; in efs_alloc_inode() 84 struct efs_inode_info *ei = (struct efs_inode_info *) foo; in init_once() local 86 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 | 341 struct qnx4_inode_info *ei; in qnx4_alloc_inode() local 342 ei = kmem_cache_alloc(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()
|