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