We have a macro which test is dummy_enc_policy is enabled or not. Use that instead. Signed-off-by: Ritesh Harjani <ritesh.list@xxxxxxxxx> --- fs/ext4/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.31.1