Lines Matching refs:osb
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, in get_local_system_inode() argument
53 spin_lock(&osb->osb_lock); in get_local_system_inode()
54 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
55 spin_unlock(&osb->osb_lock); in get_local_system_inode()
61 osb->max_slots), in get_local_system_inode()
73 spin_lock(&osb->osb_lock); in get_local_system_inode()
74 if (osb->local_system_inodes) { in get_local_system_inode()
77 local_system_inodes = osb->local_system_inodes; in get_local_system_inode()
79 osb->local_system_inodes = local_system_inodes; in get_local_system_inode()
80 spin_unlock(&osb->osb_lock); in get_local_system_inode()
90 struct inode *ocfs2_get_system_file_inode(struct ocfs2_super *osb, in ocfs2_get_system_file_inode() argument
99 arr = &(osb->global_system_inodes[type]); in ocfs2_get_system_file_inode()
101 arr = get_local_system_inode(osb, type, slot); in ocfs2_get_system_file_inode()
103 mutex_lock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
107 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
114 inode = _ocfs2_get_system_file_inode(osb, type, slot); in ocfs2_get_system_file_inode()
121 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
125 static struct inode * _ocfs2_get_system_file_inode(struct ocfs2_super *osb, in _ocfs2_get_system_file_inode() argument
138 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, in _ocfs2_get_system_file_inode()
144 inode = ocfs2_iget(osb, blkno, OCFS2_FI_FLAG_SYSFILE, type); in _ocfs2_get_system_file_inode()