Lines Matching refs:oi
85 struct ocfs2_inode_info *oi = OCFS2_I(inode);
88 (unsigned long long)oi->ip_blkno,
98 spin_lock(&oi->ip_lock);
103 if (oi->ip_flags & OCFS2_INODE_DELETED) {
104 spin_unlock(&oi->ip_lock);
111 oi->ip_flags |= OCFS2_INODE_OPEN_DIRECT;
113 oi->ip_open_count++;
114 spin_unlock(&oi->ip_lock);
122 spin_lock(&oi->ip_lock);
123 oi->ip_open_count--;
124 spin_unlock(&oi->ip_lock);
135 struct ocfs2_inode_info *oi = OCFS2_I(inode);
137 spin_lock(&oi->ip_lock);
138 if (!--oi->ip_open_count)
139 oi->ip_flags &= ~OCFS2_INODE_OPEN_DIRECT;
142 oi->ip_blkno,
145 oi->ip_open_count);
146 spin_unlock(&oi->ip_lock);
170 struct ocfs2_inode_info *oi = OCFS2_I(inode);
177 oi->ip_blkno,
189 commit_tid = datasync ? oi->i_datasync_tid : oi->i_sync_tid;
1010 struct ocfs2_inode_info *oi = OCFS2_I(inode);
1017 BUG_ON(!di_bh && !(oi->ip_flags & OCFS2_INODE_SYSTEM_FILE));
1020 if (clusters_to_add < oi->ip_clusters)
1023 clusters_to_add -= oi->ip_clusters;
1026 ret = ocfs2_extend_allocation(inode, oi->ip_clusters,
1052 struct ocfs2_inode_info *oi = OCFS2_I(inode);
1071 down_write(&oi->ip_alloc_sem);
1073 if (oi->ip_dyn_features & OCFS2_INLINE_DATA_FL) {
1079 up_write(&oi->ip_alloc_sem);
1085 up_write(&oi->ip_alloc_sem);
1097 up_write(&oi->ip_alloc_sem);