aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/zram/Kconfig
diff options
context:
space:
mode:
authorNitin Gupta <ngupta@vflare.org>2010-08-09 22:56:47 +0530
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-31 15:33:54 -0700
commit33863c21e69e9bd988b63580ada0b729c1d90215 (patch)
tree75b4416212d83929e519c7be058a005ea5e5a917 /drivers/staging/zram/Kconfig
parente1a164d7a3e05aae15eb603ee8f1b77446480a3b (diff)
downloadkernel_samsung_smdk4412-33863c21e69e9bd988b63580ada0b729c1d90215.zip
kernel_samsung_smdk4412-33863c21e69e9bd988b63580ada0b729c1d90215.tar.gz
kernel_samsung_smdk4412-33863c21e69e9bd988b63580ada0b729c1d90215.tar.bz2
Staging: zram: Replace ioctls with sysfs interface
Creates per-device sysfs nodes in /sys/block/zram<id>/ Currently following stats are exported: - disksize - num_reads - num_writes - invalid_io - zero_pages - orig_data_size - compr_data_size - mem_used_total By default, disksize is set to 0. So, to start using a zram device, fist write a disksize value and then initialize device by writing any positive value to initstate. For example: # initialize /dev/zram0 with 50MB disksize echo 50*1024*1024 | bc > /sys/block/zram0/disksize echo 1 > /sys/block/zram0/initstate When done using a disk, issue reset to free its memory by writing any positive value to reset node: echo 1 > /sys/block/zram0/reset This change also obviates the need for 'rzscontrol' utility. Signed-off-by: Nitin Gupta <ngupta@vflare.org> Acked-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/zram/Kconfig')
-rw-r--r--drivers/staging/zram/Kconfig12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/zram/Kconfig b/drivers/staging/zram/Kconfig
index 4654ae2..da079f8 100644
--- a/drivers/staging/zram/Kconfig
+++ b/drivers/staging/zram/Kconfig
@@ -15,15 +15,3 @@ config ZRAM
See zram.txt for more information.
Project home: http://compcache.googlecode.com/
-
-config ZRAM_STATS
- bool "Enable statistics for compressed RAM disks"
- depends on ZRAM
- default y
- help
- Enable statistics collection for compressed RAM devices. Statistics
- are exported through ioctl interface, so you have to use zramconfig
- program to get them. This adds only a minimal overhead.
-
- If unsure, say Y.
-