]> 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)
commitdad77cf2a7b0f3564a9fbe8ddfb9bf5d8abdabb6
tree309a8470f6b1e6e36b4810e33b2a4b3e2603b88f
parent4b9a62c9a5ee4b642df2340e37a264d82a286ea8
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