• Home
  • Raw
  • Download

Lines Matching refs:sb

31 static struct dentry *hypfs_create_update_file(struct super_block *sb,
49 static void hypfs_update_update(struct super_block *sb) in hypfs_update_update() argument
51 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_update_update()
100 static struct inode *hypfs_make_inode(struct super_block *sb, int mode) in hypfs_make_inode() argument
102 struct inode *ret = new_inode(sb); in hypfs_make_inode()
105 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_make_inode()
178 struct super_block *sb; in hypfs_aio_write() local
182 sb = iocb->ki_filp->f_path.dentry->d_inode->i_sb; in hypfs_aio_write()
183 fs_info = sb->s_fs_info; in hypfs_aio_write()
199 hypfs_delete_tree(sb->s_root); in hypfs_aio_write()
201 rc = hypfs_vm_create_files(sb, sb->s_root); in hypfs_aio_write()
203 rc = hypfs_diag_create_files(sb, sb->s_root); in hypfs_aio_write()
206 hypfs_delete_tree(sb->s_root); in hypfs_aio_write()
209 hypfs_update_update(sb); in hypfs_aio_write()
230 static int hypfs_parse_options(char *options, struct super_block *sb) in hypfs_parse_options() argument
239 struct hypfs_sb_info *hypfs_info = sb->s_fs_info; in hypfs_parse_options()
273 static int hypfs_fill_super(struct super_block *sb, void *data, int silent) in hypfs_fill_super() argument
286 sb->s_fs_info = sbi; in hypfs_fill_super()
287 sb->s_blocksize = PAGE_CACHE_SIZE; in hypfs_fill_super()
288 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in hypfs_fill_super()
289 sb->s_magic = HYPFS_MAGIC; in hypfs_fill_super()
290 sb->s_op = &hypfs_s_ops; in hypfs_fill_super()
291 if (hypfs_parse_options(data, sb)) { in hypfs_fill_super()
295 root_inode = hypfs_make_inode(sb, S_IFDIR | 0755); in hypfs_fill_super()
309 rc = hypfs_vm_create_files(sb, root_dentry); in hypfs_fill_super()
311 rc = hypfs_diag_create_files(sb, root_dentry); in hypfs_fill_super()
314 sbi->update_file = hypfs_create_update_file(sb, root_dentry); in hypfs_fill_super()
319 hypfs_update_update(sb); in hypfs_fill_super()
320 sb->s_root = root_dentry; in hypfs_fill_super()
339 static void hypfs_kill_super(struct super_block *sb) in hypfs_kill_super() argument
341 struct hypfs_sb_info *sb_info = sb->s_fs_info; in hypfs_kill_super()
343 if (sb->s_root) { in hypfs_kill_super()
344 hypfs_delete_tree(sb->s_root); in hypfs_kill_super()
346 kfree(sb->s_fs_info); in hypfs_kill_super()
347 sb->s_fs_info = NULL; in hypfs_kill_super()
349 kill_litter_super(sb); in hypfs_kill_super()
352 static struct dentry *hypfs_create_file(struct super_block *sb, in hypfs_create_file() argument
369 inode = hypfs_make_inode(sb, mode); in hypfs_create_file()
395 struct dentry *hypfs_mkdir(struct super_block *sb, struct dentry *parent, in hypfs_mkdir() argument
400 dentry = hypfs_create_file(sb, parent, name, NULL, S_IFDIR | DIR_MODE); in hypfs_mkdir()
407 static struct dentry *hypfs_create_update_file(struct super_block *sb, in hypfs_create_update_file() argument
412 dentry = hypfs_create_file(sb, dir, "update", NULL, in hypfs_create_update_file()
422 struct dentry *hypfs_create_u64(struct super_block *sb, struct dentry *dir, in hypfs_create_u64() argument
434 hypfs_create_file(sb, dir, name, buffer, S_IFREG | REG_FILE_MODE); in hypfs_create_u64()
443 struct dentry *hypfs_create_str(struct super_block *sb, struct dentry *dir, in hypfs_create_str() argument
454 hypfs_create_file(sb, dir, name, buffer, S_IFREG | REG_FILE_MODE); in hypfs_create_str()