Message ID | 7ae6e9b0e700b494bcf2c92250a601b513d7e0c6.1650517532.git.ritesh.list@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | ext4: Move out crypto ops to ext4_crypto.c | expand |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index e7e5c9c057d7..73fb54c3efd3 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2685,7 +2685,7 @@ static int ext4_check_opt_consistency(struct fs_context *fc, * it to be specified during remount, but only if there is no change. */ if ((ctx->spec & EXT4_SPEC_DUMMY_ENCRYPTION) && - is_remount && !sbi->s_dummy_enc_policy.policy) { + is_remount && !DUMMY_ENCRYPTION_ENABLED(sbi)) { ext4_msg(NULL, KERN_WARNING, "Can't set test_dummy_encryption on remount"); return -1;
We have a macro which test is dummy_enc_policy is enabled or not. Use that instead. Signed-off-by: Ritesh Harjani <ritesh.list@gmail.com> --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)