Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
44 EXT4_I(inode)->i_extra_isize - in get_max_inline_xattr_value_size()
72 if (EXT4_I(inode)->i_inline_off) { in get_max_inline_xattr_value_size()
74 ((void *)raw_inode + EXT4_I(inode)->i_inline_off); in get_max_inline_xattr_value_size()
101 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_get_max_inline_size()
112 down_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size()
114 up_read(&EXT4_I(inode)->xattr_sem); in ext4_get_max_inline_size()
140 if (EXT4_I(inode)->i_extra_isize == 0) in ext4_find_inline_data_nolock()
158 EXT4_I(inode)->i_inline_off = (u16)((void *)is.s.here - in ext4_find_inline_data_nolock()
[all …]
Dextents_status.c184 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()
319 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range()
321 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_find_extent_range()
370 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range()
372 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_range()
416 read_lock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu()
418 read_unlock(&EXT4_I(inode)->i_es_lock); in ext4_es_scan_clu()
425 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_add()
441 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_es_list_del()
[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 …]
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()
149 if (!(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL)) { in ext4_inode_is_fast_symlink()
150 int ea_blocks = EXT4_I(inode)->i_file_acl ? in ext4_inode_is_fast_symlink()
180 if (EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL) in ext4_evict_inode()
205 tid_t commit_tid = EXT4_I(inode)->i_datasync_tid; in ext4_evict_inode()
277 memset(EXT4_I(inode)->i_data, 0, sizeof(EXT4_I(inode)->i_data)); in ext4_evict_inode()
318 EXT4_I(inode)->i_dtime = (__u32)ktime_get_real_seconds(); in ext4_evict_inode()
344 if (!list_empty(&EXT4_I(inode)->i_fc_list)) in ext4_evict_inode()
352 return &EXT4_I(inode)->i_reserved_quota; in ext4_get_reserved_space()
[all …]
Dxattr.c406 if (!(EXT4_I(inode)->i_flags & EXT4_EA_INODE_FL)) { in ext4_xattr_inode_iget()
542 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_get()
545 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_get()
546 bh = ext4_sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl, REQ_PRIO); in ext4_xattr_block_get()
665 down_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get()
671 up_read(&EXT4_I(inode)->xattr_sem); in ext4_xattr_get()
715 if (!EXT4_I(inode)->i_file_acl) in ext4_xattr_block_list()
718 (unsigned long long)EXT4_I(inode)->i_file_acl); in ext4_xattr_block_list()
719 bh = ext4_sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl, REQ_PRIO); in ext4_xattr_block_list()
781 down_read(&EXT4_I(d_inode(dentry))->xattr_sem); in ext4_listxattr()
[all …]
Dfile.c164 !EXT4_I(inode)->i_reserved_data_blocks) { in ext4_release_file()
165 down_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file()
167 up_write(&EXT4_I(inode)->i_data_sem); in ext4_release_file()
200 offset + len > EXT4_I(inode)->i_disksize) in ext4_extending_io()
315 WARN_ON_ONCE(i_size_read(inode) < EXT4_I(inode)->i_disksize); in ext4_handle_inode_extension()
316 if (offset + count <= EXT4_I(inode)->i_disksize) { in ext4_handle_inode_extension()
322 if (!list_empty(&EXT4_I(inode)->i_orphan) && inode->i_nlink) { in ext4_handle_inode_extension()
656 if (offset + count > EXT4_I(inode)->i_disksize) { in ext4_dax_write_iter()
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()
Dioctl.c319 ei1 = EXT4_I(inode1); in swap_inode_data()
320 ei2 = EXT4_I(inode2); in swap_inode_data()
342 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_reset_inode_seed()
381 ei_bl = EXT4_I(inode_bl); in swap_inode_boot_loader()
389 (EXT4_I(inode)->i_flags & EXT4_JOURNAL_DATA_FL) || in swap_inode_boot_loader()
525 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_check_immutable()
542 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dax_dontcache()
581 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setflags()
707 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ioctl_setproject()
727 if (projid_eq(kprojid, EXT4_I(inode)->i_projid)) in ext4_ioctl_setproject()
[all …]
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 …]
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()
2441 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()
962 ei = EXT4_I(inode); in __ext4_new_inode()
982 ei->i_projid = EXT4_I(dir)->i_projid; in __ext4_new_inode()
1021 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.h921 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) {\
942 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime ## _extra)) { \
1771 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()
3382 down_write(&EXT4_I(inode)->i_data_sem); in ext4_update_i_disksize()
3383 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()
710 up_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_trunc_restart_fn()
735 down_write(&EXT4_I(inode)->i_data_sem); in ext4_ind_truncate_ensure_credits()
1113 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_truncate()
1229 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_ind_remove_space()
Dfsync.c107 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()
378 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dirblock_csum()
473 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_dx_csum()
1633 start = EXT4_I(dir)->i_dir_start_lookup; in __ext4_find_entry()
1685 EXT4_I(dir)->i_dir_start_lookup = block; in __ext4_find_entry()
3335 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_init_symlink_block()
3394 inode->i_link = (char *)&EXT4_I(inode)->i_data; in ext4_symlink()
3406 memcpy((char *)&EXT4_I(inode)->i_data, disk_link.name, in ext4_symlink()
3409 EXT4_I(inode)->i_disksize = inode->i_size; in ext4_symlink()
3484 (!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.c1370 if (!list_empty(&(EXT4_I(inode)->i_fc_list))) { in ext4_free_in_core_inode()
1374 kmem_cache_free(ext4_inode_cachep, EXT4_I(inode)); in ext4_free_in_core_inode()
1379 if (!list_empty(&(EXT4_I(inode)->i_orphan))) { in ext4_destroy_inode()
1382 inode->i_ino, EXT4_I(inode)); in ext4_destroy_inode()
1384 EXT4_I(inode), sizeof(struct ext4_inode_info), in ext4_destroy_inode()
1389 if (EXT4_I(inode)->i_reserved_data_blocks) in ext4_destroy_inode()
1392 inode->i_ino, EXT4_I(inode), in ext4_destroy_inode()
1393 EXT4_I(inode)->i_reserved_data_blocks); in ext4_destroy_inode()
1439 if (EXT4_I(inode)->jinode) { in ext4_clear_inode()
1441 EXT4_I(inode)->jinode); in ext4_clear_inode()
[all …]
Dresize.c851 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()
1917 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_convert_meta_bg()
Dmballoc.c3169 EXT4_I(sbi->s_buddy_cache)->i_disksize = 0; in ext4_mb_init_backend()
4001 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_normalize_request()
4362 struct ext4_inode_info *ei = EXT4_I(ac->ac_inode); in ext4_mb_use_preallocated()
4523 ei = EXT4_I(pa->pa_inode); in ext4_mb_mark_pa_deleted()
4673 ei = EXT4_I(ac->ac_inode); in ext4_mb_new_inode_pa()
4940 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_discard_preallocations()
5399 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_mb_trim_inode_pa()
5417 struct ext4_inode_info *ei = EXT4_I(inode); in ext4_mb_release_context()
/linux-6.1.9/include/trace/events/
Dext4.h22 #define EXT4_I(inode) (container_of(inode, struct ext4_inode_info, vfs_inode)) macro
1012 __entry->data_blocks = EXT4_I(inode)->i_reserved_data_blocks;
1230 EXT4_I(inode)->i_reserved_data_blocks;
1261 __entry->reserved_data_blocks = EXT4_I(inode)->i_reserved_data_blocks;
1292 __entry->reserved_data_blocks = EXT4_I(inode)->i_reserved_data_blocks;
2802 struct ext4_inode_info *ei = EXT4_I(inode);
2843 struct ext4_inode_info *ei = EXT4_I(inode);
2875 struct ext4_inode_info *ei = EXT4_I(inode);

12