/kernel/linux/linux-5.10/fs/ocfs2/ |
D | inode.c | 75 unsigned int flags = OCFS2_I(inode)->ip_attr; in ocfs2_set_inode_flags() 180 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_iget() 199 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_iget() 216 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_find_actor() 245 OCFS2_I(inode)->ip_blkno = args->fi_blkno; in ocfs2_init_locked_inode() 253 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode() 256 lockdep_set_class(&OCFS2_I(inode)->ip_alloc_sem, in ocfs2_init_locked_inode() 288 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_populate_inode() 289 OCFS2_I(inode)->ip_attr = le32_to_cpu(fe->i_attr); in ocfs2_populate_inode() 290 OCFS2_I(inode)->ip_dyn_features = le16_to_cpu(fe->i_dyn_features); in ocfs2_populate_inode() [all …]
|
D | dcache.c | 31 OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_attach_gen() 60 pgen = OCFS2_I(d_inode(dentry->d_parent))->ip_dir_lock_gen; in ocfs2_dentry_revalidate() 75 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 77 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_DELETED) { in ocfs2_dentry_revalidate() 78 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 80 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate() 83 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_dentry_revalidate() 91 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_dentry_revalidate() 102 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_dentry_revalidate() 141 if (OCFS2_I(parent)->ip_blkno != parent_blkno) in ocfs2_match_dentry() [all …]
|
D | inode.h | 104 static inline struct ocfs2_inode_info *OCFS2_I(struct inode *inode) in OCFS2_I() function 109 #define INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags & OCFS2_INODE_JOURNAL) 110 #define SET_INODE_JOURNAL(i) (OCFS2_I(i)->ip_flags |= OCFS2_INODE_JOURNAL) 117 return &OCFS2_I(inode)->ip_metadata_cache; in INODE_CACHE() 149 return (blkcnt_t)OCFS2_I(inode)->ip_clusters << c_to_s_bits; in ocfs2_inode_sector_count() 173 return (OCFS2_I(inode)->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_is_refcount_inode()
|
D | file.c | 87 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_open() 137 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_release() 172 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_sync_file() 448 trace_ocfs2_truncate_file((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file() 455 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_truncate_file() 469 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file() 472 &OCFS2_I(inode)->ip_la_data_resv); in ocfs2_truncate_file() 482 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_truncate_file() 515 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file() 518 if (!status && OCFS2_I(inode)->ip_clusters == 0) in ocfs2_truncate_file() [all …]
|
D | namei.c | 108 (unsigned long long)OCFS2_I(dir)->ip_blkno, 0); in ocfs2_lookup() 134 oi = OCFS2_I(inode); in ocfs2_lookup() 162 OCFS2_I(dir)->ip_blkno); in ocfs2_lookup() 252 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_mknod() 427 OCFS2_I(dir)->ip_blkno); in ocfs2_mknod() 436 OCFS2_I(inode)->ip_blkno, parent_fe_bh, in ocfs2_mknod() 487 OCFS2_I(inode)->ip_flags |= OCFS2_INODE_SKIP_ORPHAN_DIR; in ocfs2_mknod() 512 struct ocfs2_inode_info *oi = OCFS2_I(inode); in __ocfs2_mknod_locked() 655 OCFS2_I(dir)->ip_blkno, mode); in ocfs2_mkdir() 671 (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); in ocfs2_create() [all …]
|
D | aops.c | 54 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_symlink_get_block() 127 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_lock_get_block() 145 trace_ocfs2_get_block((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block() 148 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_get_block() 200 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_get_block() 201 …mlog(ML_ERROR, "Size %llu, clusters %u\n", (unsigned long long)i_size_read(inode), OCFS2_I(inode)-… in ocfs2_get_block() 209 trace_ocfs2_get_block_end((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_get_block() 230 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_read_inline_data() 240 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_read_inline_data() 264 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_readpage_inline() [all …]
|
D | extent_map.c | 44 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_init() 76 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_lookup() 105 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_trunc() 218 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extent_map_insert_rec() 606 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_get_clusters() 711 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_fiemap_inline() 757 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap() 762 if ((OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) || in ocfs2_fiemap() 812 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_fiemap() 829 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_overwrite_io() [all …]
|
D | dir.c | 75 if (OCFS2_I(dir)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_supports_dir_trailer() 144 trailer->db_parent_dinode = cpu_to_le64(OCFS2_I(inode)->ip_blkno); in ocfs2_init_dir_trailer() 194 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INDEXED_DIR_FL) in ocfs2_dir_indexed() 320 (unsigned long long)OCFS2_I(dir)->ip_blkno, error_msg, in ocfs2_check_dir_entry() 480 OCFS2_I(dir)->ip_blkno) { in ocfs2_check_dir_trailer() 484 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_check_dir_trailer() 684 start = OCFS2_I(dir)->ip_dir_start_lookup; in ocfs2_find_entry_el() 723 (unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_find_entry_el() 732 OCFS2_I(dir)->ip_dir_start_lookup = block; in ocfs2_find_entry_el() 922 trace_ocfs2_dx_dir_search((unsigned long long)OCFS2_I(dir)->ip_blkno, in ocfs2_dx_dir_search() [all …]
|
D | acl.c | 308 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl() 310 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_iop_get_acl() 329 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod() 331 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_acl_chmod() 362 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl() 365 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_init_acl()
|
D | mmap.c | 43 trace_ocfs2_fault(OCFS2_I(vma->vm_file->f_mapping->host)->ip_blkno, in ocfs2_fault() 144 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite() 148 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_page_mkwrite()
|
D | journal.h | 129 if (OCFS2_I(inode)->ip_flags & OCFS2_INODE_SYSTEM_FILE) in ocfs2_inode_is_new() 581 &OCFS2_I(inode)->ip_jinode, in ocfs2_jbd2_inode_add_write() 590 &OCFS2_I(inode)->ip_jinode, in ocfs2_begin_ordered_truncate() 598 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_update_inode_fsync_trans()
|
D | dlmglue.c | 575 ocfs2_build_lock_name(type, OCFS2_I(inode)->ip_blkno, in ocfs2_inode_lock_res_init() 622 u64 inode_blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_dentry_lock_res_init() 734 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_file_lock_res_init() 1730 mlog(0, "Inode %llu\n", (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_create_new_inode_locks() 1740 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_rw_lockres, 1, 1); in ocfs2_create_new_inode_locks() 1750 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_inode_lockres, 1, 0); in ocfs2_create_new_inode_locks() 1756 ret = ocfs2_create_new_lock(osb, &OCFS2_I(inode)->ip_open_lockres, 0, 0); in ocfs2_create_new_inode_locks() 1771 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_rw_lock() 1777 lockres = &OCFS2_I(inode)->ip_rw_lockres; in ocfs2_rw_lock() 1795 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_try_rw_lock() [all …]
|
D | export.c | 140 (unsigned long long)OCFS2_I(dir)->ip_blkno); in ocfs2_get_parent() 220 blkno = OCFS2_I(inode)->ip_blkno; in ocfs2_encode_fh() 231 blkno = OCFS2_I(parent)->ip_blkno; in ocfs2_encode_fh()
|
D | sysfile.c | 157 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode() 159 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()
|
D | resize.c | 149 spin_lock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode() 150 OCFS2_I(bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_update_last_group_and_inode() 152 spin_unlock(&OCFS2_I(bm_inode)->ip_lock); in ocfs2_update_last_group_and_inode() 559 spin_lock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add() 560 OCFS2_I(main_bm_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_group_add() 562 spin_unlock(&OCFS2_I(main_bm_inode)->ip_lock); in ocfs2_group_add()
|
D | refcounttree.c | 558 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree() 699 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() 761 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() 929 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() 2347 trace_ocfs2_mark_extent_refcounted(OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_refcounted() 3431 trace_ocfs2_refcount_cow_hunk(OCFS2_I(inode)->ip_blkno, in ocfs2_refcount_cow_hunk() 3799 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() 3967 BUG_ON(!(OCFS2_I(s_inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)); in ocfs2_duplicate_inline_data() 3986 spin_lock(&OCFS2_I(t_inode)->ip_lock); in ocfs2_duplicate_inline_data() 3987 OCFS2_I(t_inode)->ip_dyn_features |= OCFS2_INLINE_DATA_FL; in ocfs2_duplicate_inline_data() [all …]
|
D | journal.c | 846 OCFS2_I(inode)->ip_open_count++; in ocfs2_journal_init() 870 OCFS2_I(inode)->ip_clusters); in ocfs2_journal_init() 904 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_init() 1023 OCFS2_I(inode)->ip_open_count--; in ocfs2_journal_shutdown() 1234 (unsigned long long)OCFS2_I(journal->j_inode)->ip_blkno); in ocfs2_complete_recovery() 1643 OCFS2_I(inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_replay_journal() 2065 OCFS2_I(iter)->ip_flags |= OCFS2_INODE_DIO_ORPHAN_ENTRY; in ocfs2_orphan_filldir() 2069 if (OCFS2_I(iter)->ip_next_orphan) { in ocfs2_orphan_filldir() 2074 trace_ocfs2_orphan_filldir((unsigned long long)OCFS2_I(iter)->ip_blkno); in ocfs2_orphan_filldir() 2077 OCFS2_I(iter)->ip_next_orphan = p->head; in ocfs2_orphan_filldir() [all …]
|
D | suballoc.c | 379 bg->bg_parent_dinode = cpu_to_le64(OCFS2_I(alloc_inode)->ip_blkno); in ocfs2_block_group_fill() 735 spin_lock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc() 736 OCFS2_I(alloc_inode)->ip_clusters = le32_to_cpu(fe->i_clusters); in ocfs2_block_group_alloc() 739 spin_unlock(&OCFS2_I(alloc_inode)->ip_lock); in ocfs2_block_group_alloc() 1503 OCFS2_I(inode)->ip_clusters) { in ocfs2_cluster_group_search() 1504 max_bits = OCFS2_I(inode)->ip_clusters - gd_cluster_off; in ocfs2_cluster_group_search() 1508 OCFS2_I(inode)->ip_clusters, max_bits); in ocfs2_cluster_group_search() 1756 (unsigned long long)OCFS2_I(alloc_inode)->ip_blkno, in ocfs2_search_chain() 2042 if (OCFS2_I(dir)->ip_last_used_group && in ocfs2_init_inode_ac_group() 2043 OCFS2_I(dir)->ip_last_used_slot == ac->ac_alloc_slot) in ocfs2_init_inode_ac_group() [all …]
|
D | xattr.c | 633 down_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init() 637 up_read(&OCFS2_I(dir)->ip_xattr_sem); in ocfs2_calc_xattr_init() 978 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_list() 1033 struct ocfs2_inode_info *oi = OCFS2_I(d_inode(dentry)); in ocfs2_listxattr() 1160 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_ibody_get() 1289 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_get_nolock() 1335 down_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get() 1338 up_read(&OCFS2_I(inode)->ip_xattr_sem); in ocfs2_xattr_get() 2274 BUG_ON(!(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_XATTR_FL)); in ocfs2_init_dinode_xa_loc() 2562 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_xattr_remove() [all …]
|
D | locks.c | 129 return ocfs2_plock(osb->cconn, OCFS2_I(inode)->ip_blkno, file, cmd, fl); in ocfs2_lock()
|
D | move_extents.c | 784 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in __ocfs2_move_extents_range() 823 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_move_extents_range() 936 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_move_extents() 940 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 | 168 return osb->bitmap_blkno == OCFS2_I(inode)->ip_blkno; in ocfs2_is_cluster_bitmap()
|
D | ioctl.c | 73 ocfs2_get_inode_flags(OCFS2_I(inode)); in ocfs2_get_inode_attr() 74 *flags = OCFS2_I(inode)->ip_attr; in ocfs2_get_inode_attr() 83 struct ocfs2_inode_info *ocfs2_inode = OCFS2_I(inode); in ocfs2_set_inode_attr()
|
D | alloc.c | 5247 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_mark_extent_written() 5252 (unsigned long long)OCFS2_I(inode)->ip_blkno); in ocfs2_mark_extent_written() 5867 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append() 5887 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, index, in ocfs2_truncate_log_append() 5898 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_truncate_log_append() 5962 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in ocfs2_replay_truncate_records() 6009 (unsigned long long)OCFS2_I(tl_inode)->ip_blkno, in __ocfs2_flush_truncate_log() 6255 if (OCFS2_I(tl_inode)->ip_blkno == le64_to_cpu(tl_copy->i_blkno)) { in ocfs2_complete_truncate_log_recovery() 7029 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_inode_data_inline() 7055 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_convert_inline_data_to_extents() [all …]
|