Lines Matching refs:oi

564 	struct ocfs2_inode_info *oi = OCFS2_I(inode);  in ocfs2_create_refcount_tree()  local
573 BUG_ON(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_create_refcount_tree()
646 spin_lock(&oi->ip_lock); in ocfs2_create_refcount_tree()
647 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_create_refcount_tree()
648 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_create_refcount_tree()
650 spin_unlock(&oi->ip_lock); in ocfs2_create_refcount_tree()
705 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() local
711 BUG_ON(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_set_refcount_tree()
746 spin_lock(&oi->ip_lock); in ocfs2_set_refcount_tree()
747 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_set_refcount_tree()
748 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_set_refcount_tree()
750 spin_unlock(&oi->ip_lock); in ocfs2_set_refcount_tree()
767 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() local
778 if (!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)) in ocfs2_remove_refcount_tree()
842 spin_lock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
843 oi->ip_dyn_features &= ~OCFS2_HAS_REFCOUNT_FL; in ocfs2_remove_refcount_tree()
844 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_remove_refcount_tree()
846 spin_unlock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
935 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() local
938 down_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
939 down_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
941 if (oi->ip_clusters) in ocfs2_try_remove_refcount_tree()
944 if ((oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) && di->i_xattr_loc) in ocfs2_try_remove_refcount_tree()
947 if (oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL && in ocfs2_try_remove_refcount_tree()
955 up_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
956 up_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
2302 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_decrease_refcount() local
2306 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_decrease_refcount()
2536 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_prepare_refcount_change_for_del() local
2547 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_prepare_refcount_change_for_del()
3415 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refcount_cow_hunk() local
3422 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_refcount_cow_hunk()
3632 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refcount_cow_xattr() local
3636 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_refcount_cow_xattr()
3798 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() local
3810 if (!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)) { in ocfs2_attach_refcount_tree()
3827 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_attach_refcount_tree()
3860 if (oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) { in ocfs2_attach_refcount_tree()