Lines Matching +full:time +full:- +full:slot

1 // SPDX-License-Identifier: GPL-2.0-or-later
28 u32 slot);
42 u32 slot) in get_local_system_inode() argument
47 BUG_ON(slot == OCFS2_INVALID_SLOT); in get_local_system_inode()
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()
62 mlog_errno(-ENOMEM); in get_local_system_inode()
66 * to initialize local_system_inodes next time. 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()
82 index = (slot * NUM_LOCAL_SYSTEM_INODES) + in get_local_system_inode()
83 (type - OCFS2_FIRST_LOCAL_SYSTEM_INODE); in get_local_system_inode()
90 u32 slot) 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()
114 /* add one more if putting into array for first time */ in ocfs2_get_system_file_inode()
119 mutex_unlock(&osb->system_file_mutex); in ocfs2_get_system_file_inode()
125 u32 slot) in _ocfs2_get_system_file_inode() argument
134 type, slot); in _ocfs2_get_system_file_inode()
136 status = ocfs2_lookup_ino_from_name(osb->sys_root_inode, namebuf, in _ocfs2_get_system_file_inode()
155 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key = NULL; in _ocfs2_get_system_file_inode()
157 lockdep_init_map(&OCFS2_I(inode)->ip_inode_lockres. in _ocfs2_get_system_file_inode()