Lines Matching refs:inode
28 static void securityfs_free_inode(struct inode *inode) in securityfs_free_inode() argument
30 if (S_ISLNK(inode->i_mode)) in securityfs_free_inode()
31 kfree(inode->i_link); in securityfs_free_inode()
32 free_inode_nonrcu(inode); in securityfs_free_inode()
113 struct inode *dir, *inode; in securityfs_create_dentry() local
140 inode = new_inode(dir->i_sb); in securityfs_create_dentry()
141 if (!inode) { in securityfs_create_dentry()
146 inode->i_ino = get_next_ino(); in securityfs_create_dentry()
147 inode->i_mode = mode; in securityfs_create_dentry()
148 inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); in securityfs_create_dentry()
149 inode->i_private = data; in securityfs_create_dentry()
151 inode->i_op = &simple_dir_inode_operations; in securityfs_create_dentry()
152 inode->i_fop = &simple_dir_operations; in securityfs_create_dentry()
153 inc_nlink(inode); in securityfs_create_dentry()
156 inode->i_op = iops ? iops : &simple_symlink_inode_operations; in securityfs_create_dentry()
157 inode->i_link = data; in securityfs_create_dentry()
159 inode->i_fop = fops; in securityfs_create_dentry()
161 d_instantiate(dentry, inode); in securityfs_create_dentry()
297 struct inode *dir; in securityfs_remove()