Lines Matching refs:sb
50 static void hypfs_update_update(struct super_block *sb) in hypfs_update_update() argument
52 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_update_update()
94 static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) in hypfs_make_inode() argument
96 struct inode *ret = new_inode(sb); in hypfs_make_inode()
99 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_make_inode()
167 struct super_block *sb = file_inode(iocb->ki_filp)->i_sb; in hypfs_write_iter() local
168 struct hypfs_sb_info *fs_info = sb->s_fs_info; in hypfs_write_iter()
186 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
188 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter()
190 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter()
193 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
196 hypfs_update_update(sb); in hypfs_write_iter()
261 static int hypfs_fill_super(struct super_block *sb, struct fs_context *fc) in hypfs_fill_super() argument
263 struct hypfs_sb_info *sbi = sb->s_fs_info; in hypfs_fill_super()
268 sb->s_blocksize = PAGE_SIZE; in hypfs_fill_super()
269 sb->s_blocksize_bits = PAGE_SHIFT; in hypfs_fill_super()
270 sb->s_magic = HYPFS_MAGIC; in hypfs_fill_super()
271 sb->s_op = &hypfs_s_ops; in hypfs_fill_super()
273 root_inode = hypfs_make_inode(sb, S_IFDIR | 0755); in hypfs_fill_super()
278 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
291 hypfs_update_update(sb); in hypfs_fill_super()
329 static void hypfs_kill_super(struct super_block *sb) in hypfs_kill_super() argument
331 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_kill_super()
333 if (sb->s_root) in hypfs_kill_super()
334 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
337 kfree(sb->s_fs_info); in hypfs_kill_super()
338 sb->s_fs_info = NULL; in hypfs_kill_super()
339 kill_litter_super(sb); in hypfs_kill_super()