Lines Matching refs:inode
51 static int qibfs_mknod(struct inode *dir, struct dentry *dentry, in qibfs_mknod()
56 struct inode *inode = new_inode(dir->i_sb); in qibfs_mknod() local
58 if (!inode) { in qibfs_mknod()
63 inode->i_ino = get_next_ino(); in qibfs_mknod()
64 inode->i_mode = mode; in qibfs_mknod()
65 inode->i_uid = GLOBAL_ROOT_UID; in qibfs_mknod()
66 inode->i_gid = GLOBAL_ROOT_GID; in qibfs_mknod()
67 inode->i_blocks = 0; in qibfs_mknod()
68 inode->i_atime = current_time(inode); in qibfs_mknod()
69 inode->i_mtime = inode->i_atime; in qibfs_mknod()
70 inode->i_ctime = inode->i_atime; in qibfs_mknod()
71 inode->i_private = data; in qibfs_mknod()
73 inode->i_op = &simple_dir_inode_operations; in qibfs_mknod()
74 inc_nlink(inode); in qibfs_mknod()
78 inode->i_fop = fops; in qibfs_mknod()
80 d_instantiate(dentry, inode); in qibfs_mknod()