[PATCH v6 16/43] btrfs: select encryption dependencies if FS_ENCRYPTION

From: Daniel Vacek

Date: Fri Feb 06 2026 - 13:30:49 EST


From: Josef Bacik <josef@xxxxxxxxxxxxxx>

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 <josef@xxxxxxxxxxxxxx>
Signed-off-by: Daniel Vacek <neelx@xxxxxxxx>
---

v5: https://lore.kernel.org/linux-btrfs/396f5067b2551a9f2de4b439509e1a285985d358.1706116485.git.josef@xxxxxxxxxxxxxx/
* 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