From: Josef Bacik <[email protected]>

We need this to make sure the appropriate encryption algorithms are
turned on in our config if we have FS_ENCRYPTION enabled, and
additionally we only support inline encryption with the fallback block
crypto, so we need to make sure we pull in those dependencies.

Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Daniel Vacek <[email protected]>
---

v5: 
https://lore.kernel.org/linux-btrfs/396f5067b2551a9f2de4b439509e1a285985d358.1706116485.git.jo...@toxicpanda.com/
 * No changes since.
---
 fs/btrfs/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig
index ede184b6eda1..216a5707b099 100644
--- a/fs/btrfs/Kconfig
+++ b/fs/btrfs/Kconfig
@@ -16,6 +16,9 @@ config BTRFS_FS
        select RAID6_PQ
        select XOR_BLOCKS
        select XXHASH
+       select FS_ENCRYPTION_ALGS if FS_ENCRYPTION
+       select FS_ENCRYPTION_INLINE_CRYPT if FS_ENCRYPTION
+       select BLK_INLINE_ENCRYPTION_FALLBACK if FS_ENCRYPTION
        depends on PAGE_SIZE_LESS_THAN_256KB
 
        help
-- 
2.51.0


Reply via email to