Re: [PATCH 14/33] vfs: Implement a filesystem superblock creation/configuration context [ver #11]

From: David Howells
Date: Tue Sep 18 2018 - 11:34:44 EST


Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> wrote:

> static void do_emergency_remount_callback(struct super_block *sb)
> {
> struct fs_context fc = {
> + .ops = &legacy_fs_context_ops,
> .purpose = FS_CONTEXT_FOR_EMERGENCY_RO,
> .fs_type = sb->s_type,
> .root = sb->s_root,

Actually, we do need to call ->init_fs_context() or legacy_init_fs_context()
to set the ops pointer.

David