Lines Matching refs:sb
26 static int get_sb_mtd_compare(struct super_block *sb, void *_mtd) in get_sb_mtd_compare() argument
30 if (sb->s_mtd == mtd) { in get_sb_mtd_compare()
37 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); in get_sb_mtd_compare()
46 static int get_sb_mtd_set(struct super_block *sb, void *_mtd) in get_sb_mtd_set() argument
50 sb->s_mtd = mtd; in get_sb_mtd_set()
51 sb->s_dev = MKDEV(MTD_BLOCK_MAJOR, mtd->index); in get_sb_mtd_set()
52 sb->s_bdi = mtd->backing_dev_info; in get_sb_mtd_set()
64 struct super_block *sb; in mount_mtd_aux() local
67 sb = sget(fs_type, get_sb_mtd_compare, get_sb_mtd_set, flags, mtd); in mount_mtd_aux()
68 if (IS_ERR(sb)) in mount_mtd_aux()
71 if (sb->s_root) in mount_mtd_aux()
78 ret = fill_super(sb, data, flags & MS_SILENT ? 1 : 0); in mount_mtd_aux()
80 deactivate_locked_super(sb); in mount_mtd_aux()
85 sb->s_flags |= MS_ACTIVE; in mount_mtd_aux()
86 return dget(sb->s_root); in mount_mtd_aux()
93 return dget(sb->s_root); in mount_mtd_aux()
97 return ERR_CAST(sb); in mount_mtd_aux()
213 void kill_mtd_super(struct super_block *sb) in kill_mtd_super() argument
215 generic_shutdown_super(sb); in kill_mtd_super()
216 put_mtd_device(sb->s_mtd); in kill_mtd_super()
217 sb->s_mtd = NULL; in kill_mtd_super()