OSDN Git Service

Merge Linux 4.4.202 into 10
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / drivers / block / zram / Kconfig
1 config ZRAM
2         tristate "Compressed RAM block device support"
3         depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO
4         select CRYPTO_LZO
5         default n
6         help
7           Creates virtual block devices called /dev/zramX (X = 0, 1, ...).
8           Pages written to these disks are compressed and stored in memory
9           itself. These disks allow very fast I/O and compression provides
10           good amounts of memory savings.
11
12           It has several use cases, for example: /tmp storage, use as swap
13           disks and maybe many more.
14
15           See Documentation/blockdev/zram.txt for more information.
16
17 config ZRAM_WRITEBACK
18        bool "Write back incompressible page to backing device"
19        depends on ZRAM
20        default n
21        help
22          With incompressible page, there is no memory saving to keep it
23          in memory. Instead, write it out to backing device.
24          For this feature, admin should set up backing device via
25          /sys/block/zramX/backing_dev.
26
27          See Documentation/blockdev/zram.txt for more information.
28
29 config ZRAM_MEMORY_TRACKING
30         bool "Track zRam block status"
31         depends on ZRAM && DEBUG_FS
32         help
33           With this feature, admin can track the state of allocated blocks
34           of zRAM. Admin could see the information via
35           /sys/kernel/debug/zram/zramX/block_state.
36
37           See Documentation/blockdev/zram.txt for more information.