diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 18:38:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:01 -0400 |
commit | e46b8a030d76d3c94156c545c3f4c3676d813435 (patch) | |
tree | 9629389f89d3086a6428ec6a8e47bc59ddfcf3ec /Documentation/ABI | |
parent | fe8eb122c82b2049c460fc6df6e8583a2f935cff (diff) |
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-block-zram | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram index 0da9ed6b82ea..70ec992514d0 100644 --- a/Documentation/ABI/testing/sysfs-block-zram +++ b/Documentation/ABI/testing/sysfs-block-zram | |||
@@ -65,6 +65,14 @@ Description: | |||
65 | number of backend's zcomp_strm compression streams (number of | 65 | number of backend's zcomp_strm compression streams (number of |
66 | concurrent compress operations). | 66 | concurrent compress operations). |
67 | 67 | ||
68 | What: /sys/block/zram<id>/comp_algorithm | ||
69 | Date: February 2014 | ||
70 | Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | ||
71 | Description: | ||
72 | The comp_algorithm file is read-write and lets to show | ||
73 | available and selected compression algorithms, change | ||
74 | compression algorithm selection. | ||
75 | |||
68 | What: /sys/block/zram<id>/notify_free | 76 | What: /sys/block/zram<id>/notify_free |
69 | Date: August 2010 | 77 | Date: August 2010 |
70 | Contact: Nitin Gupta <ngupta@vflare.org> | 78 | Contact: Nitin Gupta <ngupta@vflare.org> |