1、jffs2文件系统初始化调用路径
module_init(init_jffs2_fs);
init_jffs2_fsjffs2_inode_cachep = kmem_cache_create //高速缓存,slab
jffs2_compressors_init();
jffs2_create_slab_caches();
register_filesystem(&jffs2_fs_type);
find_filesystem()
static struct file_system_type *file_systems;
2、文件系统mount调用路径,创建super block
mount -t jffs2 /dev/mtdblock8 /mnt
do_mount(.. type_page ..)
do_new_mount()
do_kern_mount()
file_system_type *type = get_fs_type
vfs_kern_mount()
alloc_vfsmnt() //高速缓存
type->get_sb()/jffs2_get_sb()
jffs2_get_sb_mtd()
sget()
alloc_super(type);
list_add_tail(&s->s_list, &super_blocks);