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()
97 static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) in hypfs_make_inode() argument
99 struct inode *ret = new_inode(sb); in hypfs_make_inode()
102 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_make_inode()
170 struct super_block *sb = file_inode(iocb->ki_filp)->i_sb; in hypfs_write_iter() local
171 struct hypfs_sb_info *fs_info = sb->s_fs_info; in hypfs_write_iter()
189 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
191 rc = hypfs_vm_create_files(sb->s_root); in hypfs_write_iter()
193 rc = hypfs_diag_create_files(sb->s_root); in hypfs_write_iter()
196 hypfs_delete_tree(sb->s_root); in hypfs_write_iter()
199 hypfs_update_update(sb); in hypfs_write_iter()
221 static int hypfs_parse_options(char *options, struct super_block *sb) in hypfs_parse_options() argument
232 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_parse_options()
272 static int hypfs_fill_super(struct super_block *sb, void *data, int silent) in hypfs_fill_super() argument
285 sb->s_fs_info = sbi; in hypfs_fill_super()
286 sb->s_blocksize = PAGE_CACHE_SIZE; in hypfs_fill_super()
287 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in hypfs_fill_super()
288 sb->s_magic = HYPFS_MAGIC; in hypfs_fill_super()
289 sb->s_op = &hypfs_s_ops; in hypfs_fill_super()
290 if (hypfs_parse_options(data, sb)) in hypfs_fill_super()
292 root_inode = hypfs_make_inode(sb, S_IFDIR | 0755); in hypfs_fill_super()
297 sb->s_root = root_dentry = d_make_root(root_inode); in hypfs_fill_super()
309 hypfs_update_update(sb); in hypfs_fill_super()
320 static void hypfs_kill_super(struct super_block *sb) in hypfs_kill_super() argument
322 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_kill_super()
324 if (sb->s_root) in hypfs_kill_super()
325 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
328 kfree(sb->s_fs_info); in hypfs_kill_super()
329 sb->s_fs_info = NULL; in hypfs_kill_super()
330 kill_litter_super(sb); in hypfs_kill_super()