]> git.baikalelectronics.ru Git - kernel.git/commit
zswap: change zpool/compressor at runtime
authorDan Streetman <ddstreet@ieee.org>
Wed, 9 Sep 2015 22:35:21 +0000 (15:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit83472bff1fc777670f198fa8e0cd2e77f8127de6
tree309a8470f6b1e6e36b4810e33b2a4b3e2603b88f
parenta8b09439e43f0e76bb40fabc540bd51026de867f
zswap: change zpool/compressor at runtime

Update the zpool and compressor parameters to be changeable at runtime.
When changed, a new pool is created with the requested zpool/compressor,
and added as the current pool at the front of the pool list.  Previous
pools remain in the list only to remove existing compressed pages from.
The old pool(s) are removed once they become empty.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Acked-by: Seth Jennings <sjennings@variantweb.net>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zswap.c