Lines Matching refs:inode
42 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
56 static struct inode **get_local_system_inode(struct ocfs2_super *osb, in get_local_system_inode()
61 struct inode **local_system_inodes, **free = NULL; in get_local_system_inode()
72 local_system_inodes = kzalloc(sizeof(struct inode *) * in get_local_system_inode()
103 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, in ocfs2_get_system_file_inode()
107 struct inode *inode = NULL; in ocfs2_get_system_file_inode() local
108 struct inode **arr = NULL; in ocfs2_get_system_file_inode()
117 if (arr && ((inode = *arr) != NULL)) { in ocfs2_get_system_file_inode()
119 inode = igrab(inode); in ocfs2_get_system_file_inode()
121 BUG_ON(!inode); in ocfs2_get_system_file_inode()
123 return inode; in ocfs2_get_system_file_inode()
127 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
130 if (arr && inode) { in ocfs2_get_system_file_inode()
131 *arr = igrab(inode); in ocfs2_get_system_file_inode()
135 return inode; in ocfs2_get_system_file_inode()
138 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, in _ocfs2_get_system_file_inode()
143 struct inode *inode = NULL; in _ocfs2_get_system_file_inode() local
157 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()
158 if (IS_ERR(inode)) { in _ocfs2_get_system_file_inode()
159 mlog_errno(PTR_ERR(inode)); in _ocfs2_get_system_file_inode()
160 inode = NULL; in _ocfs2_get_system_file_inode()
170 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode()
172 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()
180 return inode; in _ocfs2_get_system_file_inode()