zram-swap: support swap priority
authorMaxim Storchak <m.storchak@gmail.com>
Thu, 9 Jan 2020 18:27:44 +0000 (20:27 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 15 Jan 2020 19:49:00 +0000 (20:49 +0100)
commit5f07b6f367ff10ecc029e0b9e41b9fc5eac6968e
treef7e48d29fcae788fdd9af08863ad4e51c9aae418
parentc9ac7b17296ff29d9df39db8a68c449ef1514bbd
zram-swap: support swap priority

If zram-backed swap is added after an existing swap, it gets a lower
priority. Assiming that usually all other swaps are slower, there should
be a way to assign a higher priority to zram swap.

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
package/system/zram-swap/Makefile
package/system/zram-swap/files/zram.init