Lines Matching refs:sb
48 static void hypfs_update_update(struct super_block *sb) in hypfs_update_update() argument
50 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_update_update()
92 static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) in hypfs_make_inode() argument
94 struct inode *ret = new_inode(sb); in hypfs_make_inode()
97 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_make_inode()
165 struct super_block *sb = file_inode(iocb->ki_filp)->i_sb; in hypfs_write_iter() local
166 struct hypfs_sb_info *fs_info = sb->s_fs_info; in hypfs_write_iter()
184 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
186 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter()
188 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter()
191 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
194 hypfs_update_update(sb); in hypfs_write_iter()
216 static int hypfs_parse_options(char *options, struct super_block *sb) in hypfs_parse_options() argument
227 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_parse_options()
267 static int hypfs_fill_super(struct super_block *sb, void *data, int silent) in hypfs_fill_super() argument
280 sb->s_fs_info = sbi; in hypfs_fill_super()
281 sb->s_blocksize = PAGE_SIZE; in hypfs_fill_super()
282 sb->s_blocksize_bits = PAGE_SHIFT; in hypfs_fill_super()
283 sb->s_magic = HYPFS_MAGIC; in hypfs_fill_super()
284 sb->s_op = &hypfs_s_ops; in hypfs_fill_super()
285 if (hypfs_parse_options(data, sb)) in hypfs_fill_super()
287 root_inode = hypfs_make_inode(sb, S_IFDIR | 0755); in hypfs_fill_super()
292 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
304 hypfs_update_update(sb); in hypfs_fill_super()
315 static void hypfs_kill_super(struct super_block *sb) in hypfs_kill_super() argument
317 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_kill_super()
319 if (sb->s_root) in hypfs_kill_super()
320 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
323 kfree(sb->s_fs_info); in hypfs_kill_super()
324 sb->s_fs_info = NULL; in hypfs_kill_super()
325 kill_litter_super(sb); in hypfs_kill_super()