Lines Matching refs:oi
566 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree() local
575 BUG_ON(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_create_refcount_tree()
648 spin_lock(&oi->ip_lock); in ocfs2_create_refcount_tree()
649 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_create_refcount_tree()
650 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_create_refcount_tree()
652 spin_unlock(&oi->ip_lock); in ocfs2_create_refcount_tree()
707 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() local
713 BUG_ON(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL); in ocfs2_set_refcount_tree()
748 spin_lock(&oi->ip_lock); in ocfs2_set_refcount_tree()
749 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_set_refcount_tree()
750 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_set_refcount_tree()
752 spin_unlock(&oi->ip_lock); in ocfs2_set_refcount_tree()
769 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() local
780 if (!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)) in ocfs2_remove_refcount_tree()
844 spin_lock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
845 oi->ip_dyn_features &= ~OCFS2_HAS_REFCOUNT_FL; in ocfs2_remove_refcount_tree()
846 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_remove_refcount_tree()
848 spin_unlock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
937 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() local
940 down_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
941 down_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
943 if (oi->ip_clusters) in ocfs2_try_remove_refcount_tree()
946 if ((oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) && di->i_xattr_loc) in ocfs2_try_remove_refcount_tree()
949 if (oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL && in ocfs2_try_remove_refcount_tree()
957 up_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
958 up_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
2308 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_decrease_refcount() local
2312 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_decrease_refcount()
2544 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_prepare_refcount_change_for_del() local
2557 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_prepare_refcount_change_for_del()
3433 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refcount_cow_hunk() local
3440 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_refcount_cow_hunk()
3650 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_refcount_cow_xattr() local
3654 BUG_ON(!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_refcount_cow_xattr()
3816 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() local
3828 if (!(oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)) { in ocfs2_attach_refcount_tree()
3845 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_attach_refcount_tree()
3878 if (oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) { in ocfs2_attach_refcount_tree()