/fs/ext4/ |
D | inline.c | 30 if (EXT4_I(inode)->i_inline_off) in ext4_get_inline_size() 31 return EXT4_I(inode)->i_inline_size; in ext4_get_inline_size() 46 EXT4_I(inode)->i_extra_isize - in get_max_inline_xattr_value_size() 74 if (EXT4_I(inode)->i_inline_off) { in get_max_inline_xattr_value_size() 76 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size() 103 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_get_max_inline_size() 114 down_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size() 116 up_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size() 142 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_find_inline_data_nolock() 154 EXT4_I(inode)->i_inline_off = (u16)((void *)is.s.here - in ext4_find_inline_data_nolock() [all …]
|
D | migrate.c | 43 down_write(&EXT4_I(inode)->i_data_sem); in finish_range() 65 up_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 67 down_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 76 up_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 78 down_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 85 up_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 321 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() 322 struct ext4_inode_info *tmp_ei = EXT4_I(tmp_inode); in ext4_ext_swap_inode_data() 339 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 347 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() [all …]
|
D | extents_status.c | 181 tree = &EXT4_I(inode)->i_es_tree; in ext4_es_print_tree() 256 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_delayed_extent_range() 257 tree = &EXT4_I(inode)->i_es_tree; in ext4_es_find_delayed_extent_range() 293 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_delayed_extent_range() 300 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() 316 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() 344 if (!EXT4_I(inode)->i_es_shk_nr++) in ext4_es_alloc_extent() 350 EXT4_I(inode)->i_es_all_nr++; in ext4_es_alloc_extent() 358 EXT4_I(inode)->i_es_all_nr--; in ext4_es_free_extent() 363 BUG_ON(EXT4_I(inode)->i_es_shk_nr == 0); in ext4_es_free_extent() [all …]
|
D | file.c | 48 !EXT4_I(inode)->i_reserved_data_blocks) in ext4_release_file() 50 down_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file() 52 up_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file() 64 wait_event(*wq, (atomic_read(&EXT4_I(inode)->i_unwritten) == 0)); in ext4_unwritten_wait() 190 down_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_fault() 194 down_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_fault() 204 up_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_fault() 207 up_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_fault() 224 down_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_pmd_fault() 229 down_read(&EXT4_I(inode)->i_mmap_sem); in ext4_dax_pmd_fault() [all …]
|
D | xattr.c | 298 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_get() 301 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_get() 302 bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); in ext4_xattr_block_get() 310 EXT4_I(inode)->i_file_acl); in ext4_xattr_block_get() 398 down_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get() 404 up_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get() 450 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_list() 453 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_list() 454 bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); in ext4_xattr_block_list() 462 EXT4_I(inode)->i_file_acl); in ext4_xattr_block_list() [all …]
|
D | inode.c | 131 if (!EXT4_I(inode)->jinode) in ext4_begin_ordered_truncate() 134 EXT4_I(inode)->jinode, in ext4_begin_ordered_truncate() 150 int ea_blocks = EXT4_I(inode)->i_file_acl ? in ext4_inode_is_fast_symlink() 177 up_write(&EXT4_I(inode)->i_data_sem); in ext4_truncate_restart_trans() 179 down_write(&EXT4_I(inode)->i_data_sem); in ext4_truncate_restart_trans() 218 tid_t commit_tid = EXT4_I(inode)->i_datasync_tid; in ext4_evict_inode() 297 EXT4_I(inode)->i_dtime = get_seconds(); in ext4_evict_inode() 321 return &EXT4_I(inode)->i_reserved_quota; in ext4_get_reserved_space() 333 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() 350 spin_unlock(&EXT4_I(inode)->i_block_reservation_lock); in ext4_da_update_reserve_space() [all …]
|
D | xattr.h | 69 EXT4_I(inode)->i_extra_isize)) 116 down_write(&EXT4_I(inode)->xattr_sem); in ext4_write_lock_xattr() 123 if (down_write_trylock(&EXT4_I(inode)->xattr_sem) == 0) in ext4_write_trylock_xattr() 134 up_write(&EXT4_I(inode)->xattr_sem); in ext4_write_unlock_xattr()
|
D | truncate.h | 13 down_write(&EXT4_I(inode)->i_mmap_sem); in ext4_truncate_failed_write() 16 up_write(&EXT4_I(inode)->i_mmap_sem); in ext4_truncate_failed_write()
|
D | ioctl.c | 60 ei1 = EXT4_I(inode1); in swap_inode_data() 61 ei2 = EXT4_I(inode2); in swap_inode_data() 110 ei_bl = EXT4_I(inode_bl); in swap_inode_boot_loader() 209 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags() 305 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject() 325 if (projid_eq(kprojid, EXT4_I(inode)->i_projid)) in ext4_ioctl_setproject() 372 EXT4_I(inode)->i_projid = kprojid; in ext4_ioctl_setproject() 439 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl() 833 EXT4_I(inode)->i_projid); in ext4_ioctl()
|
D | symlink.c | 38 caddr = EXT4_I(inode)->i_data; in ext4_encrypted_get_link() 39 max_size = sizeof(EXT4_I(inode)->i_data); in ext4_encrypted_get_link()
|
D | extents.c | 63 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_extent_block_csum() 169 WARN_ON(!rwsem_is_locked(&EXT4_I(inode)->i_data_sem)); in __ext4_ext_dirty() 274 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root() 288 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root_idx() 319 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_calc_metadata_amount() 581 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_precache() 1305 memmove(bh->b_data, EXT4_I(inode)->i_data, in ext4_ext_grow_indepth() 1306 sizeof(EXT4_I(inode)->i_data)); in ext4_ext_grow_indepth() 1753 atomic_read(&EXT4_I(inode)->i_unwritten) || in ext4_can_extents_be_merged() 2174 down_read(&EXT4_I(inode)->i_data_sem); in ext4_fill_fiemap_extents() [all …]
|
D | move_extent.c | 62 down_write(&EXT4_I(first)->i_data_sem); in ext4_double_down_write_data_sem() 63 down_write_nested(&EXT4_I(second)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 65 down_write(&EXT4_I(second)->i_data_sem); in ext4_double_down_write_data_sem() 66 down_write_nested(&EXT4_I(first)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 82 up_write(&EXT4_I(orig_inode)->i_data_sem); in ext4_double_up_write_data_sem() 83 up_write(&EXT4_I(donor_inode)->i_data_sem); in ext4_double_up_write_data_sem()
|
D | ialloc.c | 406 ext4_group_t parent_group = EXT4_I(parent)->i_block_group; in find_group_orlov() 503 if (EXT4_I(parent)->i_last_alloc_group != ~0) { in find_group_orlov() 504 parent_group = EXT4_I(parent)->i_last_alloc_group; in find_group_orlov() 525 parent_group = EXT4_I(parent)->i_block_group; in find_group_orlov() 553 ext4_group_t parent_group = EXT4_I(parent)->i_block_group; in find_group_other() 580 if (!retry && EXT4_I(parent)->i_last_alloc_group != ~0) { in find_group_other() 582 parent_group = EXT4_I(parent)->i_last_alloc_group; in find_group_other() 745 ei = EXT4_I(inode); in __ext4_new_inode() 766 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode() 790 EXT4_I(dir)->i_last_alloc_group = group; in __ext4_new_inode() [all …]
|
D | ext4_jbd2.h | 375 EXT4_I(inode)->jinode); in ext4_jbd2_inode_add_write() 384 EXT4_I(inode)->jinode); in ext4_jbd2_inode_add_wait() 392 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_update_inode_fsync_trans()
|
D | ext4.h | 849 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) \ 866 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) \ 1522 static inline struct ext4_inode_info *EXT4_I(struct inode *inode) in EXT4_I() function 1566 return test_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1570 set_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1574 clear_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1614 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime 2818 down_write(&EXT4_I(inode)->i_data_sem); in ext4_update_i_disksize() 2819 if (newsize > EXT4_I(inode)->i_disksize) in ext4_update_i_disksize() 2820 EXT4_I(inode)->i_disksize = newsize; in ext4_update_i_disksize() [all …]
|
D | namei.c | 68 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_append() 326 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dirent_csum() 421 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dx_csum() 1394 start = EXT4_I(dir)->i_dir_start_lookup; in ext4_find_entry() 1457 EXT4_I(dir)->i_dir_start_lookup = block; in ext4_find_entry() 2740 if (!list_empty(&EXT4_I(inode)->i_orphan)) in ext4_orphan_add() 2773 list_add(&EXT4_I(inode)->i_orphan, &sbi->s_orphan); in ext4_orphan_add() 2788 list_del_init(&EXT4_I(inode)->i_orphan); in ext4_orphan_add() 2807 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_orphan_del() 3123 inode->i_link = (char *)&EXT4_I(inode)->i_data; in ext4_symlink() [all …]
|
D | indirect.c | 154 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch() 211 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_find_near() 657 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_calc_metadata_amount() 1095 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_truncate() 1208 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_remove_space()
|
D | fsync.c | 97 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_sync_file()
|
D | page-io.c | 198 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() 220 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO()
|
D | ext4_extents.h | 178 return (struct ext4_extent_header *) EXT4_I(inode)->i_data; in ext_inode_hdr()
|
D | super.c | 968 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); in ext4_i_callback() 973 if (!list_empty(&(EXT4_I(inode)->i_orphan))) { in ext4_destroy_inode() 976 inode->i_ino, EXT4_I(inode)); in ext4_destroy_inode() 978 EXT4_I(inode), sizeof(struct ext4_inode_info), in ext4_destroy_inode() 1025 if (EXT4_I(inode)->jinode) { in ext4_clear_inode() 1027 EXT4_I(inode)->jinode); in ext4_clear_inode() 1028 jbd2_free_inode(EXT4_I(inode)->jinode); in ext4_clear_inode() 1029 EXT4_I(inode)->jinode = NULL; in ext4_clear_inode() 1217 return EXT4_I(inode)->i_dquot; in ext4_get_dquots() 2442 list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); in ext4_orphan_cleanup() [all …]
|
D | resize.c | 782 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in add_new_gdb() 950 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in reserve_backup_gdb() 1784 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_convert_meta_bg()
|
D | balloc.c | 854 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_inode_to_goal_block()
|
D | mballoc.c | 2509 EXT4_I(sbi->s_buddy_cache)->i_disksize = 0; in ext4_mb_init_backend() 3045 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_normalize_request() 3380 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_use_preallocated() 3673 ei = EXT4_I(ac->ac_inode); in ext4_mb_new_inode_pa() 3967 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_discard_preallocations()
|