Skip to content

Commit 0edcb21

Browse files
Eric SandeenJaegeuk Kim
authored andcommitted
f2fs: Pass sbi rather than sb to f2fs_set_test_dummy_encryption
This removes another sb instance from parse_options() Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 9100adf commit 0edcb21

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

fs/f2fs/super.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,11 @@ static int f2fs_check_quota_options(struct f2fs_sb_info *sbi)
486486
}
487487
#endif
488488

489-
static int f2fs_set_test_dummy_encryption(struct super_block *sb,
489+
static int f2fs_set_test_dummy_encryption(struct f2fs_sb_info *sbi,
490490
const char *opt,
491491
const substring_t *arg,
492492
bool is_remount)
493493
{
494-
struct f2fs_sb_info *sbi = F2FS_SB(sb);
495494
struct fs_parameter param = {
496495
.type = fs_value_is_string,
497496
.string = arg->from ? arg->from : "",
@@ -1032,7 +1031,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
10321031
kfree(name);
10331032
break;
10341033
case Opt_test_dummy_encryption:
1035-
ret = f2fs_set_test_dummy_encryption(sb, p, &args[0],
1034+
ret = f2fs_set_test_dummy_encryption(sbi, p, &args[0],
10361035
is_remount);
10371036
if (ret)
10381037
return ret;

0 commit comments

Comments
 (0)