zram-swap: Add extra commands for status/compaction
authorEmil Muratov <gpm@hotplug.ru>
Sun, 24 Feb 2019 07:00:03 +0000 (10:00 +0300)
committerJo-Philipp Wich <jo@mein.io>
Wed, 4 Sep 2019 11:24:43 +0000 (13:24 +0200)
commit1d68badbb3c10da3b70cac6a2768f7b86e49de86
tree8a9ad39326d1b3258bb962c976fe5b6dcdaf352c
parentdc97db2e39fe59f150c8b4f913cd0ccaea4702d8
zram-swap: Add extra commands for status/compaction

This patch adds two new commands:
  zram status - shows memory stats for all zram swaps
  zram compaction - trigger compaction for all zram swaps

Signed-off-by: Emil Muratov <gpm@hotplug.ru>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit a9deed62af569608af3e4e076138d788e24b1652)
package/system/zram-swap/files/zram.init