/linux-6.12.1/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() 59 up_write((&EXT4_I(inode)->i_data_sem)); in finish_range() 292 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ext_swap_inode_data() 293 struct ext4_inode_info *tmp_ei = EXT4_I(tmp_inode); in ext4_ext_swap_inode_data() 307 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 315 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 338 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_swap_inode_data() 393 struct ext4_inode_info *ei = EXT4_I(inode); in free_ext_block() 468 ei = EXT4_I(inode); in ext4_ext_migrate() 469 tmp_csum_seed = EXT4_I(tmp_inode)->i_csum_seed; in ext4_ext_migrate() [all …]
|
D | extents_status.c | 185 tree = &EXT4_I(inode)->i_es_tree; in ext4_es_print_tree() 269 tree = &EXT4_I(inode)->i_es_tree; in __es_find_extent_range() 320 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range() 322 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range() 371 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range() 373 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range() 417 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu() 419 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu() 426 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add() 442 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del() [all …]
|
D | xattr.h | 69 EXT4_I(inode)->i_extra_isize)) 105 ((EXT4_I(inode)->i_extra_isize != 0) && \ 106 (EXT4_GOOD_OLD_INODE_SIZE + EXT4_I(inode)->i_extra_isize + \ 154 down_write(&EXT4_I(inode)->xattr_sem); in ext4_write_lock_xattr() 161 if (down_write_trylock(&EXT4_I(inode)->xattr_sem) == 0) in ext4_write_trylock_xattr() 172 up_write(&EXT4_I(inode)->xattr_sem); in ext4_write_unlock_xattr()
|
D | inode.c | 137 if (!EXT4_I(inode)->jinode) in ext4_begin_ordered_truncate() 140 EXT4_I(inode)->jinode, in ext4_begin_ordered_truncate() 153 if (!(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL)) { in ext4_inode_is_fast_symlink() 154 int ea_blocks = EXT4_I(inode)->i_file_acl ? in ext4_inode_is_fast_symlink() 184 if (EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL) in ext4_evict_inode() 254 memset(EXT4_I(inode)->i_data, 0, sizeof(EXT4_I(inode)->i_data)); in ext4_evict_inode() 295 EXT4_I(inode)->i_dtime = (__u32)ktime_get_real_seconds(); in ext4_evict_inode() 321 if (!list_empty(&EXT4_I(inode)->i_fc_list)) in ext4_evict_inode() 329 return &EXT4_I(inode)->i_reserved_quota; in ext4_get_reserved_space() 341 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_da_update_reserve_space() [all …]
|
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 | 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 | 317 ei1 = EXT4_I(inode1); in swap_inode_data() 318 ei2 = EXT4_I(inode2); in swap_inode_data() 348 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_reset_inode_seed() 387 ei_bl = EXT4_I(inode_bl); in swap_inode_boot_loader() 395 (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) || in swap_inode_boot_loader() 443 EXT4_I(inode_bl)->i_disksize = inode_bl->i_size; in swap_inode_boot_loader() 533 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_check_immutable() 550 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dax_dontcache() 589 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags() 715 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject() [all …]
|
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() 386 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fc_track_template() 406 if (list_empty(&EXT4_I(inode)->i_fc_list)) in ext4_fc_track_template() 407 list_add_tail(&EXT4_I(inode)->i_fc_list, in ext4_fc_track_template() 427 struct ext4_inode_info *ei = EXT4_I(inode); in __track_dentry_update() [all …]
|
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 | move_extent.c | 50 down_write(&EXT4_I(first)->i_data_sem); in ext4_double_down_write_data_sem() 51 down_write_nested(&EXT4_I(second)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 53 down_write(&EXT4_I(second)->i_data_sem); in ext4_double_down_write_data_sem() 54 down_write_nested(&EXT4_I(first)->i_data_sem, I_DATA_SEM_OTHER); in ext4_double_down_write_data_sem() 70 up_write(&EXT4_I(orig_inode)->i_data_sem); in ext4_double_up_write_data_sem() 71 up_write(&EXT4_I(donor_inode)->i_data_sem); in ext4_double_up_write_data_sem()
|
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() 357 if (!list_empty(&EXT4_I(inode)->i_orphan) && inode->i_nlink) { in ext4_inode_extension_cleanup() 393 if (pos + size <= READ_ONCE(EXT4_I(inode)->i_disksize) && in ext4_dio_write_end_io() 652 if (offset + count > EXT4_I(inode)->i_disksize) { in ext4_dax_write_iter()
|
D | extents.c | 52 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_extent_block_csum() 103 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ext_trunc_restart_fn() 151 down_write(&EXT4_I(inode)->i_data_sem); in ext4_datasem_ensure_credits() 196 WARN_ON(!rwsem_is_locked(&EXT4_I(inode)->i_data_sem)); in __ext4_ext_dirty() 307 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root() 321 size = sizeof(EXT4_I(inode)->i_data); in ext4_ext_space_root_idx() 606 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() 2443 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_rereserve_cluster() [all …]
|
D | ialloc.c | 425 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 | 892 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) { \ 914 (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra) ? \ 1765 static inline struct ext4_inode_info *EXT4_I(struct inode *inode) in EXT4_I() function 1923 return test_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1927 set_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1931 clear_bit(bit + (offset), &EXT4_I(inode)->i_##field); \ 1974 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime 2541 !(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL); in ext4_is_quota_file() 3398 down_write(&EXT4_I(inode)->i_data_sem); in ext4_update_i_disksize() 3399 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() 711 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_trunc_restart_fn() 736 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_truncate_ensure_credits() 1114 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_truncate() 1230 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() 380 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dirblock_csum() 476 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dx_csum() 1609 start = EXT4_I(dir)->i_dir_start_lookup; in __ext4_find_entry() 1661 EXT4_I(dir)->i_dir_start_lookup = block; in __ext4_find_entry() 3355 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_init_symlink_block() 3414 inode->i_link = (char *)&EXT4_I(inode)->i_data; in ext4_symlink() 3426 memcpy((char *)&EXT4_I(inode)->i_data, disk_link.name, in ext4_symlink() 3429 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_symlink() 3505 (!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 | 223 struct ext4_inode_info *ei = EXT4_I(io_end->inode); in ext4_add_complete_io() 245 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_do_flush_completed_IO()
|
D | super.c | 1445 if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { in ext4_free_in_core_inode() 1449 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); in ext4_free_in_core_inode() 1454 if (!list_empty(&(EXT4_I(inode)->i_orphan))) { in ext4_destroy_inode() 1457 inode->i_ino, EXT4_I(inode)); in ext4_destroy_inode() 1459 EXT4_I(inode), sizeof(struct ext4_inode_info), in ext4_destroy_inode() 1465 WARN_ON_ONCE(EXT4_I(inode)->i_reserved_data_blocks)) in ext4_destroy_inode() 1468 inode->i_ino, EXT4_I(inode), in ext4_destroy_inode() 1469 EXT4_I(inode)->i_reserved_data_blocks); in ext4_destroy_inode() 1519 if (EXT4_I(inode)->jinode) { in ext4_clear_inode() 1521 EXT4_I(inode)->jinode); in ext4_clear_inode() [all …]
|
D | mballoc.c | 3427 EXT4_I(sbi->s_buddy_cache)->i_disksize = 0; in ext4_mb_init_backend() 4246 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_assert_overlap() 4282 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_adjust_overlap() 4787 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_use_preallocated() 5041 ei = EXT4_I(pa->pa_inode); in ext4_mb_mark_pa_deleted() 5071 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_put_pa() 5238 ei = EXT4_I(ac->ac_inode); in ext4_mb_new_inode_pa() 5480 ei = EXT4_I(pa->pa_inode); in ext4_mb_discard_group_preallocations() 5516 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_discard_preallocations()
|
D | resize.c | 850 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in add_new_gdb() 1038 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in reserve_backup_gdb() 1915 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_convert_meta_bg()
|
/linux-6.12.1/include/trace/events/ |
D | ext4.h | 22 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode)) macro 1015 __entry->data_blocks = EXT4_I(inode)->i_reserved_data_blocks; 1233 EXT4_I(inode)->i_reserved_data_blocks; 1266 __entry->reserved_data_blocks = EXT4_I(inode)->i_reserved_data_blocks; 1297 __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);
|