/linux-6.12.1/fs/ocfs2/ |
D | inode.c | 73 unsigned int flags = OCFS2_I(inode)->ip_attr; in ocfs2_set_inode_flags() 178 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_iget() 197 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_iget() 214 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_find_actor() 243 OCFS2_I(inode)->ip_blkno = args->fi_blkno; in ocfs2_init_locked_inode() 251 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode() 254 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode() 286 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_populate_inode() 287 OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); in ocfs2_populate_inode() 288 OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); in ocfs2_populate_inode() [all …]
|
D | dcache.c | 29 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen() 58 pgen = OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_revalidate() 73 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 75 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { in ocfs2_dentry_revalidate() 76 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 78 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate() 81 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 89 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_dentry_revalidate() 100 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate() 132 if (OCFS2_I(parent)->ip_blkno != parent_blkno) in ocfs2_match_dentry() [all …]
|
D | inode.h | 102 static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) in OCFS2_I() function 107 #define INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags & OCFS2_INODE_JOURNAL) 108 #define SET_INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags |= OCFS2_INODE_JOURNAL) 115 return &OCFS2_I(inode)->ip_metadata_cache; in INODE_CACHE() 147 return (blkcnt_t)OCFS2_I(inode)->ip_clusters << c_to_s_bits; in ocfs2_inode_sector_count() 171 return (OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_is_refcount_inode()
|
D | file.c | 85 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_open() 135 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_release() 170 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_sync_file() 450 trace_ocfs2_truncate_file((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file() 457 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file() 471 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file() 474 &OCFS2_I(inode)->ip_la_data_resv); in ocfs2_truncate_file() 484 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_truncate_file() 517 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file() 520 if (!status && OCFS2_I(inode)->ip_clusters == 0) in ocfs2_truncate_file() [all …]
|
D | namei.c | 107 (unsigned long long)OCFS2_I(dir)->ip_blkno, 0); in ocfs2_lookup() 133 oi = OCFS2_I(inode); in ocfs2_lookup() 161 OCFS2_I(dir)->ip_blkno); in ocfs2_lookup() 255 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_mknod() 431 OCFS2_I(dir)->ip_blkno); in ocfs2_mknod() 440 OCFS2_I(inode)->ip_blkno, parent_fe_bh, in ocfs2_mknod() 494 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SKIP_ORPHAN_DIR; in ocfs2_mknod() 519 struct ocfs2_inode_info *oi = OCFS2_I(inode); in __ocfs2_mknod_locked() 654 OCFS2_I(dir)->ip_blkno, mode); in ocfs2_mkdir() 671 (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); in ocfs2_create() [all …]
|
D | extent_map.c | 42 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_init() 74 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_lookup() 103 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_trunc() 216 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_insert_rec() 604 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_get_clusters() 709 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_fiemap_inline() 755 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap() 760 if ((OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) || in ocfs2_fiemap() 810 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap() 827 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_overwrite_io() [all …]
|
D | aops.c | 52 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_symlink_get_block() 125 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_lock_get_block() 143 trace_ocfs2_get_block((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block() 146 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_get_block() 197 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_get_block() 198 …mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)-… in ocfs2_get_block() 206 trace_ocfs2_get_block_end((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block() 227 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_read_inline_data() 237 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_read_inline_data() 261 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_readpage_inline() [all …]
|
D | dir.c | 73 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer() 142 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer() 192 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INDEXED_DIR_FL) in ocfs2_dir_indexed() 323 (unsigned long long)OCFS2_I(dir)->ip_blkno, error_msg, in ocfs2_check_dir_entry() 484 OCFS2_I(dir)->ip_blkno) { in ocfs2_check_dir_trailer() 488 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_check_dir_trailer() 688 start = OCFS2_I(dir)->ip_dir_start_lookup; in ocfs2_find_entry_el() 727 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_find_entry_el() 736 OCFS2_I(dir)->ip_dir_start_lookup = block; in ocfs2_find_entry_el() 926 trace_ocfs2_dx_dir_search((unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_dx_dir_search() [all …]
|
D | acl.c | 312 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl() 314 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl() 333 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod() 335 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod() 366 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl() 369 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl()
|
D | mmap.c | 41 trace_ocfs2_fault(OCFS2_I(vma->vm_file->f_mapping->host)->ip_blkno, in ocfs2_fault() 142 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite() 146 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
|
D | dlmglue.c | 574 ocfs2_build_lock_name(type, OCFS2_I(inode)->ip_blkno, in ocfs2_inode_lock_res_init() 621 u64 inode_blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_dentry_lock_res_init() 733 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_lock_res_init() 1729 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_create_new_inode_locks() 1739 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_rw_lockres, 1, 1); in ocfs2_create_new_inode_locks() 1749 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_inode_lockres, 1, 0); in ocfs2_create_new_inode_locks() 1755 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); in ocfs2_create_new_inode_locks() 1770 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_rw_lock() 1776 lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_lock() 1794 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_try_rw_lock() [all …]
|
D | journal.h | 127 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_inode_is_new() 583 &OCFS2_I(inode)->ip_jinode, in ocfs2_jbd2_inode_add_write() 592 &OCFS2_I(inode)->ip_jinode, in ocfs2_begin_ordered_truncate() 600 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_update_inode_fsync_trans()
|
D | resize.c | 154 spin_lock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode() 155 OCFS2_I(bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_update_last_group_and_inode() 157 spin_unlock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode() 565 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add() 566 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add() 568 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
|
D | export.c | 138 (unsigned long long)OCFS2_I(dir)->ip_blkno); in ocfs2_get_parent() 218 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh() 229 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh()
|
D | sysfile.c | 155 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode() 157 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()
|
D | refcounttree.c | 557 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree() 698 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() 760 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() 928 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() 2339 trace_ocfs2_mark_extent_refcounted(OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_refcounted() 3396 trace_ocfs2_refcount_cow_hunk(OCFS2_I(inode)->ip_blkno, in ocfs2_refcount_cow_hunk() 3764 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() 3932 BUG_ON(!(OCFS2_I(s_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_duplicate_inline_data() 3951 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data() 3952 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_duplicate_inline_data() [all …]
|
D | journal.c | 922 OCFS2_I(inode)->ip_open_count++; in ocfs2_journal_init() 946 OCFS2_I(inode)->ip_clusters); in ocfs2_journal_init() 980 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_init() 1100 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_shutdown() 1312 (unsigned long long)OCFS2_I(journal->j_inode)->ip_blkno); in ocfs2_complete_recovery() 1718 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_replay_journal() 2138 OCFS2_I(iter)->ip_flags |= OCFS2_INODE_DIO_ORPHAN_ENTRY; in ocfs2_orphan_filldir() 2142 if (OCFS2_I(iter)->ip_next_orphan) { in ocfs2_orphan_filldir() 2147 trace_ocfs2_orphan_filldir((unsigned long long)OCFS2_I(iter)->ip_blkno); in ocfs2_orphan_filldir() 2150 OCFS2_I(iter)->ip_next_orphan = p->head; in ocfs2_orphan_filldir() [all …]
|
D | suballoc.c | 381 bg->bg_parent_dinode = cpu_to_le64(OCFS2_I(alloc_inode)->ip_blkno); in ocfs2_block_group_fill() 737 spin_lock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc() 738 OCFS2_I(alloc_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_block_group_alloc() 741 spin_unlock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc() 1560 OCFS2_I(inode)->ip_clusters) { in ocfs2_cluster_group_search() 1561 max_bits = OCFS2_I(inode)->ip_clusters - gd_cluster_off; in ocfs2_cluster_group_search() 1565 OCFS2_I(inode)->ip_clusters, max_bits); in ocfs2_cluster_group_search() 1807 (unsigned long long)OCFS2_I(alloc_inode)->ip_blkno, in ocfs2_search_chain() 2095 if (OCFS2_I(dir)->ip_last_used_group && in ocfs2_init_inode_ac_group() 2096 OCFS2_I(dir)->ip_last_used_slot == ac->ac_alloc_slot) in ocfs2_init_inode_ac_group() [all …]
|
D | xattr.c | 627 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init() 631 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init() 972 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_list() 1027 struct ocfs2_inode_info *oi = OCFS2_I(d_inode(dentry)); in ocfs2_listxattr() 1163 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_get() 1292 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_get_nolock() 1338 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get() 1341 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get() 2276 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_XATTR_FL)); in ocfs2_init_dinode_xa_loc() 2564 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_remove() [all …]
|
D | locks.c | 124 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
|
D | move_extents.c | 773 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in __ocfs2_move_extents_range() 812 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_move_extents_range() 925 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents() 929 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents()
|
D | quota_global.c | 314 down_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf() 316 down_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_lock_global_qf() 324 up_write(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf() 327 up_read(&OCFS2_I(oinfo->dqi_gqinode)->ip_alloc_sem); in ocfs2_unlock_global_qf()
|
D | suballoc.h | 170 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
|
D | ioctl.c | 76 ocfs2_get_inode_flags(OCFS2_I(inode)); in ocfs2_fileattr_get() 77 flags = OCFS2_I(inode)->ip_attr; in ocfs2_fileattr_get() 90 struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); in ocfs2_fileattr_set()
|
D | alloc.c | 5252 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_written() 5257 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_mark_extent_written() 5872 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append() 5892 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index, in ocfs2_truncate_log_append() 5903 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append() 5968 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_replay_truncate_records() 6016 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in __ocfs2_flush_truncate_log() 6262 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) { in ocfs2_complete_truncate_log_recovery() 7041 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_inode_data_inline() 7067 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_convert_inline_data_to_extents() [all …]
|