Home
last modified time | relevance | path

Searched refs:EXT4_I (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/fs/ext4/
Dinline.c25 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 …]
Dmigrate.c36 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 …]
Dextents_status.c185 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()
318 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range()
320 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range()
369 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range()
371 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range()
415 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu()
417 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu()
424 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add()
440 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del()
[all …]
Dxattr.h70 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()
Dorphan.c81 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 …]
Dinode.c132 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 …]
Dxattr.c124 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 …]
Dioctl.c316 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 …]
Dsymlink.c39 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()
Dmove_extent.c54 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()
Dfast_commit.c189 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 …]
Dfile.c175 !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()
Dextents.c52 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()
2417 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_rereserve_cluster()
[all …]
Dialloc.c427 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 …]
Dext4_jbd2.h425 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()
Dext4.h887 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) { \
906 (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra) ? \
1749 static inline struct ext4_inode_info *EXT4_I(struct inode *inode) in EXT4_I() function
1907 return test_bit(bit + (offset), &EXT4_I(inode)->i_##field); \
1911 set_bit(bit + (offset), &EXT4_I(inode)->i_##field); \
1915 clear_bit(bit + (offset), &EXT4_I(inode)->i_##field); \
1958 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime
2524 !(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL); in ext4_is_quota_file()
3370 down_write(&EXT4_I(inode)->i_data_sem); in ext4_update_i_disksize()
3371 if (newsize > EXT4_I(inode)->i_disksize) in ext4_update_i_disksize()
[all …]
Dindirect.c156 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()
Dfsync.c100 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_fsync_journal()
Dnamei.c87 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 …]
Dext4_extents.h184 return (struct ext4_extent_header *) EXT4_I(inode)->i_data; in ext_inode_hdr()
Dpage-io.c224 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()
Dsuper.c1450 if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { in ext4_free_in_core_inode()
1454 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); in ext4_free_in_core_inode()
1459 if (!list_empty(&(EXT4_I(inode)->i_orphan))) { in ext4_destroy_inode()
1462 inode->i_ino, EXT4_I(inode)); in ext4_destroy_inode()
1464 EXT4_I(inode), sizeof(struct ext4_inode_info), in ext4_destroy_inode()
1469 if (EXT4_I(inode)->i_reserved_data_blocks) in ext4_destroy_inode()
1472 inode->i_ino, EXT4_I(inode), in ext4_destroy_inode()
1473 EXT4_I(inode)->i_reserved_data_blocks); in ext4_destroy_inode()
1524 if (EXT4_I(inode)->jinode) { in ext4_clear_inode()
1526 EXT4_I(inode)->jinode); in ext4_clear_inode()
[all …]
Dmballoc.c3412 EXT4_I(sbi->s_buddy_cache)->i_disksize = 0; in ext4_mb_init_backend()
4253 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_assert_overlap()
4289 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_pa_adjust_overlap()
4794 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_use_preallocated()
5048 ei = EXT4_I(pa->pa_inode); in ext4_mb_mark_pa_deleted()
5078 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_put_pa()
5240 ei = EXT4_I(ac->ac_inode); in ext4_mb_new_inode_pa()
5486 ei = EXT4_I(pa->pa_inode); in ext4_mb_discard_group_preallocations()
5522 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_discard_preallocations()
Dresize.c854 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in add_new_gdb()
1036 data = EXT4_I(inode)->i_data + EXT4_DIND_BLOCK; in reserve_backup_gdb()
1920 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_convert_meta_bg()
/linux-6.6.21/include/trace/events/
Dext4.h22 #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);

12