OpenCloudOS-Kernel/drivers/block/zram
Sergey Senozhatsky e46b8a030d zram: make compression algorithm selection possible
Add and document `comp_algorithm' device attribute.  This attribute allows
to show supported compression and currently selected compression
algorithms:

	cat /sys/block/zram0/comp_algorithm
	[lzo] lz4

and change selected compression algorithm:
	echo lzo > /sys/block/zram0/comp_algorithm

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:36:01 -07:00
..
Kconfig zram: remove old private project comment 2014-01-30 16:56:55 -08:00
Makefile zram: use zcomp compressing backends 2014-04-07 16:36:01 -07:00
zcomp.c zram: make compression algorithm selection possible 2014-04-07 16:36:01 -07:00
zcomp.h zram: make compression algorithm selection possible 2014-04-07 16:36:01 -07:00
zcomp_lzo.c zram: introduce compressing backend abstraction 2014-04-07 16:36:01 -07:00
zcomp_lzo.h zram: introduce compressing backend abstraction 2014-04-07 16:36:01 -07:00
zram_drv.c zram: make compression algorithm selection possible 2014-04-07 16:36:01 -07:00
zram_drv.h zram: make compression algorithm selection possible 2014-04-07 16:36:01 -07:00