Docs/ABI/zram: document zram recompress sysfs knobs

Message ID 20221115020314.386235-1-senozhatsky@chromium.org
State New
Headers
Series Docs/ABI/zram: document zram recompress sysfs knobs |

Commit Message

Sergey Senozhatsky Nov. 15, 2022, 2:03 a.m. UTC
  Document zram re-compression sysfs knobs.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 Documentation/ABI/testing/sysfs-block-zram | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
  

Comments

Sergey Senozhatsky Nov. 18, 2022, 1:02 a.m. UTC | #1
On (22/11/15 11:03), Sergey Senozhatsky wrote:
> Document zram re-compression sysfs knobs.
> 
> Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>

Minchan, can we please get your Ack on this? This adds missing
bits of zram recompress documentation, which we land in 6.2.
  
Minchan Kim Nov. 18, 2022, 1:08 a.m. UTC | #2
On Tue, Nov 15, 2022 at 11:03:14AM +0900, Sergey Senozhatsky wrote:
> Document zram re-compression sysfs knobs.
> 
> Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
  

Patch

diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram
index 14b2bf2e5105..628a00fb20a9 100644
--- a/Documentation/ABI/testing/sysfs-block-zram
+++ b/Documentation/ABI/testing/sysfs-block-zram
@@ -137,3 +137,17 @@  Description:
 		The writeback_limit file is read-write and specifies the maximum
 		amount of writeback ZRAM can do. The limit could be changed
 		in run time.
+
+What:		/sys/block/zram<id>/recomp_algorithm
+Date:		November 2022
+Contact:	Sergey Senozhatsky <senozhatsky@chromium.org>
+Description:
+		The recomp_algorithm file is read-write and allows to set
+		or show secondary compression algorithms.
+
+What:		/sys/block/zram<id>/recompress
+Date:		November 2022
+Contact:	Sergey Senozhatsky <senozhatsky@chromium.org>
+Description:
+		The recompress file is write-only and triggers re-compression
+		with secondary compression algorithms.