/Linux-v6.6/fs/ext4/ |
D | inline.c | 25 if (EXT4_I(inode)->i_inline_off) in ext4_get_inline_size() 26 return EXT4_I(inode)->i_inline_size; in ext4_get_inline_size() 45 EXT4_I(inode)->i_extra_isize - in get_max_inline_xattr_value_size() 82 if (EXT4_I(inode)->i_inline_off) { in get_max_inline_xattr_value_size() 84 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size() 111 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_get_max_inline_size() 122 down_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size() 124 up_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size() 150 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_find_inline_data_nolock() 168 EXT4_I(inode)->i_inline_off = (u16)((void *)is.s.here - in ext4_find_inline_data_nolock() [all …]
|
D | migrate.c | 36 down_write(&EXT4_I(inode)->i_data_sem); in finish_range() 58 up_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 291 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() 292 struct ext4_inode_info *tmp_ei = EXT4_I(tmp_inode); in ext4_ext_swap_inode_data() 306 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 314 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 337 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 392 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() 467 ei = EXT4_I(inode); in ext4_ext_migrate() 468 tmp_csum_seed = EXT4_I(tmp_inode)->i_csum_seed; in ext4_ext_migrate() [all …]
|
D | extents_status.c | 184 tree = &EXT4_I(inode)->i_es_tree; in ext4_es_print_tree() 268 tree = &EXT4_I(inode)->i_es_tree; in __es_find_extent_range() 317 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range() 319 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range() 368 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range() 370 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range() 414 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu() 416 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu() 423 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() 439 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() [all …]
|
D | xattr.h | 70 EXT4_I(inode)->i_extra_isize)) 106 ((EXT4_I(inode)->i_extra_isize != 0) && \ 107 (EXT4_GOOD_OLD_INODE_SIZE + EXT4_I(inode)->i_extra_isize + \ 155 down_write(&EXT4_I(inode)->xattr_sem); in ext4_write_lock_xattr() 162 if (down_write_trylock(&EXT4_I(inode)->xattr_sem) == 0) in ext4_write_trylock_xattr() 173 up_write(&EXT4_I(inode)->xattr_sem); in ext4_write_unlock_xattr()
|
D | orphan.c | 81 EXT4_I(inode)->i_orphan_idx = i * inodes_per_ob + j; in ext4_orphan_file_add() 116 !list_empty(&EXT4_I(inode)->i_orphan)) in ext4_orphan_add() 163 list_add(&EXT4_I(inode)->i_orphan, &sbi->s_orphan); in ext4_orphan_add() 178 list_del_init(&EXT4_I(inode)->i_orphan); in ext4_orphan_add() 202 blk = EXT4_I(inode)->i_orphan_idx / inodes_per_ob; in ext4_orphan_file_del() 203 off = EXT4_I(inode)->i_orphan_idx % inodes_per_ob; in ext4_orphan_file_del() 218 INIT_LIST_HEAD(&EXT4_I(inode)->i_orphan); in ext4_orphan_file_del() 230 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_orphan_del() 473 list_add(&EXT4_I(inode)->i_orphan, &EXT4_SB(sb)->s_orphan); in ext4_orphan_cleanup() 486 EXT4_I(inode)->i_orphan_idx = i * inodes_per_ob + j; in ext4_orphan_cleanup() [all …]
|
D | inode.c | 132 if (!EXT4_I(inode)->jinode) in ext4_begin_ordered_truncate() 135 EXT4_I(inode)->jinode, in ext4_begin_ordered_truncate() 148 if (!(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL)) { in ext4_inode_is_fast_symlink() 149 int ea_blocks = EXT4_I(inode)->i_file_acl ? in ext4_inode_is_fast_symlink() 179 if (EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL) in ext4_evict_inode() 249 memset(EXT4_I(inode)->i_data, 0, sizeof(EXT4_I(inode)->i_data)); in ext4_evict_inode() 290 EXT4_I(inode)->i_dtime = (__u32)ktime_get_real_seconds(); in ext4_evict_inode() 316 if (!list_empty(&EXT4_I(inode)->i_fc_list)) in ext4_evict_inode() 324 return &EXT4_I(inode)->i_reserved_quota; in ext4_get_reserved_space() 336 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() [all …]
|
D | xattr.c | 124 struct ext4_inode_info *ei = EXT4_I(ea_inode); in ext4_xattr_inode_set_class() 587 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_get() 590 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_get() 591 bh = ext4_sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl, REQ_PRIO); in ext4_xattr_block_get() 710 down_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get() 716 up_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get() 759 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_list() 762 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_list() 763 bh = ext4_sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl, REQ_PRIO); in ext4_xattr_block_list() 825 down_read(&EXT4_I(d_inode(dentry))->xattr_sem); in ext4_listxattr() [all …]
|
D | ioctl.c | 316 ei1 = EXT4_I(inode1); in swap_inode_data() 317 ei2 = EXT4_I(inode2); in swap_inode_data() 339 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_reset_inode_seed() 378 ei_bl = EXT4_I(inode_bl); in swap_inode_boot_loader() 386 (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) || in swap_inode_boot_loader() 434 EXT4_I(inode_bl)->i_disksize = inode_bl->i_size; in swap_inode_boot_loader() 524 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_check_immutable() 541 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dax_dontcache() 580 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags() 706 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject() [all …]
|
D | file.c | 175 !EXT4_I(inode)->i_reserved_data_blocks) { in ext4_release_file() 176 down_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file() 178 up_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file() 211 offset + len > EXT4_I(inode)->i_disksize) in ext4_extending_io() 325 WARN_ON_ONCE(i_size_read(inode) < EXT4_I(inode)->i_disksize); in ext4_handle_inode_extension() 326 if (offset + count <= EXT4_I(inode)->i_disksize) { in ext4_handle_inode_extension() 332 if (!list_empty(&EXT4_I(inode)->i_orphan) && inode->i_nlink) { in ext4_handle_inode_extension() 673 if (offset + count > EXT4_I(inode)->i_disksize) { in ext4_dax_write_iter()
|
D | symlink.c | 39 caddr = EXT4_I(inode)->i_data; in ext4_encrypted_get_link() 40 max_size = sizeof(EXT4_I(inode)->i_data); in ext4_encrypted_get_link()
|
D | fast_commit.c | 189 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_reset_inode() 197 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_init_inode() 212 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_wait_committing_inode() 247 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_start_update() 271 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_stop_update() 286 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_del() 379 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_track_template() 399 if (list_empty(&EXT4_I(inode)->i_fc_list)) in ext4_fc_track_template() 400 list_add_tail(&EXT4_I(inode)->i_fc_list, in ext4_fc_track_template() 419 struct ext4_inode_info *ei = EXT4_I(inode); in __track_dentry_update() [all …]
|
D | move_extent.c | 54 down_write(&EXT4_I(first)->i_data_sem); in ext4_double_down_write_data_sem() 55 down_write_nested(&EXT4_I(second)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 57 down_write(&EXT4_I(second)->i_data_sem); in ext4_double_down_write_data_sem() 58 down_write_nested(&EXT4_I(first)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 74 up_write(&EXT4_I(orig_inode)->i_data_sem); in ext4_double_up_write_data_sem() 75 up_write(&EXT4_I(donor_inode)->i_data_sem); in ext4_double_up_write_data_sem()
|
D | extents.c | 52 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_extent_block_csum() 104 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_trunc_restart_fn() 146 down_write(&EXT4_I(inode)->i_data_sem); in ext4_datasem_ensure_credits() 191 WARN_ON(!rwsem_is_locked(&EXT4_I(inode)->i_data_sem)); in __ext4_ext_dirty() 302 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root() 316 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root_idx() 602 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_precache() 1346 ext_size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_grow_indepth() 1348 memmove(bh->b_data, EXT4_I(inode)->i_data, ext_size); in ext4_ext_grow_indepth() 2441 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_rereserve_cluster() [all …]
|
D | ialloc.c | 427 ext4_group_t parent_group = EXT4_I(parent)->i_block_group; in find_group_orlov() 522 if (EXT4_I(parent)->i_last_alloc_group != ~0) { in find_group_orlov() 523 parent_group = EXT4_I(parent)->i_last_alloc_group; in find_group_orlov() 544 parent_group = EXT4_I(parent)->i_block_group; in find_group_orlov() 572 ext4_group_t parent_group = EXT4_I(parent)->i_block_group; in find_group_other() 599 if (!retry && EXT4_I(parent)->i_last_alloc_group != ~0) { in find_group_other() 601 parent_group = EXT4_I(parent)->i_last_alloc_group; in find_group_other() 961 ei = EXT4_I(inode); in __ext4_new_inode() 981 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode() 1020 EXT4_I(dir)->i_last_alloc_group = group; in __ext4_new_inode() [all …]
|
D | ext4_jbd2.h | 425 EXT4_I(inode)->jinode, start_byte, length); in ext4_jbd2_inode_add_write() 434 EXT4_I(inode)->jinode, start_byte, length); in ext4_jbd2_inode_add_wait() 442 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_update_inode_fsync_trans()
|
D | ext4.h | 887 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) { \ 906 (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra) ? \ 1748 static inline struct ext4_inode_info *EXT4_I(struct inode *inode) in EXT4_I() function 1906 return test_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1910 set_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1914 clear_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1957 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime 2523 !(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL); in ext4_is_quota_file() 3369 down_write(&EXT4_I(inode)->i_data_sem); in ext4_update_i_disksize() 3370 if (newsize > EXT4_I(inode)->i_disksize) in ext4_update_i_disksize() [all …]
|
D | indirect.c | 156 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch() 219 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_find_near() 718 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_trunc_restart_fn() 743 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_truncate_ensure_credits() 1121 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_truncate() 1237 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_remove_space()
|
D | fsync.c | 100 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fsync_journal()
|
D | namei.c | 87 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_append() 379 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dirblock_csum() 475 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dx_csum() 1652 start = EXT4_I(dir)->i_dir_start_lookup; in __ext4_find_entry() 1704 EXT4_I(dir)->i_dir_start_lookup = block; in __ext4_find_entry() 3361 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_init_symlink_block() 3420 inode->i_link = (char *)&EXT4_I(inode)->i_data; in ext4_symlink() 3432 memcpy((char *)&EXT4_I(inode)->i_data, disk_link.name, in ext4_symlink() 3435 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_symlink() 3511 (!projid_eq(EXT4_I(dir)->i_projid, in ext4_link() [all …]
|
D | ext4_extents.h | 184 return (struct ext4_extent_header *) EXT4_I(inode)->i_data; in ext_inode_hdr()
|
D | page-io.c | 224 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() 246 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO()
|
D | super.c | 1449 if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { in ext4_free_in_core_inode() 1453 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); in ext4_free_in_core_inode() 1458 if (!list_empty(&(EXT4_I(inode)->i_orphan))) { in ext4_destroy_inode() 1461 inode->i_ino, EXT4_I(inode)); in ext4_destroy_inode() 1463 EXT4_I(inode), sizeof(struct ext4_inode_info), in ext4_destroy_inode() 1468 if (EXT4_I(inode)->i_reserved_data_blocks) in ext4_destroy_inode() 1471 inode->i_ino, EXT4_I(inode), in ext4_destroy_inode() 1472 EXT4_I(inode)->i_reserved_data_blocks); in ext4_destroy_inode() 1523 if (EXT4_I(inode)->jinode) { in ext4_clear_inode() 1525 EXT4_I(inode)->jinode); in ext4_clear_inode() [all …]
|
D | mballoc.c | 3388 EXT4_I(sbi->s_buddy_cache)->i_disksize = 0; in ext4_mb_init_backend() 4229 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_assert_overlap() 4265 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_adjust_overlap() 4766 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_use_preallocated() 5045 ei = EXT4_I(pa->pa_inode); in ext4_mb_mark_pa_deleted() 5075 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_put_pa() 5237 ei = EXT4_I(ac->ac_inode); in ext4_mb_new_inode_pa() 5483 ei = EXT4_I(pa->pa_inode); in ext4_mb_discard_group_preallocations() 5519 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_discard_preallocations()
|
D | resize.c | 851 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in add_new_gdb() 1033 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in reserve_backup_gdb() 1914 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_convert_meta_bg()
|
/Linux-v6.6/include/trace/events/ |
D | ext4.h | 22 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode)) macro 1019 __entry->data_blocks = EXT4_I(inode)->i_reserved_data_blocks; 1237 EXT4_I(inode)->i_reserved_data_blocks; 1268 __entry->reserved_data_blocks = EXT4_I(inode)->i_reserved_data_blocks; 1299 __entry->reserved_data_blocks = EXT4_I(inode)->i_reserved_data_blocks; 2844 struct ext4_inode_info *ei = EXT4_I(inode); 2885 struct ext4_inode_info *ei = EXT4_I(inode); 2917 struct ext4_inode_info *ei = EXT4_I(inode);
|