Lines Matching refs:osb
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, in get_local_system_inode() argument
51 spin_lock(&osb->osb_lock); in get_local_system_inode()
52 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
53 spin_unlock(&osb->osb_lock); in get_local_system_inode()
59 osb->max_slots), in get_local_system_inode()
71 spin_lock(&osb->osb_lock); in get_local_system_inode()
72 if (osb->local_system_inodes) { in get_local_system_inode()
75 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
77 osb->local_system_inodes = local_system_inodes; in get_local_system_inode()
78 spin_unlock(&osb->osb_lock); in get_local_system_inode()
88 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, in ocfs2_get_system_file_inode() argument
97 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode()
99 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
101 mutex_lock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
105 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
112 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
119 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
123 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, in _ocfs2_get_system_file_inode() argument
136 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, in _ocfs2_get_system_file_inode()
142 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()