Lines Matching refs:oi
556 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree() local
568 (unsigned long long)oi->ip_blkno); in ocfs2_create_refcount_tree()
638 spin_lock(&oi->ip_lock); in ocfs2_create_refcount_tree()
639 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_create_refcount_tree()
640 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_create_refcount_tree()
642 spin_unlock(&oi->ip_lock); in ocfs2_create_refcount_tree()
697 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() local
738 spin_lock(&oi->ip_lock); in ocfs2_set_refcount_tree()
739 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_set_refcount_tree()
740 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_set_refcount_tree()
742 spin_unlock(&oi->ip_lock); in ocfs2_set_refcount_tree()
759 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() local
834 spin_lock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
835 oi->ip_dyn_features &= ~OCFS2_HAS_REFCOUNT_FL; in ocfs2_remove_refcount_tree()
836 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_remove_refcount_tree()
838 spin_unlock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
927 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() local
930 down_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
931 down_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
933 if (oi->ip_clusters) in ocfs2_try_remove_refcount_tree()
936 if ((oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) && di->i_xattr_loc) in ocfs2_try_remove_refcount_tree()
939 if (oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL && in ocfs2_try_remove_refcount_tree()
947 up_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
948 up_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
3770 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() local
3799 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_attach_refcount_tree()
3832 if (oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) { in ocfs2_attach_refcount_tree()