Lines Matching defs:inode
20 #include "inode.h"
26 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
40 static struct inode **get_local_system_inode(struct ocfs2_super *osb,
45 struct inode **local_system_inodes, **free = NULL;
57 kzalloc(array3_size(sizeof(struct inode *),
65 * will try to create an inode and use it. We will try
88 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb,
92 struct inode *inode = NULL;
93 struct inode **arr = NULL;
102 if (arr && ((inode = *arr) != NULL)) {
104 inode = igrab(inode);
106 BUG_ON(!inode);
108 return inode;
112 inode = _ocfs2_get_system_file_inode(osb, type, slot);
115 if (arr && inode) {
116 *arr = igrab(inode);
120 return inode;
123 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb,
128 struct inode *inode = NULL;
142 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type);
143 if (IS_ERR(inode)) {
144 mlog_errno(PTR_ERR(inode));
145 inode = NULL;
152 /* Ignore inode lock on these inodes as the lock does not
155 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL;
157 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres.
165 return inode;