summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2025-03-03 20:12:16 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2025-03-13 21:16:06 +0300
commit0edcb2197e761db482d485bc0e0f5fd42cc1bc3d (patch)
tree3c85b065aa32c3470d69e905b27a4c5c5bf32200
parent9100adf326fa246beb03a26e5b374af4a6b4047d (diff)
downloadlinux-0edcb2197e761db482d485bc0e0f5fd42cc1bc3d.tar.xz
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>
-rw-r--r--fs/f2fs/super.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 500244eb94b0..4ffa95dd41df 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -486,12 +486,11 @@ static int f2fs_check_quota_options(struct f2fs_sb_info *sbi)
}
#endif
-static int f2fs_set_test_dummy_encryption(struct super_block *sb,
+static int f2fs_set_test_dummy_encryption(struct f2fs_sb_info *sbi,
const char *opt,
const substring_t *arg,
bool is_remount)
{
- struct f2fs_sb_info *sbi = F2FS_SB(sb);
struct fs_parameter param = {
.type = fs_value_is_string,
.string = arg->from ? arg->from : "",
@@ -1032,7 +1031,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount)
kfree(name);
break;
case Opt_test_dummy_encryption:
- ret = f2fs_set_test_dummy_encryption(sb, p, &args[0],
+ ret = f2fs_set_test_dummy_encryption(sbi, p, &args[0],
is_remount);
if (ret)
return ret;