f2fs: pass sbi rather than sb to parse_options() With the new mount API the sb will not be available during initial option parsing, which happens before fill_super. Now that the sb is no longer needed in parse_options, switch it to sbi. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 3fb1694..3c39ae8 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c
@@ -724,9 +724,9 @@ static int f2fs_set_zstd_level(struct f2fs_sb_info *sbi, const char *str) #endif #endif -static int parse_options(struct super_block *sb, char *options, bool is_remount) +static int parse_options(struct f2fs_sb_info *sbi, char *options, + bool is_remount) { - struct f2fs_sb_info *sbi = F2FS_SB(sb); substring_t args[MAX_OPT_ARGS]; #ifdef CONFIG_F2FS_FS_COMPRESSION unsigned char (*ext)[F2FS_EXTENSION_LEN]; @@ -2398,7 +2398,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data) default_options(sbi, true); /* parse mount options */ - err = parse_options(sb, data, true); + err = parse_options(sbi, data, true); if (err) goto restore_opts; @@ -4513,7 +4513,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) goto free_sb_buf; } - err = parse_options(sb, options, false); + err = parse_options(sbi, options, false); if (err) goto free_options;