Lines Matching refs:osb
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() argument
67 spin_lock(&osb->osb_lock); in get_local_system_inode()
68 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
69 spin_unlock(&osb->osb_lock); in get_local_system_inode()
74 osb->max_slots, in get_local_system_inode()
86 spin_lock(&osb->osb_lock); in get_local_system_inode()
87 if (osb->local_system_inodes) { in get_local_system_inode()
90 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
92 osb->local_system_inodes = local_system_inodes; in get_local_system_inode()
93 spin_unlock(&osb->osb_lock); in get_local_system_inode()
103 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, in ocfs2_get_system_file_inode() argument
112 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode()
114 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
116 mutex_lock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
120 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
127 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
134 mutex_unlock(&osb->system_file_mutex); 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() argument
151 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, in _ocfs2_get_system_file_inode()
157 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()