add patch move-check-under-lock-scope-to-close-a-race
[ext4-patch-queue.git] / do-not-select-from-ext4_fs_encryption
blob8bebc242daaea662ee3019a1d052ae3c2e29d55a
1 ext4 crypto: Do not select from EXT4_FS_ENCRYPTION
3 From: Herbert Xu <herbert@gondor.apana.org.au>
5 This patch adds a tristate EXT4_ENCRYPTION to do the selections
6 for EXT4_FS_ENCRYPTION because selecting from a bool causes all
7 the selected options to be built-in, even if EXT4 itself is a
8 module.
10 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
11 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
12 ---
13 diff --git a/fs/ext4/Kconfig b/fs/ext4/Kconfig
14 index 18228c2..024f228 100644
15 --- a/fs/ext4/Kconfig
16 +++ b/fs/ext4/Kconfig
17 @@ -64,8 +64,8 @@ config EXT4_FS_SECURITY
18           If you are not using a security module that requires using
19           extended attributes for file security labels, say N.
21 -config EXT4_FS_ENCRYPTION
22 -       bool "Ext4 Encryption"
23 +config EXT4_ENCRYPTION
24 +       tristate "Ext4 Encryption"
25         depends on EXT4_FS
26         select CRYPTO_AES
27         select CRYPTO_CBC
28 @@ -81,6 +81,11 @@ config EXT4_FS_ENCRYPTION
29           efficient since it avoids caching the encrypted and
30           decrypted pages in the page cache.
32 +config EXT4_FS_ENCRYPTION
33 +       bool
34 +       default y
35 +       depends on EXT4_ENCRYPTION
37  config EXT4_DEBUG
38         bool "EXT4 debugging support"
39         depends on EXT4_FS
40 -- 
41 Email: Herbert Xu <herbert@gondor.apana.org.au>
42 Home Page: http://gondor.apana.org.au/~herbert/
43 PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt