Merge tag 'for-linus' of git://github.com/openrisc/linux
[sfrench/cifs-2.6.git] / Documentation / ABI / testing / sysfs-block-zram
index c1513c756af125ce5adb76ee8e4522e25572a099..9d2339a485c8ab17b2dd13979e139bb1309db8eb 100644 (file)
@@ -98,3 +98,35 @@ Description:
                The backing_dev file is read-write and set up backing
                device for zram to write incompressible pages.
                For using, user should enable CONFIG_ZRAM_WRITEBACK.
+
+What:          /sys/block/zram<id>/idle
+Date:          November 2018
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               idle file is write-only and mark zram slot as idle.
+               If system has mounted debugfs, user can see which slots
+               are idle via /sys/kernel/debug/zram/zram<id>/block_state
+
+What:          /sys/block/zram<id>/writeback
+Date:          November 2018
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               The writeback file is write-only and trigger idle and/or
+               huge page writeback to backing device.
+
+What:          /sys/block/zram<id>/bd_stat
+Date:          November 2018
+Contact:       Minchan Kim <minchan@kernel.org>
+Description:
+               The bd_stat file is read-only and represents backing device's
+               statistics (bd_count, bd_reads, bd_writes) in a format
+               similar to block layer statistics file format.
+
+What:          /sys/block/zram<id>/writeback_limit
+Date:          November 2018
+Contact:       Minchan Kim <minchan@kernel.org>
+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 and "0" means disable the limit.
+               No limit is the initial state.