ubifs: Use correct config name for encryption
authorRichard Weinberger <richard@nod.at>
Tue, 14 May 2019 19:10:49 +0000 (21:10 +0200)
committerRichard Weinberger <richard@nod.at>
Wed, 15 May 2019 19:56:48 +0000 (21:56 +0200)
CONFIG_UBIFS_FS_ENCRYPTION is gone, fscrypt is now
controlled via CONFIG_FS_ENCRYPTION.
This problem slipped into the tree because of a mis-merge on
my side.

Reported-by: Eric Biggers <ebiggers@kernel.org>
Fixes: eea2c05d927b ("ubifs: Remove #ifdef around CONFIG_FS_ENCRYPTION")
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/sb.c

index 2afc8b1..3ca4196 100644 (file)
@@ -748,7 +748,7 @@ int ubifs_read_superblock(struct ubifs_info *c)
                goto out;
        }
 
-       if (!IS_ENABLED(CONFIG_UBIFS_FS_ENCRYPTION) && c->encrypted) {
+       if (!IS_ENABLED(CONFIG_FS_ENCRYPTION) && c->encrypted) {
                ubifs_err(c, "file system contains encrypted files but UBIFS"
                             " was built without crypto support.");
                err = -EINVAL;
@@ -941,7 +941,7 @@ int ubifs_enable_encryption(struct ubifs_info *c)
        int err;
        struct ubifs_sb_node *sup = c->sup_node;
 
-       if (!IS_ENABLED(CONFIG_UBIFS_FS_ENCRYPTION))
+       if (!IS_ENABLED(CONFIG_FS_ENCRYPTION))
                return -EOPNOTSUPP;
 
        if (c->encrypted)