Lines Matching defs:inode
22 #include "inode.h"
28 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
42 static struct inode **get_local_system_inode(struct ocfs2_super *osb,
47 struct inode **local_system_inodes, **free = NULL;
59 kzalloc(array3_size(sizeof(struct inode *),
67 * will try to create an inode and use it. We will try
90 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb,
94 struct inode *inode = NULL;
95 struct inode **arr = NULL;
104 if (arr && ((inode = *arr) != NULL)) {
106 inode = igrab(inode);
108 BUG_ON(!inode);
110 return inode;
114 inode = _ocfs2_get_system_file_inode(osb, type, slot);
117 if (arr && inode) {
118 *arr = igrab(inode);
122 return inode;
125 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
130 struct inode *inode = NULL;
144 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type);
145 if (IS_ERR(inode)) {
146 mlog_errno(PTR_ERR(inode));
147 inode = NULL;
154 /* Ignore inode lock on these inodes as the lock does not
157 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL;
159 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres.
167 return inode;