Lines Matching refs:oi
558 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_create_refcount_tree() local
570 (unsigned long long)oi->ip_blkno); in ocfs2_create_refcount_tree()
640 spin_lock(&oi->ip_lock); in ocfs2_create_refcount_tree()
641 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_create_refcount_tree()
642 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_create_refcount_tree()
644 spin_unlock(&oi->ip_lock); in ocfs2_create_refcount_tree()
699 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_set_refcount_tree() local
740 spin_lock(&oi->ip_lock); in ocfs2_set_refcount_tree()
741 oi->ip_dyn_features |= OCFS2_HAS_REFCOUNT_FL; in ocfs2_set_refcount_tree()
742 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_set_refcount_tree()
744 spin_unlock(&oi->ip_lock); in ocfs2_set_refcount_tree()
761 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_remove_refcount_tree() local
836 spin_lock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
837 oi->ip_dyn_features &= ~OCFS2_HAS_REFCOUNT_FL; in ocfs2_remove_refcount_tree()
838 di->i_dyn_features = cpu_to_le16(oi->ip_dyn_features); in ocfs2_remove_refcount_tree()
840 spin_unlock(&oi->ip_lock); in ocfs2_remove_refcount_tree()
929 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_try_remove_refcount_tree() local
932 down_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
933 down_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
935 if (oi->ip_clusters) in ocfs2_try_remove_refcount_tree()
938 if ((oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) && di->i_xattr_loc) in ocfs2_try_remove_refcount_tree()
941 if (oi->ip_dyn_features & OCFS2_INLINE_XATTR_FL && in ocfs2_try_remove_refcount_tree()
949 up_write(&oi->ip_alloc_sem); in ocfs2_try_remove_refcount_tree()
950 up_write(&oi->ip_xattr_sem); in ocfs2_try_remove_refcount_tree()
3799 struct ocfs2_inode_info *oi = OCFS2_I(inode); in ocfs2_attach_refcount_tree() local
3828 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) in ocfs2_attach_refcount_tree()
3861 if (oi->ip_dyn_features & OCFS2_HAS_XATTR_FL) { in ocfs2_attach_refcount_tree()