27 #include <linux/types.h>
46 #ifdef CONFIG_DEBUG_LOCK_ALLOC
50 static inline int is_global_system_inode(
int type)
71 if (
unlikely(!local_system_inodes)) {
72 local_system_inodes = kzalloc(
sizeof(
struct inode *) *
76 if (!local_system_inodes) {
89 free = local_system_inodes;
101 return &local_system_inodes[
index];
109 struct inode **arr =
NULL;
112 if (is_global_system_inode(type)) {
115 arr = get_local_system_inode(osb, type, slot);
117 if (arr && ((inode = *arr) !=
NULL)) {
119 inode =
igrab(inode);
126 inode = _ocfs2_get_system_file_inode(osb, type, slot);
145 ocfs2_sprintf_system_inode_name(namebuf,
161 #ifdef CONFIG_DEBUG_LOCK_ALLOC
168 OCFS2_I(inode)->ip_inode_lockres.l_lockdep_map.key =
NULL;
172 ocfs2_system_inodes[type].si_name,
173 &ocfs2_sysfile_cluster_lock_key[type], 0);