Lines Matching refs:inode
26 static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) in oprofilefs_get_inode()
28 struct inode *inode = new_inode(sb); in oprofilefs_get_inode() local
30 if (inode) { in oprofilefs_get_inode()
31 inode->i_ino = get_next_ino(); in oprofilefs_get_inode()
32 inode->i_mode = mode; in oprofilefs_get_inode()
33 inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); in oprofilefs_get_inode()
35 return inode; in oprofilefs_get_inode()
139 struct inode *inode; in __oprofilefs_create_file() local
147 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file()
148 if (!inode) { in __oprofilefs_create_file()
153 inode->i_fop = fops; in __oprofilefs_create_file()
154 inode->i_private = priv; in __oprofilefs_create_file()
155 d_add(dentry, inode); in __oprofilefs_create_file()
216 struct inode *inode; in oprofilefs_mkdir() local
224 inode = oprofilefs_get_inode(parent->d_sb, S_IFDIR | 0755); in oprofilefs_mkdir()
225 if (!inode) { in oprofilefs_mkdir()
230 inode->i_op = &simple_dir_inode_operations; in oprofilefs_mkdir()
231 inode->i_fop = &simple_dir_operations; in oprofilefs_mkdir()
232 d_add(dentry, inode); in oprofilefs_mkdir()
240 struct inode *root_inode; in oprofilefs_fill_super()