zram-swap: enable swap discard
authorRui Salvaterra <rsalvaterra@gmail.com>
Tue, 23 Jun 2020 11:29:54 +0000 (12:29 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 11:33:28 +0000 (13:33 +0200)
commit0bd7dfa3ed60588ec83a8f60f48b6991ebb16940
tree89a3ed8b98c85f7f60935528257cc48711f20e0a
parentc5c652e5ad97335eb3968dab6be0d7152e22893b
zram-swap: enable swap discard

Zram block devices have supported trim/discard for over six years, let's
enable it. This allows the zram device to actually free up allocated memory
when it's marked as unused in the filesystem metadata, as explained in more
detail in the original commit message [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/block/zram/zram_drv.c?h=linux-4.14.y&id=f4659d8e620d08bd1a84a8aec5d2f5294a242764

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
package/system/zram-swap/files/zram.init