Lines Matching refs:OCFS2_I
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()
586 BUG_ON(le32_to_cpu(fe->i_clusters) != OCFS2_I(inode)->ip_clusters); in ocfs2_extend_allocation()
607 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_extend_allocation()
628 prev_clusters = OCFS2_I(inode)->ip_clusters; in ocfs2_extend_allocation()
648 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_extend_allocation()
649 clusters_to_add -= (OCFS2_I(inode)->ip_clusters - prev_clusters); in ocfs2_extend_allocation()
650 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_extend_allocation()
675 trace_ocfs2_extend_allocation_end(OCFS2_I(inode)->ip_blkno, in ocfs2_extend_allocation()
678 OCFS2_I(inode)->ip_clusters, in ocfs2_extend_allocation()
792 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_write_zero_page()
940 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_extend_range()
974 trace_ocfs2_zero_extend((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_extend()
1011 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extend_no_holes()
1053 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extend_file()
1130 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_setattr()
1250 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_setattr()
1262 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_setattr()
1281 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_setattr()
1330 if (unlikely(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)) in ocfs2_getattr()
1382 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_write_remove_suid()
1445 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_allocate_unwritten_extents()
1594 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_partial_clusters()
1782 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_remove_inode_range()
1789 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_remove_inode_range()
2015 down_write(&OCFS2_I(inode)->ip_alloc_sem); in __ocfs2_change_file_space()
2043 up_write(&OCFS2_I(inode)->ip_alloc_sem); in __ocfs2_change_file_space()
2152 OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_check_range_for_refcount()
2208 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2210 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2213 ret = down_write_trylock(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2215 ret = down_read_trylock(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2239 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_unlock_for_extent_tree()
2241 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_unlock_for_extent_tree()
2353 trace_ocfs2_prepare_inode_for_write(OCFS2_I(inode)->ip_blkno, in ocfs2_prepare_inode_for_write()
2384 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_write_iter()
2532 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_read_iter()
2612 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_splice_read()
2716 if ((OCFS2_I(inode_in)->ip_flags & OCFS2_INODE_SYSTEM_FILE) || in ocfs2_remap_file_range()
2717 (OCFS2_I(inode_out)->ip_flags & OCFS2_INODE_SYSTEM_FILE)) in ocfs2_remap_file_range()
2726 down_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2728 down_write_nested(&OCFS2_I(inode_out)->ip_alloc_sem, in ocfs2_remap_file_range()
2738 up_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2740 up_write(&OCFS2_I(inode_out)->ip_alloc_sem); in ocfs2_remap_file_range()