extern const struct fs_parameter_spec shmem_fs_parameters[]; extern int shmem_init(void); extern void shmem_init(void); extern int shmem_init_fs_context(struct fs_context *fc); extern struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags); 9 changes: 3 addi...
kern_mount vfs_kern_mount(type, SB_KERNMOUNT, type->name, NULL); fs_context_for_mount alloc_fs_context init_fs_context = fc->fs_type->init_fs_context;/ramfs_init_fs_context init_fs_context(fc); fc->ops = &ramfs_context_ops; //static const struct fs_context_operations ramfs_contex...
.fs_flags = FS_USERNS_MOUNT, }; int __init shmem_init(void) { int error; /* If rootfs called this, don't re-init */ if (shmem_inode_cachep) return 0; error = shmem_init_inodecache(); if (error) goto out3; error = register_filesystem(&shmem_fs_type); if (error) { pri...