[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <7ae6e9b0e700b494bcf2c92250a601b513d7e0c6.1650517532.git.ritesh.list@gmail.com>
Date: Thu, 21 Apr 2022 10:53:22 +0530
From: Ritesh Harjani <ritesh.list@...il.com>
To: linux-fscrypt@...r.kernel.org, linux-ext4@...r.kernel.org
Cc: Eric Biggers <ebiggers@...nel.org>, Theodore Ts'o <tytso@....edu>,
Jan Kara <jack@...e.cz>, Ritesh Harjani <ritesh.list@...il.com>
Subject: [RFC 6/6] ext4: Use provided macro for checking dummy_enc_policy
We have a macro which test is dummy_enc_policy is enabled or not.
Use that instead.
Signed-off-by: Ritesh Harjani <ritesh.list@...il.com>
---
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
Powered by blists - more mailing lists