mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
f2fs: stop calling fscrypt_add_test_dummy_key()
Now that fs/crypto/ adds the test dummy encryption key on-demand when it's needed, there's no need for individual filesystems to call fscrypt_add_test_dummy_key(). Remove the call to it from f2fs. Signed-off-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20230208062107.199831-4-ebiggers@kernel.org
This commit is contained in:
committed by
Jaegeuk Kim
parent
0e3e6cc956
commit
82e6765391
@@ -540,12 +540,6 @@ static int f2fs_set_test_dummy_encryption(struct super_block *sb,
|
||||
opt, err);
|
||||
return -EINVAL;
|
||||
}
|
||||
err = fscrypt_add_test_dummy_key(sb, policy);
|
||||
if (err) {
|
||||
f2fs_warn(sbi, "Error adding test dummy encryption key [%d]",
|
||||
err);
|
||||
return err;
|
||||
}
|
||||
f2fs_warn(sbi, "Test dummy encryption mode enabled");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user