Lines Matching refs:OCFS2_I
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()
484 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_truncate_file()
511 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_truncate_file()
514 if (!status && OCFS2_I(inode)->ip_clusters == 0) in ocfs2_truncate_file()
583 BUG_ON(le32_to_cpu(fe->i_clusters) != OCFS2_I(inode)->ip_clusters); in ocfs2_extend_allocation()
604 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_extend_allocation()
625 prev_clusters = OCFS2_I(inode)->ip_clusters; in ocfs2_extend_allocation()
645 spin_lock(&OCFS2_I(inode)->ip_lock); in ocfs2_extend_allocation()
646 clusters_to_add -= (OCFS2_I(inode)->ip_clusters - prev_clusters); in ocfs2_extend_allocation()
647 spin_unlock(&OCFS2_I(inode)->ip_lock); in ocfs2_extend_allocation()
672 trace_ocfs2_extend_allocation_end(OCFS2_I(inode)->ip_blkno, in ocfs2_extend_allocation()
675 OCFS2_I(inode)->ip_clusters, in ocfs2_extend_allocation()
788 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_write_zero_page()
941 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_extend_range()
975 trace_ocfs2_zero_extend((unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_extend()
1012 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extend_no_holes()
1054 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_extend_file()
1130 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_setattr()
1323 if (unlikely(OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL)) in ocfs2_getattr()
1374 (unsigned long long)OCFS2_I(inode)->ip_blkno, in __ocfs2_write_remove_suid()
1437 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_allocate_unwritten_extents()
1546 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_zero_partial_clusters()
1714 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_remove_inode_range()
1721 if (OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) { in ocfs2_remove_inode_range()
1937 down_write(&OCFS2_I(inode)->ip_alloc_sem); in __ocfs2_change_file_space()
1956 up_write(&OCFS2_I(inode)->ip_alloc_sem); in __ocfs2_change_file_space()
2062 OCFS2_I(inode)->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_check_range_for_refcount()
2120 down_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2122 down_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2125 ret = down_write_trylock(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2127 ret = down_read_trylock(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_lock_for_extent_tree()
2150 up_write(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_unlock_for_extent_tree()
2152 up_read(&OCFS2_I(inode)->ip_alloc_sem); in ocfs2_inode_unlock_for_extent_tree()
2265 trace_ocfs2_prepare_inode_for_write(OCFS2_I(inode)->ip_blkno, in ocfs2_prepare_inode_for_write()
2296 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_write_iter()
2444 (unsigned long long)OCFS2_I(inode)->ip_blkno, in ocfs2_file_read_iter()
2591 if ((OCFS2_I(inode_in)->ip_flags & OCFS2_INODE_SYSTEM_FILE) || in ocfs2_remap_file_range()
2592 (OCFS2_I(inode_out)->ip_flags & OCFS2_INODE_SYSTEM_FILE)) in ocfs2_remap_file_range()
2601 down_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2603 down_write_nested(&OCFS2_I(inode_out)->ip_alloc_sem, in ocfs2_remap_file_range()
2613 up_write(&OCFS2_I(inode_in)->ip_alloc_sem); in ocfs2_remap_file_range()
2615 up_write(&OCFS2_I(inode_out)->ip_alloc_sem); in ocfs2_remap_file_range()