diff mbox series

[2/5] zram: make zram depends on SWAP

Message ID 20240223035548.2591882-3-wangkefeng.wang@huawei.com (mailing list archive)
State New
Headers show
Series mm: unify default compressor algorithm for zram/zswap | expand

Commit Message

Kefeng Wang Feb. 23, 2024, 3:55 a.m. UTC
The zram is useless when SWAP is disabled, make zram depends on SWAP.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 drivers/block/zram/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sergey Senozhatsky Feb. 23, 2024, 4:39 a.m. UTC | #1
On (24/02/23 11:55), Kefeng Wang wrote:
> 
> The zram is useless when SWAP is disabled, make zram depends on SWAP.
> 

I'm sorry, this doesn't make a lot of sense to me. zram is a generic
block device.
diff mbox series

Patch

diff --git a/drivers/block/zram/Kconfig b/drivers/block/zram/Kconfig
index 7b29cce60ab2..0cee425da0f5 100644
--- a/drivers/block/zram/Kconfig
+++ b/drivers/block/zram/Kconfig
@@ -1,7 +1,7 @@ 
 # SPDX-License-Identifier: GPL-2.0
 config ZRAM
 	tristate "Compressed RAM block device support"
-	depends on BLOCK && SYSFS && MMU
+	depends on SWAP && SYSFS
 	depends on CRYPTO_LZO || CRYPTO_ZSTD || CRYPTO_LZ4 || CRYPTO_LZ4HC || CRYPTO_842
 	select ZSMALLOC
 	help